1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,42 @@ |
1 |
+#ifndef SAPCHANNELINFO_H |
|
2 |
+#define SAPCHANNELINFO_H |
|
3 |
+ |
|
4 |
+typedef enum epayload_type { |
|
5 |
+ payload_none=0, |
|
6 |
+ payload_binary = 1, |
|
7 |
+ payload_json = 2, |
|
8 |
+ payload_all = 0xFF |
|
9 |
+} epayload_type; |
|
10 |
+ |
|
11 |
+typedef enum eqos_type { |
|
12 |
+ qos_unrestricted_in_order = 0, |
|
13 |
+ qos_unrestricted = 1, |
|
14 |
+ qos_restricted_in_order = 2, |
|
15 |
+ qos_restricted = 3, |
|
16 |
+ qos_reliability_disable = 4, |
|
17 |
+ qos_reliability_enable = 5 |
|
18 |
+} eqos_type; |
|
19 |
+ |
|
20 |
+typedef enum eqos_priority { |
|
21 |
+ qos_priority_low = 0, |
|
22 |
+ qos_priority_medium, |
|
23 |
+ qos_priority_high |
|
24 |
+} eqos_priority; |
|
25 |
+ |
|
26 |
+typedef enum eqos_data_rate { |
|
27 |
+ qos_data_rate_low = 0, |
|
28 |
+ qos_data_rate_high |
|
29 |
+} eqos_data_rate; |
|
30 |
+ |
|
31 |
+typedef struct sap_channelinfo { |
|
32 |
+ unsigned short id; |
|
33 |
+ epayload_type payload_type; |
|
34 |
+ eqos_type qos_type; |
|
35 |
+ eqos_priority qos_priority; |
|
36 |
+ eqos_data_rate qos_data_rate; |
|
37 |
+} sap_channelinfo; |
|
38 |
+ |
|
39 |
+sap_channelinfo *sap_channelinfo_new(); |
|
40 |
+void sap_channelinfo_free(sap_channelinfo *ci); |
|
41 |
+ |
|
42 |
+#endif |