22f65fda7d3a802b40998211846754cb0f2e3c47
[citadel.git] / citadel / include / artv_deserialize.h
1
2 /**
3  * this file contains the defines that cause our x-macros to serialize for artv export
4  */
5 #define CFG_VALUE(a,b) a
6 #define PROTOCOL_ONLY(a)
7 #define SERVER_PRIVATE(a) a
8 #define NO_ARTV(a)
9 #define SUBSTRUCT(a)
10 #define SUBSTRUCT_ELEMENT(a) a
11
12 #define UNSIGNED(a) client_getln(cbuf, sizeof cbuf); buf->a = atoi(cbuf)
13 #define UNSIGNED_INT(a) client_getln(cbuf, sizeof cbuf); buf->a = atoi(cbuf)
14 #define INTEGER(a) client_getln(cbuf, sizeof cbuf); buf->a = atoi(cbuf)
15 #define LONG(a) client_getln(cbuf, sizeof cbuf); buf->a = atol(cbuf)
16 #define UINT8(a) client_getln(cbuf, sizeof cbuf); buf->a = atoi(cbuf)
17 #define UNSIGNED_SHORT(a) client_getln(cbuf, sizeof cbuf); buf->a = atoi(cbuf)
18 #define CHAR(a) client_getln(cbuf, sizeof cbuf); buf->a = atoi(cbuf)
19
20 #define TIME(a) client_getln(cbuf, sizeof cbuf); buf->a = atol(cbuf)
21 #define UID_T(a) client_getln(cbuf, sizeof cbuf); buf->a = atol(cbuf)
22
23
24
25 #define STRING_BUF(a, b) client_getln(buf->a, b)
26 #define STRING(a) client_getln(buf->a, sizeof buf->a)