Further work on tids and monitoring, tids appears to work again
[trust_router.git] / include / mon_internal.h
index db9d1b4..171ce18 100644 (file)
@@ -40,8 +40,7 @@
 #include <stdint.h>
 #include <jansson.h>
 #include <gmodule.h>
-
-#include <tr.h>
+#include <trp_internal.h>
 #include <tr_gss_names.h>
 #include <tr_name_internal.h>
 #include <gssapi.h>
@@ -119,7 +118,7 @@ struct mon_resp {
 
 /* Monitoring server instance */
 struct mons_instance {
-  char *hostname;
+  const char *hostname;
   unsigned int port;
   TR_GSS_NAMES *authorized_gss_names;
   TIDS_INSTANCE *tids;
@@ -162,8 +161,8 @@ json_t *mon_resp_encode(MON_RESP *resp);
 
 /* mons.c */
 MONS_INSTANCE *mons_new(TALLOC_CTX *mem_ctx);
-int mons_get_listener(MONS_INSTANCE *mons, MONS_REQ_FUNC *req_handler, MONS_AUTH_FUNC *auth_handler, unsigned int port,
-                      void *cookie, int *fd_out, size_t max_fd);
+int mons_get_listener(MONS_INSTANCE *mons, MONS_REQ_FUNC *req_handler, MONS_AUTH_FUNC *auth_handler, const char *hostname,
+                      unsigned int port, void *cookie, int *fd_out, size_t max_fd);
 int mons_accept(MONS_INSTANCE *mons, int listen);
 
 #endif //TRUST_ROUTER_MON_REQ_H