#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>
/* Monitoring server instance */
struct mons_instance {
- char *hostname;
+ const char *hostname;
unsigned int port;
TR_GSS_NAMES *authorized_gss_names;
TIDS_INSTANCE *tids;
/* 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