X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=tid%2Ftid_resp.c;h=3ff3d02b48b7096accf7e00b8ed4be5ac0332930;hp=dbbc90672a30be68d8b65746e1d47369fa19f734;hb=3c5fb17459ff56d5e23cea059503f46a42150a1e;hpb=b9adb7a0845273cab35025a347c7213553aa154a diff --git a/tid/tid_resp.c b/tid/tid_resp.c index dbbc906..3ff3d02 100644 --- a/tid/tid_resp.c +++ b/tid/tid_resp.c @@ -53,6 +53,8 @@ static int tid_resp_destructor(void *obj) tr_free_name(resp->comm); if (resp->orig_coi!=NULL) tr_free_name(resp->orig_coi); + if (resp->request_id!=NULL) + tr_free_name(resp->request_id); return 0; } @@ -68,6 +70,7 @@ TID_RESP *tid_resp_new(TALLOC_CTX *mem_ctx) resp->cons=NULL; resp->orig_coi=NULL; resp->servers=NULL; + resp->request_id=NULL; resp->error_path=NULL; talloc_set_destructor((void *)resp, tid_resp_destructor); } @@ -192,6 +195,16 @@ void tid_resp_set_orig_coi(TID_RESP *resp, TR_NAME *orig_coi) resp->orig_coi = orig_coi; } +TR_EXPORT TR_NAME *tid_resp_get_request_id(TID_RESP *resp) +{ + return(resp->request_id); +} + +void tid_resp_set_request_id(TID_RESP *resp, TR_NAME *request_id) +{ + resp->request_id = request_id; +} + TR_EXPORT TID_SRVR_BLK *tid_resp_get_server(TID_RESP *resp, size_t index) {