|
3 | 3 |
|
4 | 4 | #define RECEIVER_CAPI_ID_STRING "_capi_receiver" |
5 | 5 | #define RECEIVER_CAPI_VERSION_MAJOR -1 |
6 | | -#define RECEIVER_CAPI_VERSION_MINOR 1 |
| 6 | +#define RECEIVER_CAPI_VERSION_MINOR 2 |
7 | 7 | #define RECEIVER_CAPI_VERSION_PATCH 0 |
8 | 8 |
|
9 | 9 | typedef struct receiver_object receiver_object; |
@@ -80,26 +80,6 @@ struct receiver_capi |
80 | 80 | */ |
81 | 81 | void (*freeWriter)(receiver_writer* w); |
82 | 82 |
|
83 | | - /** |
84 | | - * Does not need to be thread safe. |
85 | | - */ |
86 | | - void (*clearWriter)(receiver_writer* w); |
87 | | - |
88 | | - /** |
89 | | - * Does not need to be thread safe. |
90 | | - */ |
91 | | - int (*addBooleanToWriter)(receiver_writer* w, int b); |
92 | | - |
93 | | - /** |
94 | | - * Does not need to be thread safe. |
95 | | - */ |
96 | | - int (*addIntegerToWriter)(receiver_writer* w, lua_Integer i); |
97 | | - |
98 | | - /** |
99 | | - * Does not need to be thread safe. |
100 | | - */ |
101 | | - int (*addStringToWriter)(receiver_writer* w, const char* s, size_t len); |
102 | | - |
103 | 83 | /** |
104 | 84 | * Must be thread safe. |
105 | 85 | * |
@@ -135,6 +115,31 @@ struct receiver_capi |
135 | 115 | int clear, int nonblock, |
136 | 116 | receiver_error_handler eh, void* ehdata); |
137 | 117 |
|
| 118 | + /** |
| 119 | + * Does not need to be thread safe. |
| 120 | + */ |
| 121 | + void (*clearWriter)(receiver_writer* w); |
| 122 | + |
| 123 | + /** |
| 124 | + * Does not need to be thread safe. |
| 125 | + */ |
| 126 | + int (*addBooleanToWriter)(receiver_writer* w, int b); |
| 127 | + |
| 128 | + /** |
| 129 | + * Does not need to be thread safe. |
| 130 | + */ |
| 131 | + int (*addIntegerToWriter)(receiver_writer* w, lua_Integer i); |
| 132 | + |
| 133 | + /** |
| 134 | + * Does not need to be thread safe. |
| 135 | + */ |
| 136 | + int (*addStringToWriter)(receiver_writer* w, const char* s, size_t len); |
| 137 | + |
| 138 | + /** |
| 139 | + * Adds each byte as an integer value between 0 and 255. |
| 140 | + * Does not need to be thread safe. |
| 141 | + */ |
| 142 | + int (*addBytesToWriter)(receiver_writer* w, const unsigned char* s, size_t len); |
138 | 143 | }; |
139 | 144 |
|
140 | 145 |
|
|
0 commit comments