devd.h revision 107665
1105573Simp/*- 2105573Simp * DEVD (Device action daemon) 3105573Simp * 4105573Simp * Copyright (c) 2002 M. Warner Losh <imp@freebsd.org>. 5105573Simp * All rights reserved. 6105573Simp * 7105573Simp * Redistribution and use in source and binary forms, with or without 8105573Simp * modification, are permitted provided that the following conditions 9105573Simp * are met: 10105573Simp * 1. Redistributions of source code must retain the above copyright 11105573Simp * notice, this list of conditions and the following disclaimer. 12105573Simp * 2. Redistributions in binary form must reproduce the above copyright 13105573Simp * notice, this list of conditions and the following disclaimer in the 14105573Simp * documentation and/or other materials provided with the distribution. 15105573Simp * 16105573Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17105573Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18105573Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19105573Simp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20105573Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21105573Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22105573Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23105573Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24105573Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25105573Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26105573Simp * SUCH DAMAGE. 27105573Simp * 28105573Simp * $FreeBSD: head/sbin/devd/devd.h 107665 2002-12-07 08:04:36Z imp $ 29105573Simp */ 30105573Simp 31107665Simpstruct event_proc; 32107665Simpstruct eps; 33107665Simp__BEGIN_DECLS 34107665Simpvoid add_attach(int, struct event_proc *); 35107665Simpvoid add_detach(int, struct event_proc *); 36107665Simpvoid add_directory(const char *); 37107665Simpvoid add_nomatch(int, struct event_proc *); 38107665Simpstruct event_proc *add_to_event_proc(struct event_proc *, struct eps *); 39107665Simpstruct eps *new_match(const char *, const char *); 40107665Simpstruct eps *new_action(const char *); 41107665Simpvoid set_pidfile(const char *); 42107665Simpvoid set_variable(const char *, const char *); 43105573Simpvoid yyerror(const char *s); 44107665Simpint yylex(void); 45107665Simpint yyparse(void); 46107665Simp__END_DECLS 47105573Simp 48107665Simp#define PATH_DEVCTL "/dev/devctl" 49107665Simp#define DEVCTL_MAXBUF 1025 50