X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tid%2Ftid_resp.c;h=4f46b12b0416968e35333659092346e3911286ea;hb=6e1647f2f4714d8c0c4c27ef376302bab1ae4bb3;hp=e75571beecea8b683ea39e80f34b7103e59dff31;hpb=89f9afd660328e1d0042b4da77fa055748bac3fc;p=trust_router.git diff --git a/tid/tid_resp.c b/tid/tid_resp.c index e75571b..4f46b12 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); } @@ -166,6 +169,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) {