devd.hh (209583) | devd.hh (226775) |
---|---|
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 209583 2010-06-29 03:52:12Z imp $ | 26 * $FreeBSD: head/sbin/devd/devd.hh 226775 2011-10-26 02:11:28Z hrs $ |
27 */ 28 29#ifndef DEVD_HH 30#define DEVD_HH 31 32class config; 33 34/** --- 52 unchanged lines hidden (view full) --- 87public: 88 match(config &, const char *var, const char *re); 89 virtual ~match(); 90 virtual bool do_match(config &); 91 virtual bool do_action(config &) { return true; } 92private: 93 std::string _var; 94 std::string _re; | 27 */ 28 29#ifndef DEVD_HH 30#define DEVD_HH 31 32class config; 33 34/** --- 52 unchanged lines hidden (view full) --- 87public: 88 match(config &, const char *var, const char *re); 89 virtual ~match(); 90 virtual bool do_match(config &); 91 virtual bool do_action(config &) { return true; } 92private: 93 std::string _var; 94 std::string _re; |
95 bool _inv; |
|
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 --- 82 unchanged lines hidden --- | 96 regex_t _regex; 97}; 98 99/** 100 * media is the subclass used to match an individual variable. Its 101 * actions are nops. 102 */ 103class media : public eps --- 82 unchanged lines hidden --- |