Home
last modified time | relevance | path

Searched refs:evbuf (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/third_party/libevent/
Devent_tagging.c68 int evtag_decode_int(ev_uint32_t *pnumber, struct evbuffer *evbuf);
69 int evtag_encode_tag(struct evbuffer *evbuf, ev_uint32_t tag);
70 int evtag_decode_tag(ev_uint32_t *ptag, struct evbuffer *evbuf);
91 encode_int(struct evbuffer *evbuf, ev_uint32_t number) in encode_int() argument
113 evbuffer_add(evbuf, data, (off + 1) / 2); in encode_int()
122 evtag_encode_tag(struct evbuffer *evbuf, ev_uint32_t tag) in evtag_encode_tag() argument
138 if (evbuf != NULL) in evtag_encode_tag()
139 evbuffer_add(evbuf, data, bytes); in evtag_encode_tag()
145 decode_tag_internal(ev_uint32_t *ptag, struct evbuffer *evbuf, int dodrain) in decode_tag_internal() argument
148 ev_uint8_t *data = EVBUFFER_DATA(evbuf); in decode_tag_internal()
[all …]
Devent.h1133 void evtag_marshal(struct evbuffer *evbuf, ev_uint32_t tag, const void *data,
1146 void encode_int(struct evbuffer *evbuf, ev_uint32_t number);
1148 void evtag_marshal_int(struct evbuffer *evbuf, ev_uint32_t tag,
1154 void evtag_marshal_timeval(struct evbuffer *evbuf, ev_uint32_t tag,
1159 int evtag_peek(struct evbuffer *evbuf, ev_uint32_t *ptag);
1160 int evtag_peek_length(struct evbuffer *evbuf, ev_uint32_t *plength);
1161 int evtag_payload_length(struct evbuffer *evbuf, ev_uint32_t *plength);
1162 int evtag_consume(struct evbuffer *evbuf);
1164 int evtag_unmarshal_int(struct evbuffer *evbuf, ev_uint32_t need_tag,
1170 int evtag_unmarshal_string(struct evbuffer *evbuf, ev_uint32_t need_tag,
[all …]
Devrpc.c169 struct evhttp_request *req, struct evbuffer *evbuf) in evrpc_process_hooks() argument
173 if (hook->process(req, evbuf, hook->process_arg) == -1) in evrpc_process_hooks()
/external/chromium/third_party/libevent/
Devent_tagging.c68 int evtag_decode_int(ev_uint32_t *pnumber, struct evbuffer *evbuf);
69 int evtag_encode_tag(struct evbuffer *evbuf, ev_uint32_t tag);
70 int evtag_decode_tag(ev_uint32_t *ptag, struct evbuffer *evbuf);
91 encode_int(struct evbuffer *evbuf, ev_uint32_t number) in encode_int() argument
113 evbuffer_add(evbuf, data, (off + 1) / 2); in encode_int()
122 evtag_encode_tag(struct evbuffer *evbuf, ev_uint32_t tag) in evtag_encode_tag() argument
138 if (evbuf != NULL) in evtag_encode_tag()
139 evbuffer_add(evbuf, data, bytes); in evtag_encode_tag()
145 decode_tag_internal(ev_uint32_t *ptag, struct evbuffer *evbuf, int dodrain) in decode_tag_internal() argument
148 ev_uint8_t *data = EVBUFFER_DATA(evbuf); in decode_tag_internal()
[all …]
Devent.h1133 void evtag_marshal(struct evbuffer *evbuf, ev_uint32_t tag, const void *data,
1146 void encode_int(struct evbuffer *evbuf, ev_uint32_t number);
1148 void evtag_marshal_int(struct evbuffer *evbuf, ev_uint32_t tag,
1154 void evtag_marshal_timeval(struct evbuffer *evbuf, ev_uint32_t tag,
1159 int evtag_peek(struct evbuffer *evbuf, ev_uint32_t *ptag);
1160 int evtag_peek_length(struct evbuffer *evbuf, ev_uint32_t *plength);
1161 int evtag_payload_length(struct evbuffer *evbuf, ev_uint32_t *plength);
1162 int evtag_consume(struct evbuffer *evbuf);
1164 int evtag_unmarshal_int(struct evbuffer *evbuf, ev_uint32_t need_tag,
1170 int evtag_unmarshal_string(struct evbuffer *evbuf, ev_uint32_t need_tag,
[all …]
Devrpc.c169 struct evhttp_request *req, struct evbuffer *evbuf) in evrpc_process_hooks() argument
173 if (hook->process(req, evbuf, hook->process_arg) == -1) in evrpc_process_hooks()
/external/chromium_org/third_party/libevent/test/
Dregress.gen.c282 msg_marshal(struct evbuffer *evbuf, const struct msg *tmp){ in msg_marshal() argument
283 evtag_marshal_string(evbuf, MSG_FROM_NAME, tmp->from_name_data); in msg_marshal()
284 evtag_marshal_string(evbuf, MSG_TO_NAME, tmp->to_name_data); in msg_marshal()
286 evtag_marshal_kill(evbuf, MSG_ATTACK, tmp->attack_data); in msg_marshal()
291 evtag_marshal_run(evbuf, MSG_RUN, tmp->run_data[i]); in msg_marshal()
297 msg_unmarshal(struct msg *tmp, struct evbuffer *evbuf) in msg_unmarshal() argument
300 while (EVBUFFER_LENGTH(evbuf) > 0) { in msg_unmarshal()
301 if (evtag_peek(evbuf, &tag) == -1) in msg_unmarshal()
309 if (evtag_unmarshal_string(evbuf, MSG_FROM_NAME, &tmp->from_name_data) == -1) { in msg_unmarshal()
320 if (evtag_unmarshal_string(evbuf, MSG_TO_NAME, &tmp->to_name_data) == -1) { in msg_unmarshal()
[all …]
Dregress_rpc.c413 struct evbuffer *evbuf, void *arg) in rpc_hook_add_header() argument
425 struct evbuffer *evbuf, void *arg) in rpc_hook_remove_header() argument
Dregress.c1310 int evtag_decode_int(uint32_t *pnumber, struct evbuffer *evbuf);
1311 int evtag_encode_tag(struct evbuffer *evbuf, uint32_t number);
1312 int evtag_decode_tag(uint32_t *pnumber, struct evbuffer *evbuf);
/external/chromium/third_party/libevent/test/
Dregress.gen.c282 msg_marshal(struct evbuffer *evbuf, const struct msg *tmp){ in msg_marshal() argument
283 evtag_marshal_string(evbuf, MSG_FROM_NAME, tmp->from_name_data); in msg_marshal()
284 evtag_marshal_string(evbuf, MSG_TO_NAME, tmp->to_name_data); in msg_marshal()
286 evtag_marshal_kill(evbuf, MSG_ATTACK, tmp->attack_data); in msg_marshal()
291 evtag_marshal_run(evbuf, MSG_RUN, tmp->run_data[i]); in msg_marshal()
297 msg_unmarshal(struct msg *tmp, struct evbuffer *evbuf) in msg_unmarshal() argument
300 while (EVBUFFER_LENGTH(evbuf) > 0) { in msg_unmarshal()
301 if (evtag_peek(evbuf, &tag) == -1) in msg_unmarshal()
309 if (evtag_unmarshal_string(evbuf, MSG_FROM_NAME, &tmp->from_name_data) == -1) { in msg_unmarshal()
320 if (evtag_unmarshal_string(evbuf, MSG_TO_NAME, &tmp->to_name_data) == -1) { in msg_unmarshal()
[all …]
Dregress_rpc.c413 struct evbuffer *evbuf, void *arg) in rpc_hook_add_header() argument
425 struct evbuffer *evbuf, void *arg) in rpc_hook_remove_header() argument
Dregress.c1310 int evtag_decode_int(uint32_t *pnumber, struct evbuffer *evbuf);
1311 int evtag_encode_tag(struct evbuffer *evbuf, uint32_t number);
1312 int evtag_decode_tag(uint32_t *pnumber, struct evbuffer *evbuf);