Add support for show peers monitoring request
[trust_router.git] / include / mon_internal.h
index 8e439d2..c58b9d7 100644 (file)
@@ -100,10 +100,12 @@ enum mon_opt_type {
   // System statistics
   OPT_TYPE_SHOW_UPTIME,
   OPT_TYPE_SHOW_TID_REQ_COUNT,
+  OPT_TYPE_SHOW_TID_REQ_ERR_COUNT,
   OPT_TYPE_SHOW_TID_REQ_PENDING,
 
   // Dynamic trust router state
   OPT_TYPE_SHOW_ROUTES,
+  OPT_TYPE_SHOW_PEERS,
   OPT_TYPE_SHOW_COMMUNITIES
 };
 
@@ -133,6 +135,7 @@ struct mons_instance {
   MONS_AUTH_FUNC *auth_handler;
   void *cookie;
   GPtrArray *handlers;
+  GArray *pids; /* PIDs of active mons processes */
 };
 
 /* Client instance */