Skip to content

Commit 33e1bda

Browse files
committed
development version -1.2.0
1 parent 3c5d7f2 commit 33e1bda

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

receiver_capi.h

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define RECEIVER_CAPI_ID_STRING "_capi_receiver"
55
#define RECEIVER_CAPI_VERSION_MAJOR -1
6-
#define RECEIVER_CAPI_VERSION_MINOR 1
6+
#define RECEIVER_CAPI_VERSION_MINOR 2
77
#define RECEIVER_CAPI_VERSION_PATCH 0
88

99
typedef struct receiver_object receiver_object;
@@ -80,26 +80,6 @@ struct receiver_capi
8080
*/
8181
void (*freeWriter)(receiver_writer* w);
8282

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-
10383
/**
10484
* Must be thread safe.
10585
*
@@ -135,6 +115,31 @@ struct receiver_capi
135115
int clear, int nonblock,
136116
receiver_error_handler eh, void* ehdata);
137117

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);
138143
};
139144

140145

0 commit comments

Comments
 (0)