1*d258785eSflorian /* $OpenBSD: control.h,v 1.3 2021/01/19 16:54:00 florian Exp $ */ 253293e44Sflorian 353293e44Sflorian /* 453293e44Sflorian * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> 553293e44Sflorian * 653293e44Sflorian * Permission to use, copy, modify, and distribute this software for any 753293e44Sflorian * purpose with or without fee is hereby granted, provided that the above 853293e44Sflorian * copyright notice and this permission notice appear in all copies. 953293e44Sflorian * 1053293e44Sflorian * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1153293e44Sflorian * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1253293e44Sflorian * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1353293e44Sflorian * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1453293e44Sflorian * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1553293e44Sflorian * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1653293e44Sflorian * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1753293e44Sflorian */ 1853293e44Sflorian 1953293e44Sflorian int control_init(char *); 20*d258785eSflorian int control_listen(int fd); 2153293e44Sflorian void control_accept(int, short, void *); 2253293e44Sflorian void control_dispatch_imsg(int, short, void *); 2353293e44Sflorian int control_imsg_relay(struct imsg *); 24