xref: /openbsd/usr.sbin/eigrpd/control.h (revision 9cf002a5)
1*9cf002a5Sclaudio /*	$OpenBSD: control.h,v 1.5 2021/01/19 10:37:25 claudio Exp $ */
243509a12Srenato 
343509a12Srenato /*
443509a12Srenato  * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
543509a12Srenato  *
643509a12Srenato  * Permission to use, copy, modify, and distribute this software for any
743509a12Srenato  * purpose with or without fee is hereby granted, provided that the above
843509a12Srenato  * copyright notice and this permission notice appear in all copies.
943509a12Srenato  *
1043509a12Srenato  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1143509a12Srenato  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1243509a12Srenato  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1343509a12Srenato  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1443509a12Srenato  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1543509a12Srenato  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1643509a12Srenato  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1743509a12Srenato  */
1843509a12Srenato 
1943509a12Srenato #ifndef _CONTROL_H_
2043509a12Srenato #define	_CONTROL_H_
2143509a12Srenato 
2243509a12Srenato #include <sys/queue.h>
238072de9bSrenato 
2443509a12Srenato #include <event.h>
2543509a12Srenato 
2643509a12Srenato struct ctl_conn {
2743509a12Srenato 	TAILQ_ENTRY(ctl_conn)	entry;
2843509a12Srenato 	struct imsgev		iev;
2943509a12Srenato };
3043509a12Srenato 
3143509a12Srenato int	control_init(char *);
3243509a12Srenato int	control_listen(void);
33ab786365Srenato int	control_imsg_relay(struct imsg *);
3443509a12Srenato 
3543509a12Srenato #endif	/* _CONTROL_H_ */
36