devd.h revision 114086
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 114086 2003-04-26 20:59:04Z imp $
29105573Simp */
30105573Simp
31114086Simp#ifndef DEVD_H
32114086Simp#define DEVD_H
33114086Simp
34114086Simp/** @warning This file needs to be purely 'C' compatible.
35114086Simp */
36107665Simpstruct event_proc;
37107665Simpstruct eps;
38107665Simp__BEGIN_DECLS
39107665Simpvoid add_attach(int, struct event_proc *);
40107665Simpvoid add_detach(int, struct event_proc *);
41107665Simpvoid add_directory(const char *);
42107665Simpvoid add_nomatch(int, struct event_proc *);
43107665Simpstruct event_proc *add_to_event_proc(struct event_proc *, struct eps *);
44107665Simpstruct eps *new_match(const char *, const char *);
45107665Simpstruct eps *new_action(const char *);
46107665Simpvoid set_pidfile(const char *);
47107665Simpvoid set_variable(const char *, const char *);
48105573Simpvoid yyerror(const char *s);
49107665Simpint  yylex(void);
50107665Simpint  yyparse(void);
51107665Simp__END_DECLS
52105573Simp
53107665Simp#define PATH_DEVCTL	"/dev/devctl"
54107665Simp#define DEVCTL_MAXBUF	1025
55114086Simp
56114086Simp#endif /* DEVD_H */
57