projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First pass at a trmon command-line interface; fix a few bugs
[trust_router.git]
/
include
/
tr_msg.h
diff --git
a/include/tr_msg.h
b/include/tr_msg.h
index
59b7cf7
..
17979c1
100644
(file)
--- a/
include/tr_msg.h
+++ b/
include/tr_msg.h
@@
-38,6
+38,8
@@
#include <jansson.h>
#include <trust_router/tid.h>
#include <trust_router/trp.h>
#include <jansson.h>
#include <trust_router/tid.h>
#include <trust_router/trp.h>
+#include <mon_internal.h>
+
typedef struct tr_msg TR_MSG;
enum msg_type {
typedef struct tr_msg TR_MSG;
enum msg_type {
@@
-45,7
+47,9
@@
enum msg_type {
TID_REQUEST,
TID_RESPONSE,
TRP_UPDATE,
TID_REQUEST,
TID_RESPONSE,
TRP_UPDATE,
- TRP_REQUEST
+ TRP_REQUEST,
+ MON_REQUEST,
+ MON_RESPONSE
};
/* Union of TR message types to hold message of any type. */
};
/* Union of TR message types to hold message of any type. */
@@
-65,6
+69,10
@@
TRP_UPD *tr_msg_get_trp_upd(TR_MSG *msg);
void tr_msg_set_trp_upd(TR_MSG *msg, TRP_UPD *req);
TRP_REQ *tr_msg_get_trp_req(TR_MSG *msg);
void tr_msg_set_trp_req(TR_MSG *msg, TRP_REQ *req);
void tr_msg_set_trp_upd(TR_MSG *msg, TRP_UPD *req);
TRP_REQ *tr_msg_get_trp_req(TR_MSG *msg);
void tr_msg_set_trp_req(TR_MSG *msg, TRP_REQ *req);
+MON_REQ *tr_msg_get_mon_req(TR_MSG *msg);
+void tr_msg_set_mon_req(TR_MSG *msg, MON_REQ *req);
+MON_RESP *tr_msg_get_mon_resp(TR_MSG *msg);
+void tr_msg_set_mon_resp(TR_MSG *msg, MON_RESP *resp);
/* Encoders/Decoders */
/* Encoders/Decoders */