Reorganize common code (for msgs, names...) to be used across tr components.
[trust_router.git] / common / tr_msg.c
similarity index 89%
rename from tpq/tpq_json.c
rename to common/tr_msg.c
index 6732589..2aa99ea 100644 (file)
 #include <string.h>
 #include <jansson.h>
 
-#include <tpq.h>
+#include <tr_msg.h>
 
-char *tpq_req_encode(TPQ_REQ *req
+char *tr_msg_encode(TR_MSG *msg
 {
   return NULL;
 }
 
-TPQ_REQ *tpq_req_decode(char *jreq)
+TR_MSG *tr_msg_decode(char *jmsg)
 {
   return NULL;
 }
 
-char *tpq_resp_encode(TPQ_REQ *resp) 
-{
-  return NULL;
-}
-
-TPQ_RESP *tpq_resp_decode(char *jresp)
-{
-  return NULL;
-}