aboutsummaryrefslogtreecommitdiff
path: root/src/common/procmon.h
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-05-15 08:23:04 -0700
committerRobert Ransom <rransom.8774@gmail.com>2011-05-20 08:25:42 -0700
commit4b266c6e72254d848b2ca4f594c0b41770104d81 (patch)
tree80da149fd30030dbfbb449076d6ec0c5ab6dd133 /src/common/procmon.h
parentc714a098ea96fcd452a223ce7bbc6bfa2a6f0d02 (diff)
downloadtor-4b266c6e72254d848b2ca4f594c0b41770104d81.tar
tor-4b266c6e72254d848b2ca4f594c0b41770104d81.tar.gz
Implement __OwningControllerProcess option
Implements part of feature 3049.
Diffstat (limited to 'src/common/procmon.h')
-rw-r--r--src/common/procmon.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/common/procmon.h b/src/common/procmon.h
new file mode 100644
index 000000000..f8c7444d5
--- /dev/null
+++ b/src/common/procmon.h
@@ -0,0 +1,29 @@
+
+/**
+ * \file procmon.h
+ * \brief Headers for procmon.c
+ **/
+
+#ifndef TOR_PROCMON_H
+#define TOR_PROCMON_H
+
+#include "compat.h"
+#include "compat_libevent.h"
+
+#include "torlog.h"
+
+typedef struct tor_process_monitor_t tor_process_monitor_t;
+
+typedef void (*tor_procmon_callback_t)(void *);
+
+int tor_validate_process_specifier(const char *process_spec,
+ const char **msg);
+tor_process_monitor_t *tor_process_monitor_new(struct event_base *base,
+ const char *process_spec,
+ log_domain_mask_t log_domain,
+ tor_procmon_callback_t cb,
+ void *cb_arg,
+ const char **msg);
+void tor_process_monitor_free(tor_process_monitor_t *procmon);
+
+#endif