summaryrefslogtreecommitdiff
path: root/include/MESA/sapp_std.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/MESA/sapp_std.h')
-rw-r--r--include/MESA/sapp_std.h24
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
+