ipc/chromium/src/third_party/libevent/test/regress.gen.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/chromium/src/third_party/libevent/test/regress.gen.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,207 @@
     1.4 +/*
     1.5 + * Automatically generated from ./regress.rpc
     1.6 + */
     1.7 +
     1.8 +#ifndef ___REGRESS_RPC_
     1.9 +#define ___REGRESS_RPC_
    1.10 +
    1.11 +#include <event2/util.h> /* for ev_uint*_t */
    1.12 +#include <event2/rpc.h>
    1.13 +
    1.14 +struct msg;
    1.15 +struct kill;
    1.16 +struct run;
    1.17 +
    1.18 +/* Tag definition for msg */
    1.19 +enum msg_ {
    1.20 +  MSG_FROM_NAME=1,
    1.21 +  MSG_TO_NAME=2,
    1.22 +  MSG_ATTACK=3,
    1.23 +  MSG_RUN=4,
    1.24 +  MSG_MAX_TAGS
    1.25 +};
    1.26 +
    1.27 +/* Structure declaration for msg */
    1.28 +struct msg_access_ {
    1.29 +  int (*from_name_assign)(struct msg *, const char *);
    1.30 +  int (*from_name_get)(struct msg *, char * *);
    1.31 +  int (*to_name_assign)(struct msg *, const char *);
    1.32 +  int (*to_name_get)(struct msg *, char * *);
    1.33 +  int (*attack_assign)(struct msg *, const struct kill*);
    1.34 +  int (*attack_get)(struct msg *, struct kill* *);
    1.35 +  int (*run_assign)(struct msg *, int, const struct run*);
    1.36 +  int (*run_get)(struct msg *, int, struct run* *);
    1.37 +  struct run*  (*run_add)(struct msg *msg);
    1.38 +};
    1.39 +
    1.40 +struct msg {
    1.41 +  struct msg_access_ *base;
    1.42 +
    1.43 +  char *from_name_data;
    1.44 +  char *to_name_data;
    1.45 +  struct kill* attack_data;
    1.46 +  struct run* *run_data;
    1.47 +  int run_length;
    1.48 +  int run_num_allocated;
    1.49 +
    1.50 +  ev_uint8_t from_name_set;
    1.51 +  ev_uint8_t to_name_set;
    1.52 +  ev_uint8_t attack_set;
    1.53 +  ev_uint8_t run_set;
    1.54 +};
    1.55 +
    1.56 +struct msg *msg_new(void);
    1.57 +struct msg *msg_new_with_arg(void *);
    1.58 +void msg_free(struct msg *);
    1.59 +void msg_clear(struct msg *);
    1.60 +void msg_marshal(struct evbuffer *, const struct msg *);
    1.61 +int msg_unmarshal(struct msg *, struct evbuffer *);
    1.62 +int msg_complete(struct msg *);
    1.63 +void evtag_marshal_msg(struct evbuffer *, ev_uint32_t,
    1.64 +    const struct msg *);
    1.65 +int evtag_unmarshal_msg(struct evbuffer *, ev_uint32_t,
    1.66 +    struct msg *);
    1.67 +int msg_from_name_assign(struct msg *, const char *);
    1.68 +int msg_from_name_get(struct msg *, char * *);
    1.69 +int msg_to_name_assign(struct msg *, const char *);
    1.70 +int msg_to_name_get(struct msg *, char * *);
    1.71 +int msg_attack_assign(struct msg *, const struct kill*);
    1.72 +int msg_attack_get(struct msg *, struct kill* *);
    1.73 +int msg_run_assign(struct msg *, int, const struct run*);
    1.74 +int msg_run_get(struct msg *, int, struct run* *);
    1.75 +struct run*  msg_run_add(struct msg *msg);
    1.76 +/* --- msg done --- */
    1.77 +
    1.78 +/* Tag definition for kill */
    1.79 +enum kill_ {
    1.80 +  KILL_WEAPON=65825,
    1.81 +  KILL_ACTION=2,
    1.82 +  KILL_HOW_OFTEN=3,
    1.83 +  KILL_MAX_TAGS
    1.84 +};
    1.85 +
    1.86 +/* Structure declaration for kill */
    1.87 +struct kill_access_ {
    1.88 +  int (*weapon_assign)(struct kill *, const char *);
    1.89 +  int (*weapon_get)(struct kill *, char * *);
    1.90 +  int (*action_assign)(struct kill *, const char *);
    1.91 +  int (*action_get)(struct kill *, char * *);
    1.92 +  int (*how_often_assign)(struct kill *, int, const ev_uint32_t);
    1.93 +  int (*how_often_get)(struct kill *, int, ev_uint32_t *);
    1.94 +  ev_uint32_t * (*how_often_add)(struct kill *msg, const ev_uint32_t value);
    1.95 +};
    1.96 +
    1.97 +struct kill {
    1.98 +  struct kill_access_ *base;
    1.99 +
   1.100 +  char *weapon_data;
   1.101 +  char *action_data;
   1.102 +  ev_uint32_t *how_often_data;
   1.103 +  int how_often_length;
   1.104 +  int how_often_num_allocated;
   1.105 +
   1.106 +  ev_uint8_t weapon_set;
   1.107 +  ev_uint8_t action_set;
   1.108 +  ev_uint8_t how_often_set;
   1.109 +};
   1.110 +
   1.111 +struct kill *kill_new(void);
   1.112 +struct kill *kill_new_with_arg(void *);
   1.113 +void kill_free(struct kill *);
   1.114 +void kill_clear(struct kill *);
   1.115 +void kill_marshal(struct evbuffer *, const struct kill *);
   1.116 +int kill_unmarshal(struct kill *, struct evbuffer *);
   1.117 +int kill_complete(struct kill *);
   1.118 +void evtag_marshal_kill(struct evbuffer *, ev_uint32_t,
   1.119 +    const struct kill *);
   1.120 +int evtag_unmarshal_kill(struct evbuffer *, ev_uint32_t,
   1.121 +    struct kill *);
   1.122 +int kill_weapon_assign(struct kill *, const char *);
   1.123 +int kill_weapon_get(struct kill *, char * *);
   1.124 +int kill_action_assign(struct kill *, const char *);
   1.125 +int kill_action_get(struct kill *, char * *);
   1.126 +int kill_how_often_assign(struct kill *, int, const ev_uint32_t);
   1.127 +int kill_how_often_get(struct kill *, int, ev_uint32_t *);
   1.128 +ev_uint32_t * kill_how_often_add(struct kill *msg, const ev_uint32_t value);
   1.129 +/* --- kill done --- */
   1.130 +
   1.131 +/* Tag definition for run */
   1.132 +enum run_ {
   1.133 +  RUN_HOW=1,
   1.134 +  RUN_SOME_BYTES=2,
   1.135 +  RUN_FIXED_BYTES=3,
   1.136 +  RUN_NOTES=4,
   1.137 +  RUN_LARGE_NUMBER=5,
   1.138 +  RUN_OTHER_NUMBERS=6,
   1.139 +  RUN_MAX_TAGS
   1.140 +};
   1.141 +
   1.142 +/* Structure declaration for run */
   1.143 +struct run_access_ {
   1.144 +  int (*how_assign)(struct run *, const char *);
   1.145 +  int (*how_get)(struct run *, char * *);
   1.146 +  int (*some_bytes_assign)(struct run *, const ev_uint8_t *, ev_uint32_t);
   1.147 +  int (*some_bytes_get)(struct run *, ev_uint8_t * *, ev_uint32_t *);
   1.148 +  int (*fixed_bytes_assign)(struct run *, const ev_uint8_t *);
   1.149 +  int (*fixed_bytes_get)(struct run *, ev_uint8_t **);
   1.150 +  int (*notes_assign)(struct run *, int, const char *);
   1.151 +  int (*notes_get)(struct run *, int, char * *);
   1.152 +  char * * (*notes_add)(struct run *msg, const char * value);
   1.153 +  int (*large_number_assign)(struct run *, const ev_uint64_t);
   1.154 +  int (*large_number_get)(struct run *, ev_uint64_t *);
   1.155 +  int (*other_numbers_assign)(struct run *, int, const ev_uint32_t);
   1.156 +  int (*other_numbers_get)(struct run *, int, ev_uint32_t *);
   1.157 +  ev_uint32_t * (*other_numbers_add)(struct run *msg, const ev_uint32_t value);
   1.158 +};
   1.159 +
   1.160 +struct run {
   1.161 +  struct run_access_ *base;
   1.162 +
   1.163 +  char *how_data;
   1.164 +  ev_uint8_t *some_bytes_data;
   1.165 +  ev_uint32_t some_bytes_length;
   1.166 +  ev_uint8_t fixed_bytes_data[24];
   1.167 +  char * *notes_data;
   1.168 +  int notes_length;
   1.169 +  int notes_num_allocated;
   1.170 +  ev_uint64_t large_number_data;
   1.171 +  ev_uint32_t *other_numbers_data;
   1.172 +  int other_numbers_length;
   1.173 +  int other_numbers_num_allocated;
   1.174 +
   1.175 +  ev_uint8_t how_set;
   1.176 +  ev_uint8_t some_bytes_set;
   1.177 +  ev_uint8_t fixed_bytes_set;
   1.178 +  ev_uint8_t notes_set;
   1.179 +  ev_uint8_t large_number_set;
   1.180 +  ev_uint8_t other_numbers_set;
   1.181 +};
   1.182 +
   1.183 +struct run *run_new(void);
   1.184 +struct run *run_new_with_arg(void *);
   1.185 +void run_free(struct run *);
   1.186 +void run_clear(struct run *);
   1.187 +void run_marshal(struct evbuffer *, const struct run *);
   1.188 +int run_unmarshal(struct run *, struct evbuffer *);
   1.189 +int run_complete(struct run *);
   1.190 +void evtag_marshal_run(struct evbuffer *, ev_uint32_t,
   1.191 +    const struct run *);
   1.192 +int evtag_unmarshal_run(struct evbuffer *, ev_uint32_t,
   1.193 +    struct run *);
   1.194 +int run_how_assign(struct run *, const char *);
   1.195 +int run_how_get(struct run *, char * *);
   1.196 +int run_some_bytes_assign(struct run *, const ev_uint8_t *, ev_uint32_t);
   1.197 +int run_some_bytes_get(struct run *, ev_uint8_t * *, ev_uint32_t *);
   1.198 +int run_fixed_bytes_assign(struct run *, const ev_uint8_t *);
   1.199 +int run_fixed_bytes_get(struct run *, ev_uint8_t **);
   1.200 +int run_notes_assign(struct run *, int, const char *);
   1.201 +int run_notes_get(struct run *, int, char * *);
   1.202 +char * * run_notes_add(struct run *msg, const char * value);
   1.203 +int run_large_number_assign(struct run *, const ev_uint64_t);
   1.204 +int run_large_number_get(struct run *, ev_uint64_t *);
   1.205 +int run_other_numbers_assign(struct run *, int, const ev_uint32_t);
   1.206 +int run_other_numbers_get(struct run *, int, ev_uint32_t *);
   1.207 +ev_uint32_t * run_other_numbers_add(struct run *msg, const ev_uint32_t value);
   1.208 +/* --- run done --- */
   1.209 +
   1.210 +#endif  /* ___REGRESS_RPC_ */

mercurial