mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 14:43:46 +01:00
31 lines
898 B
C
31 lines
898 B
C
|
|
/**
|
|
* \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
|
|
|