2016-02-27 18:48:19 +01:00
|
|
|
/* Copyright (c) 2011-2016, The Tor Project, Inc. */
|
2012-06-05 02:58:17 +02:00
|
|
|
/* See LICENSE for licensing information */
|
2011-05-15 17:23:04 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \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;
|
|
|
|
|
2012-06-05 01:51:00 +02:00
|
|
|
/* DOCDOC tor_procmon_callback_t */
|
2011-05-15 17:23:04 +02:00
|
|
|
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
|
2011-05-23 07:10:49 +02:00
|
|
|
|