Exemplo n.º 1
0
dp_req_t
with_dp::t_dp_req_create_child(dp_req_t req, const char * type, void * buf, size_t capacity) {
    dp_req_t r = dp_req_create_with_buf(m_dp, cpe_hs_create(t_tmp_allocrator(), type), buf, capacity);
    dp_req_set_parent(r, req);
    return r;
}
Exemplo n.º 2
0
 static Request * _create(dp_mgr_t mgr, cpe_hash_string_t type, char * buf, size_t capacity) {
     return (Request*)dp_req_create_with_buf(mgr, type, buf, capacity);
 }