Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: third_party/libevent/test/regress.gen.h

Issue 412006: posix: upgrade libevent from 1.4.7 to 1.4.13 (Closed)
Patch Set: better readme Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Automatically generated from ./regress.rpc 2 * Automatically generated from ./regress.rpc
3 */ 3 */
4 4
5 #ifndef ___REGRESS_RPC_ 5 #ifndef ___REGRESS_RPC_
6 #define ___REGRESS_RPC_ 6 #define ___REGRESS_RPC_
7 7
8 #include <event-config.h> 8 #include <event-config.h>
9 #ifdef _EVENT_HAVE_STDINT_H 9 #ifdef _EVENT_HAVE_STDINT_H
10 #include <stdint.h> 10 #include <stdint.h>
11 #endif 11 #endif
12 #define EVTAG_HAS(msg, member) ((msg)->member##_set == 1) 12 #define EVTAG_HAS(msg, member) ((msg)->member##_set == 1)
13 #ifdef __GNUC__
13 #define EVTAG_ASSIGN(msg, member, args...) (*(msg)->base->member##_assign)(msg, ## args) 14 #define EVTAG_ASSIGN(msg, member, args...) (*(msg)->base->member##_assign)(msg, ## args)
14 #define EVTAG_GET(msg, member, args...) (*(msg)->base->member##_get)(msg, ## arg s) 15 #define EVTAG_GET(msg, member, args...) (*(msg)->base->member##_get)(msg, ## arg s)
16 #else
17 #define EVTAG_ASSIGN(msg, member, ...) (*(msg)->base->member##_assign)(msg, ## _ _VA_ARGS__)
18 #define EVTAG_GET(msg, member, ...) (*(msg)->base->member##_get)(msg, ## __VA_AR GS__)
19 #endif
15 #define EVTAG_ADD(msg, member) (*(msg)->base->member##_add)(msg) 20 #define EVTAG_ADD(msg, member) (*(msg)->base->member##_add)(msg)
16 #define EVTAG_LEN(msg, member) ((msg)->member##_length) 21 #define EVTAG_LEN(msg, member) ((msg)->member##_length)
17 22
18 struct msg; 23 struct msg;
19 struct kill; 24 struct kill;
20 struct run; 25 struct run;
21 26
22 /* Tag definition for msg */ 27 /* Tag definition for msg */
23 enum msg_ { 28 enum msg_ {
24 MSG_FROM_NAME=1, 29 MSG_FROM_NAME=1,
(...skipping 19 matching lines...) Expand all
44 struct msg { 49 struct msg {
45 struct msg_access_ *base; 50 struct msg_access_ *base;
46 51
47 char *from_name_data; 52 char *from_name_data;
48 char *to_name_data; 53 char *to_name_data;
49 struct kill* attack_data; 54 struct kill* attack_data;
50 struct run **run_data; 55 struct run **run_data;
51 int run_length; 56 int run_length;
52 int run_num_allocated; 57 int run_num_allocated;
53 58
54 uint8_t from_name_set; 59 ev_uint8_t from_name_set;
55 uint8_t to_name_set; 60 ev_uint8_t to_name_set;
56 uint8_t attack_set; 61 ev_uint8_t attack_set;
57 uint8_t run_set; 62 ev_uint8_t run_set;
58 }; 63 };
59 64
60 struct msg *msg_new(void); 65 struct msg *msg_new(void);
61 void msg_free(struct msg *); 66 void msg_free(struct msg *);
62 void msg_clear(struct msg *); 67 void msg_clear(struct msg *);
63 void msg_marshal(struct evbuffer *, const struct msg *); 68 void msg_marshal(struct evbuffer *, const struct msg *);
64 int msg_unmarshal(struct msg *, struct evbuffer *); 69 int msg_unmarshal(struct msg *, struct evbuffer *);
65 int msg_complete(struct msg *); 70 int msg_complete(struct msg *);
66 void evtag_marshal_msg(struct evbuffer *, uint32_t, 71 void evtag_marshal_msg(struct evbuffer *, ev_uint32_t,
67 const struct msg *); 72 const struct msg *);
68 int evtag_unmarshal_msg(struct evbuffer *, uint32_t, 73 int evtag_unmarshal_msg(struct evbuffer *, ev_uint32_t,
69 struct msg *); 74 struct msg *);
70 int msg_from_name_assign(struct msg *, const char *); 75 int msg_from_name_assign(struct msg *, const char *);
71 int msg_from_name_get(struct msg *, char * *); 76 int msg_from_name_get(struct msg *, char * *);
72 int msg_to_name_assign(struct msg *, const char *); 77 int msg_to_name_assign(struct msg *, const char *);
73 int msg_to_name_get(struct msg *, char * *); 78 int msg_to_name_get(struct msg *, char * *);
74 int msg_attack_assign(struct msg *, const struct kill*); 79 int msg_attack_assign(struct msg *, const struct kill*);
75 int msg_attack_get(struct msg *, struct kill* *); 80 int msg_attack_get(struct msg *, struct kill* *);
76 int msg_run_assign(struct msg *, int, const struct run *); 81 int msg_run_assign(struct msg *, int, const struct run *);
77 int msg_run_get(struct msg *, int, struct run * *); 82 int msg_run_get(struct msg *, int, struct run * *);
78 struct run * msg_run_add(struct msg *); 83 struct run * msg_run_add(struct msg *);
79 /* --- msg done --- */ 84 /* --- msg done --- */
80 85
81 /* Tag definition for kill */ 86 /* Tag definition for kill */
82 enum kill_ { 87 enum kill_ {
83 KILL_WEAPON=65825, 88 KILL_WEAPON=65825,
84 KILL_ACTION=2, 89 KILL_ACTION=2,
85 KILL_HOW_OFTEN=3, 90 KILL_HOW_OFTEN=3,
86 KILL_MAX_TAGS 91 KILL_MAX_TAGS
87 }; 92 };
88 93
89 /* Structure declaration for kill */ 94 /* Structure declaration for kill */
90 struct kill_access_ { 95 struct kill_access_ {
91 int (*weapon_assign)(struct kill *, const char *); 96 int (*weapon_assign)(struct kill *, const char *);
92 int (*weapon_get)(struct kill *, char * *); 97 int (*weapon_get)(struct kill *, char * *);
93 int (*action_assign)(struct kill *, const char *); 98 int (*action_assign)(struct kill *, const char *);
94 int (*action_get)(struct kill *, char * *); 99 int (*action_get)(struct kill *, char * *);
95 int (*how_often_assign)(struct kill *, const uint32_t); 100 int (*how_often_assign)(struct kill *, const ev_uint32_t);
96 int (*how_often_get)(struct kill *, uint32_t *); 101 int (*how_often_get)(struct kill *, ev_uint32_t *);
97 }; 102 };
98 103
99 struct kill { 104 struct kill {
100 struct kill_access_ *base; 105 struct kill_access_ *base;
101 106
102 char *weapon_data; 107 char *weapon_data;
103 char *action_data; 108 char *action_data;
104 uint32_t how_often_data; 109 ev_uint32_t how_often_data;
105 110
106 uint8_t weapon_set; 111 ev_uint8_t weapon_set;
107 uint8_t action_set; 112 ev_uint8_t action_set;
108 uint8_t how_often_set; 113 ev_uint8_t how_often_set;
109 }; 114 };
110 115
111 struct kill *kill_new(void); 116 struct kill *kill_new(void);
112 void kill_free(struct kill *); 117 void kill_free(struct kill *);
113 void kill_clear(struct kill *); 118 void kill_clear(struct kill *);
114 void kill_marshal(struct evbuffer *, const struct kill *); 119 void kill_marshal(struct evbuffer *, const struct kill *);
115 int kill_unmarshal(struct kill *, struct evbuffer *); 120 int kill_unmarshal(struct kill *, struct evbuffer *);
116 int kill_complete(struct kill *); 121 int kill_complete(struct kill *);
117 void evtag_marshal_kill(struct evbuffer *, uint32_t, 122 void evtag_marshal_kill(struct evbuffer *, ev_uint32_t,
118 const struct kill *); 123 const struct kill *);
119 int evtag_unmarshal_kill(struct evbuffer *, uint32_t, 124 int evtag_unmarshal_kill(struct evbuffer *, ev_uint32_t,
120 struct kill *); 125 struct kill *);
121 int kill_weapon_assign(struct kill *, const char *); 126 int kill_weapon_assign(struct kill *, const char *);
122 int kill_weapon_get(struct kill *, char * *); 127 int kill_weapon_get(struct kill *, char * *);
123 int kill_action_assign(struct kill *, const char *); 128 int kill_action_assign(struct kill *, const char *);
124 int kill_action_get(struct kill *, char * *); 129 int kill_action_get(struct kill *, char * *);
125 int kill_how_often_assign(struct kill *, const uint32_t); 130 int kill_how_often_assign(struct kill *, const ev_uint32_t);
126 int kill_how_often_get(struct kill *, uint32_t *); 131 int kill_how_often_get(struct kill *, ev_uint32_t *);
127 /* --- kill done --- */ 132 /* --- kill done --- */
128 133
129 /* Tag definition for run */ 134 /* Tag definition for run */
130 enum run_ { 135 enum run_ {
131 RUN_HOW=1, 136 RUN_HOW=1,
132 RUN_SOME_BYTES=2, 137 RUN_SOME_BYTES=2,
133 RUN_FIXED_BYTES=3, 138 RUN_FIXED_BYTES=3,
134 RUN_MAX_TAGS 139 RUN_MAX_TAGS
135 }; 140 };
136 141
137 /* Structure declaration for run */ 142 /* Structure declaration for run */
138 struct run_access_ { 143 struct run_access_ {
139 int (*how_assign)(struct run *, const char *); 144 int (*how_assign)(struct run *, const char *);
140 int (*how_get)(struct run *, char * *); 145 int (*how_get)(struct run *, char * *);
141 int (*some_bytes_assign)(struct run *, const uint8_t *, uint32_t); 146 int (*some_bytes_assign)(struct run *, const ev_uint8_t *, ev_uint32_t);
142 int (*some_bytes_get)(struct run *, uint8_t * *, uint32_t *); 147 int (*some_bytes_get)(struct run *, ev_uint8_t * *, ev_uint32_t *);
143 int (*fixed_bytes_assign)(struct run *, const uint8_t *); 148 int (*fixed_bytes_assign)(struct run *, const ev_uint8_t *);
144 int (*fixed_bytes_get)(struct run *, uint8_t **); 149 int (*fixed_bytes_get)(struct run *, ev_uint8_t **);
145 }; 150 };
146 151
147 struct run { 152 struct run {
148 struct run_access_ *base; 153 struct run_access_ *base;
149 154
150 char *how_data; 155 char *how_data;
151 uint8_t *some_bytes_data; 156 ev_uint8_t *some_bytes_data;
152 uint32_t some_bytes_length; 157 ev_uint32_t some_bytes_length;
153 uint8_t fixed_bytes_data[24]; 158 ev_uint8_t fixed_bytes_data[24];
154 159
155 uint8_t how_set; 160 ev_uint8_t how_set;
156 uint8_t some_bytes_set; 161 ev_uint8_t some_bytes_set;
157 uint8_t fixed_bytes_set; 162 ev_uint8_t fixed_bytes_set;
158 }; 163 };
159 164
160 struct run *run_new(void); 165 struct run *run_new(void);
161 void run_free(struct run *); 166 void run_free(struct run *);
162 void run_clear(struct run *); 167 void run_clear(struct run *);
163 void run_marshal(struct evbuffer *, const struct run *); 168 void run_marshal(struct evbuffer *, const struct run *);
164 int run_unmarshal(struct run *, struct evbuffer *); 169 int run_unmarshal(struct run *, struct evbuffer *);
165 int run_complete(struct run *); 170 int run_complete(struct run *);
166 void evtag_marshal_run(struct evbuffer *, uint32_t, 171 void evtag_marshal_run(struct evbuffer *, ev_uint32_t,
167 const struct run *); 172 const struct run *);
168 int evtag_unmarshal_run(struct evbuffer *, uint32_t, 173 int evtag_unmarshal_run(struct evbuffer *, ev_uint32_t,
169 struct run *); 174 struct run *);
170 int run_how_assign(struct run *, const char *); 175 int run_how_assign(struct run *, const char *);
171 int run_how_get(struct run *, char * *); 176 int run_how_get(struct run *, char * *);
172 int run_some_bytes_assign(struct run *, const uint8_t *, uint32_t); 177 int run_some_bytes_assign(struct run *, const ev_uint8_t *, ev_uint32_t);
173 int run_some_bytes_get(struct run *, uint8_t * *, uint32_t *); 178 int run_some_bytes_get(struct run *, ev_uint8_t * *, ev_uint32_t *);
174 int run_fixed_bytes_assign(struct run *, const uint8_t *); 179 int run_fixed_bytes_assign(struct run *, const ev_uint8_t *);
175 int run_fixed_bytes_get(struct run *, uint8_t **); 180 int run_fixed_bytes_get(struct run *, ev_uint8_t **);
176 /* --- run done --- */ 181 /* --- run done --- */
177 182
178 #endif /* ___REGRESS_RPC_ */ 183 #endif /* ___REGRESS_RPC_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698