1*d93ca237Sclaudio /* $OpenBSD: control.h,v 1.11 2021/01/19 15:14:35 claudio Exp $ */ 2ab0c2486Smichele 3ab0c2486Smichele /* 4ab0c2486Smichele * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> 5ab0c2486Smichele * 6ab0c2486Smichele * Permission to use, copy, modify, and distribute this software for any 7ab0c2486Smichele * purpose with or without fee is hereby granted, provided that the above 8ab0c2486Smichele * copyright notice and this permission notice appear in all copies. 9ab0c2486Smichele * 10ab0c2486Smichele * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11ab0c2486Smichele * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12ab0c2486Smichele * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13ab0c2486Smichele * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14ab0c2486Smichele * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15ab0c2486Smichele * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16ab0c2486Smichele * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17ab0c2486Smichele */ 18ab0c2486Smichele 19ab0c2486Smichele #ifndef _CONTROL_H_ 20ab0c2486Smichele #define _CONTROL_H_ 21ab0c2486Smichele 225411bbb6Srenato #include <sys/types.h> 23ab0c2486Smichele #include <sys/queue.h> 24ab0c2486Smichele 25ab0c2486Smichele struct ctl_conn { 26ab0c2486Smichele TAILQ_ENTRY(ctl_conn) entry; 27cb77742aSpyr struct imsgev iev; 28ab0c2486Smichele }; 29ab0c2486Smichele 30dcaf1165Srenato int control_init(char *); 31ab0c2486Smichele int control_listen(void); 32b0e92afdSmestre void control_cleanup(void); 33c28a25a1Srenato int control_imsg_relay(struct imsg *); 34ab0c2486Smichele 35ab0c2486Smichele #endif /* _CONTROL_H_ */ 36