Replace static monitor handler tables with dynamic handler registry
[trust_router.git] / include / mon_internal.h
index d2d1572..8e439d2 100644 (file)
@@ -91,6 +91,7 @@ enum mon_resp_code {
 
 enum mon_opt_type {
   OPT_TYPE_UNKNOWN=0,
+  OPT_TYPE_ANY,
 
   // System information
   OPT_TYPE_SHOW_VERSION,
@@ -131,6 +132,7 @@ struct mons_instance {
   MONS_REQ_FUNC *req_handler;
   MONS_AUTH_FUNC *auth_handler;
   void *cookie;
+  GPtrArray *handlers;
 };
 
 /* Client instance */