Deleted Added
full compact
devd.hh (121487) devd.hh (147874)
1/*-
2 * Copyright (c) 2002-2003 M. Warner Losh.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2002-2003 M. Warner Losh.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sbin/devd/devd.hh 121487 2003-10-24 22:02:29Z imp $
26 * $FreeBSD: head/sbin/devd/devd.hh 147874 2005-07-10 03:37:15Z imp $
27 */
28
29#ifndef DEVD_HH
30#define DEVD_HH
31
32class config;
33
34/**

--- 56 unchanged lines hidden (view full) ---

91 virtual bool do_action(config &) { return true; }
92private:
93 std::string _var;
94 std::string _re;
95 regex_t _regex;
96};
97
98/**
27 */
28
29#ifndef DEVD_HH
30#define DEVD_HH
31
32class config;
33
34/**

--- 56 unchanged lines hidden (view full) ---

91 virtual bool do_action(config &) { return true; }
92private:
93 std::string _var;
94 std::string _re;
95 regex_t _regex;
96};
97
98/**
99 * media is the subclass used to match an individual variable. Its
100 * actions are nops.
101 */
102class media : public eps
103{
104public:
105 media(config &, const char *var, const char *type);
106 virtual ~media();
107 virtual bool do_match(config &);
108 virtual bool do_action(config &) { return true; }
109private:
110 std::string _var;
111 int _type;
112};
113
114/**
99 * action is used to fork a process. It matches everything.
100 */
101class action : public eps
102{
103public:
104 action(const char *cmd);
105 virtual ~action();
106 virtual bool do_match(config &) { return true; }

--- 59 unchanged lines hidden ---
115 * action is used to fork a process. It matches everything.
116 */
117class action : public eps
118{
119public:
120 action(const char *cmd);
121 virtual ~action();
122 virtual bool do_match(config &) { return true; }

--- 59 unchanged lines hidden ---