diff options
| author | [email protected] <[email protected]> | 2021-11-02 12:34:05 +0800 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2021-11-02 12:34:05 +0800 |
| commit | 31f55f0b88d4af34a8a36497f5e49c69b88b2fbf (patch) | |
| tree | 63515b3ceb361369cdc88ae6db1a808fc80e5b42 /include/MESA/sapp_std.h | |
Diffstat (limited to 'include/MESA/sapp_std.h')
| -rw-r--r-- | include/MESA/sapp_std.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/MESA/sapp_std.h b/include/MESA/sapp_std.h new file mode 100644 index 0000000..4c3222a --- /dev/null +++ b/include/MESA/sapp_std.h @@ -0,0 +1,24 @@ +#ifndef _SAPP_STD_H_ +#define _SAPP_STD_H_ 1 + +typedef struct { + unsigned short type; + unsigned char user_arg1; + unsigned char user_arg2; + unsigned int length; + union{ + char char_value; + unsigned char uchar_value; + short short_value; + unsigned short ushort_value; + int int_value; + unsigned int uint_value; + long long long_value; + unsigned long long ulong_value; + char *string_value; /* standard C string with EOF('\0'), length include EOF, differ with strlen() */ + void *bin_value; /* unprintable character, binary data, or custom complex struct. */ + }; +}sapp_tlv_t; + +#endif + |
