summaryrefslogtreecommitdiffstats
path: root/ldpd/control.h
blob: f45c97e8bbd1eec8fb80f1639f44a5a268ff6248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: ISC
/*	$OpenBSD$ */

/*
 * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
 */

#ifndef _CONTROL_H_
#define	_CONTROL_H_

#include "queue.h"

struct ctl_conn {
	TAILQ_ENTRY(ctl_conn)	entry;
	struct imsgev		iev;
};
TAILQ_HEAD(ctl_conns, ctl_conn);

extern struct ctl_conns ctl_conns;

int	control_init(char *);
int	control_listen(void);
void	control_cleanup(char *);
int	control_imsg_relay(struct imsg *);

#endif	/* _CONTROL_H_ */