tor  master
procmon.h
Go to the documentation of this file.
1 /* Copyright (c) 2011-2017, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
9 #ifndef TOR_PROCMON_H
10 #define TOR_PROCMON_H
11 
12 #include "compat.h"
13 #include "compat_libevent.h"
14 
15 #include "torlog.h"
16 
18 
19 /* DOCDOC tor_procmon_callback_t */
20 typedef void (*tor_procmon_callback_t)(void *);
21 
22 int tor_validate_process_specifier(const char *process_spec,
23  const char **msg);
25  const char *process_spec,
27  tor_procmon_callback_t cb,
28  void *cb_arg,
29  const char **msg);
31 #define tor_process_monitor_free(procmon) \
32  FREE_AND_NULL(tor_process_monitor_t, tor_process_monitor_free_, (procmon))
33 
34 #endif /* !defined(TOR_PROCMON_H) */
35 
Definition: procmon.c:94
void * cb_arg
Definition: procmon.c:141
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)
Definition: procmon.c:173
Definition: base.py:1
void tor_process_monitor_free_(tor_process_monitor_t *procmon)
Definition: procmon.c:317
uint32_t log_domain_mask_t
Definition: torlog.h:124
int tor_validate_process_specifier(const char *process_spec, const char **msg)
Definition: procmon.c:149
tor_procmon_callback_t cb
Definition: procmon.c:140
Headers for log.c.
log_domain_mask_t log_domain
Definition: procmon.c:96