2 * Automatically generated from ./test/regress.rpc
5 #ifndef EVENT_RPCOUT___TEST_REGRESS_RPC_
6 #define EVENT_RPCOUT___TEST_REGRESS_RPC_
8 #include <event2/util.h> /* for ev_uint*_t */
9 #include <event2/rpc.h>
15 /* Tag definition for msg */
24 /* Structure declaration for msg */
26 int (*from_name_assign)(struct msg *, const char *);
27 int (*from_name_get)(struct msg *, char * *);
28 int (*to_name_assign)(struct msg *, const char *);
29 int (*to_name_get)(struct msg *, char * *);
30 int (*attack_assign)(struct msg *, const struct kill*);
31 int (*attack_get)(struct msg *, struct kill* *);
32 int (*run_assign)(struct msg *, int, const struct run*);
33 int (*run_get)(struct msg *, int, struct run* *);
34 struct run* (*run_add)(struct msg *msg);
38 struct msg_access_ *base;
42 struct kill* attack_data;
43 struct run* *run_data;
45 int run_num_allocated;
47 ev_uint8_t from_name_set;
48 ev_uint8_t to_name_set;
49 ev_uint8_t attack_set;
53 struct msg *msg_new(void);
54 struct msg *msg_new_with_arg(void *);
55 void msg_free(struct msg *);
56 void msg_clear(struct msg *);
57 void msg_marshal(struct evbuffer *, const struct msg *);
58 int msg_unmarshal(struct msg *, struct evbuffer *);
59 int msg_complete(struct msg *);
60 void evtag_marshal_msg(struct evbuffer *, ev_uint32_t,
62 int evtag_unmarshal_msg(struct evbuffer *, ev_uint32_t,
64 int msg_from_name_assign(struct msg *, const char *);
65 int msg_from_name_get(struct msg *, char * *);
66 int msg_to_name_assign(struct msg *, const char *);
67 int msg_to_name_get(struct msg *, char * *);
68 int msg_attack_assign(struct msg *, const struct kill*);
69 int msg_attack_get(struct msg *, struct kill* *);
70 int msg_run_assign(struct msg *, int, const struct run*);
71 int msg_run_get(struct msg *, int, struct run* *);
72 struct run* msg_run_add(struct msg *msg);
73 /* --- msg done --- */
75 /* Tag definition for kill */
83 /* Structure declaration for kill */
85 int (*weapon_assign)(struct kill *, const char *);
86 int (*weapon_get)(struct kill *, char * *);
87 int (*action_assign)(struct kill *, const char *);
88 int (*action_get)(struct kill *, char * *);
89 int (*how_often_assign)(struct kill *, int, const ev_uint32_t);
90 int (*how_often_get)(struct kill *, int, ev_uint32_t *);
91 ev_uint32_t * (*how_often_add)(struct kill *msg, const ev_uint32_t value);
95 struct kill_access_ *base;
99 ev_uint32_t *how_often_data;
100 int how_often_length;
101 int how_often_num_allocated;
103 ev_uint8_t weapon_set;
104 ev_uint8_t action_set;
105 ev_uint8_t how_often_set;
108 struct kill *kill_new(void);
109 struct kill *kill_new_with_arg(void *);
110 void kill_free(struct kill *);
111 void kill_clear(struct kill *);
112 void kill_marshal(struct evbuffer *, const struct kill *);
113 int kill_unmarshal(struct kill *, struct evbuffer *);
114 int kill_complete(struct kill *);
115 void evtag_marshal_kill(struct evbuffer *, ev_uint32_t,
116 const struct kill *);
117 int evtag_unmarshal_kill(struct evbuffer *, ev_uint32_t,
119 int kill_weapon_assign(struct kill *, const char *);
120 int kill_weapon_get(struct kill *, char * *);
121 int kill_action_assign(struct kill *, const char *);
122 int kill_action_get(struct kill *, char * *);
123 int kill_how_often_assign(struct kill *, int, const ev_uint32_t);
124 int kill_how_often_get(struct kill *, int, ev_uint32_t *);
125 ev_uint32_t * kill_how_often_add(struct kill *msg, const ev_uint32_t value);
126 /* --- kill done --- */
128 /* Tag definition for run */
139 /* Structure declaration for run */
141 int (*how_assign)(struct run *, const char *);
142 int (*how_get)(struct run *, char * *);
143 int (*some_bytes_assign)(struct run *, const ev_uint8_t *, ev_uint32_t);
144 int (*some_bytes_get)(struct run *, ev_uint8_t * *, ev_uint32_t *);
145 int (*fixed_bytes_assign)(struct run *, const ev_uint8_t *);
146 int (*fixed_bytes_get)(struct run *, ev_uint8_t **);
147 int (*notes_assign)(struct run *, int, const char *);
148 int (*notes_get)(struct run *, int, char * *);
149 char * * (*notes_add)(struct run *msg, const char * value);
150 int (*large_number_assign)(struct run *, const ev_uint64_t);
151 int (*large_number_get)(struct run *, ev_uint64_t *);
152 int (*other_numbers_assign)(struct run *, int, const ev_uint32_t);
153 int (*other_numbers_get)(struct run *, int, ev_uint32_t *);
154 ev_uint32_t * (*other_numbers_add)(struct run *msg, const ev_uint32_t value);
158 struct run_access_ *base;
161 ev_uint8_t *some_bytes_data;
162 ev_uint32_t some_bytes_length;
163 ev_uint8_t fixed_bytes_data[24];
166 int notes_num_allocated;
167 ev_uint64_t large_number_data;
168 ev_uint32_t *other_numbers_data;
169 int other_numbers_length;
170 int other_numbers_num_allocated;
173 ev_uint8_t some_bytes_set;
174 ev_uint8_t fixed_bytes_set;
175 ev_uint8_t notes_set;
176 ev_uint8_t large_number_set;
177 ev_uint8_t other_numbers_set;
180 struct run *run_new(void);
181 struct run *run_new_with_arg(void *);
182 void run_free(struct run *);
183 void run_clear(struct run *);
184 void run_marshal(struct evbuffer *, const struct run *);
185 int run_unmarshal(struct run *, struct evbuffer *);
186 int run_complete(struct run *);
187 void evtag_marshal_run(struct evbuffer *, ev_uint32_t,
189 int evtag_unmarshal_run(struct evbuffer *, ev_uint32_t,
191 int run_how_assign(struct run *, const char *);
192 int run_how_get(struct run *, char * *);
193 int run_some_bytes_assign(struct run *, const ev_uint8_t *, ev_uint32_t);
194 int run_some_bytes_get(struct run *, ev_uint8_t * *, ev_uint32_t *);
195 int run_fixed_bytes_assign(struct run *, const ev_uint8_t *);
196 int run_fixed_bytes_get(struct run *, ev_uint8_t **);
197 int run_notes_assign(struct run *, int, const char *);
198 int run_notes_get(struct run *, int, char * *);
199 char * * run_notes_add(struct run *msg, const char * value);
200 int run_large_number_assign(struct run *, const ev_uint64_t);
201 int run_large_number_get(struct run *, ev_uint64_t *);
202 int run_other_numbers_assign(struct run *, int, const ev_uint32_t);
203 int run_other_numbers_get(struct run *, int, ev_uint32_t *);
204 ev_uint32_t * run_other_numbers_add(struct run *msg, const ev_uint32_t value);
205 /* --- run done --- */
207 #endif /* EVENT_RPCOUT___TEST_REGRESS_RPC_ */