/* Tag definition for run */
enum run_ {
RUN_HOW=1,
RUN_SOME_BYTES=2,
RUN_FIXED_BYTES=3,
RUN_NOTES=4,
RUN_LARGE_NUMBER=5,
RUN_OTHER_NUMBERS=6,
RUN_MAX_TAGS
};
/* Structure declaration for run */
struct run_access_ {
int (*how_assign)(struct run *, const char *);
int (*how_get)(struct run *, char * *);
int (*some_bytes_assign)(struct run *, const ev_uint8_t *, ev_uint32_t);
int (*some_bytes_get)(struct run *, ev_uint8_t * *, ev_uint32_t *);
int (*fixed_bytes_assign)(struct run *, const ev_uint8_t *);
int (*fixed_bytes_get)(struct run *, ev_uint8_t **);
int (*notes_assign)(struct run *, int, const char *);
int (*notes_get)(struct run *, int, char * *);
char * * (*notes_add)(struct run *msg, const char * value);
int (*large_number_assign)(struct run *, const ev_uint64_t);
int (*large_number_get)(struct run *, ev_uint64_t *);
int (*other_numbers_assign)(struct run *, int, const ev_uint32_t);
int (*other_numbers_get)(struct run *, int, ev_uint32_t *);
ev_uint32_t * (*other_numbers_add)(struct run *msg, const ev_uint32_t value);
};
struct run {
struct run_access_ *base;
char *how_data;
ev_uint8_t *some_bytes_data;
ev_uint32_t some_bytes_length;
ev_uint8_t fixed_bytes_data[24];
char * *notes_data;
int notes_length;
int notes_num_allocated;
ev_uint64_t large_number_data;
ev_uint32_t *other_numbers_data;
int other_numbers_length;
int other_numbers_num_allocated;
struct run *run_new(void);
struct run *run_new_with_arg(void *);
void run_free(struct run *);
void run_clear(struct run *);
void run_marshal(struct evbuffer *, const struct run *);
int run_unmarshal(struct run *, struct evbuffer *);
int run_complete(struct run *);
void evtag_marshal_run(struct evbuffer *, ev_uint32_t,
const struct run *);
int evtag_unmarshal_run(struct evbuffer *, ev_uint32_t,
struct run *);
int run_how_assign(struct run *, const char *);
int run_how_get(struct run *, char * *);
int run_some_bytes_assign(struct run *, const ev_uint8_t *, ev_uint32_t);
int run_some_bytes_get(struct run *, ev_uint8_t * *, ev_uint32_t *);
int run_fixed_bytes_assign(struct run *, const ev_uint8_t *);
int run_fixed_bytes_get(struct run *, ev_uint8_t **);
int run_notes_assign(struct run *, int, const char *);
int run_notes_get(struct run *, int, char * *);
char * * run_notes_add(struct run *msg, const char * value);
int run_large_number_assign(struct run *, const ev_uint64_t);
int run_large_number_get(struct run *, ev_uint64_t *);
int run_other_numbers_assign(struct run *, int, const ev_uint32_t);
int run_other_numbers_get(struct run *, int, ev_uint32_t *);
ev_uint32_t * run_other_numbers_add(struct run *msg, const ev_uint32_t value);
/* --- run done --- */