Merge pull request #48 from painless-security/jennifer/monitoring
[trust_router.git] / include / tid_internal.h
index 658b2e4..6b6fb78 100644 (file)
@@ -86,8 +86,14 @@ struct tidc_instance {
   TR_GSSC_INSTANCE *gssc;
 };
 
+struct tid_process {
+  pid_t pid;
+  int read_fd;
+};
+
 struct tids_instance {
   int req_count;
+  int error_count;
   char *priv_key;
   char *ipaddr;
   const char *hostname;
@@ -96,6 +102,7 @@ struct tids_instance {
   void *cookie;
   unsigned int tids_port;
   TR_NAME *gss_name;           /* GSS name client used for authentication */
+  GArray *pids; /* PIDs of active tids processes */
 };
 
 /** Decrement a reference to #json when this tid_req is cleaned up. A
@@ -116,4 +123,6 @@ TID_RC tid_resp_cpy(TID_RESP *dst, TID_RESP *src);
 void tid_resp_set_cons(TID_RESP *resp, TR_CONSTRAINT_SET *cons);
 void tid_resp_set_error_path(TID_RESP *resp, json_t *ep);
 
+void tids_sweep_procs(TIDS_INSTANCE *tids);
+
 #endif