Merge branch 'master' into debian
[trust_router.git] / include / tid_internal.h
index ecaf647..e742c4f 100644 (file)
@@ -96,15 +96,16 @@ struct tid_process {
 };
 
 struct tids_instance {
-  int req_count;
-  int error_count;
+  int req_count; /* successful requests */
+  int req_error_count; /* unsuccessful requests */
+  int error_count; /* invalid requests or internal errors */
   char *priv_key;
   char *ipaddr;
   const char *hostname;
   TIDS_REQ_FUNC *req_handler;
   tids_auth_func *auth_handler;
   void *cookie;
-  unsigned int tids_port;
+  int tids_port;
   TR_NAME *gss_name;           /* GSS name client used for authentication */
   GArray *pids; /* PIDs of active tids processes */
 };
@@ -114,7 +115,7 @@ struct tids_instance {
     reference they already hold to the TID_REQ.*/
 void tid_req_cleanup_json(TID_REQ *, json_t *json);
 
-int tid_req_add_path(TID_REQ *, const char *this_system, unsigned port);
+int tid_req_add_path(TID_REQ *req, const char *this_system, int port);
 
 TID_SRVR_BLK *tid_srvr_blk_new(TALLOC_CTX *mem_ctx);
 void tid_srvr_blk_free(TID_SRVR_BLK *srvr);