devd.hh (246134) | devd.hh (247751) |
---|---|
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 246134 2013-01-30 23:37:35Z ian $ | 26 * $FreeBSD: head/sbin/devd/devd.hh 247751 2013-03-04 02:19:55Z eadler $ |
27 */ 28 29#ifndef DEVD_HH 30#define DEVD_HH 31 32class config; 33 34/** --- 132 unchanged lines hidden (view full) --- 167 char *set_vars(char *); 168 void find_and_execute(char); 169protected: 170 void sort_vector(std::vector<event_proc *> &); 171 void parse_one_file(const char *fn); 172 void parse_files_in_dir(const char *dirname); 173 void expand_one(const char *&src, std::string &dst); 174 bool is_id_char(char) const; | 27 */ 28 29#ifndef DEVD_HH 30#define DEVD_HH 31 32class config; 33 34/** --- 132 unchanged lines hidden (view full) --- 167 char *set_vars(char *); 168 void find_and_execute(char); 169protected: 170 void sort_vector(std::vector<event_proc *> &); 171 void parse_one_file(const char *fn); 172 void parse_files_in_dir(const char *dirname); 173 void expand_one(const char *&src, std::string &dst); 174 bool is_id_char(char) const; |
175 bool chop_var(char *&buffer, char *&lhs, char *&rhs); | 175 bool chop_var(char *&buffer, char *&lhs, char *&rhs) const; |
176private: 177 std::vector<std::string> _dir_list; 178 std::string _pidfile; 179 std::vector<var_list *> _var_list_table; 180 std::vector<event_proc *> _attach_list; 181 std::vector<event_proc *> _detach_list; 182 std::vector<event_proc *> _nomatch_list; 183 std::vector<event_proc *> _notify_list; 184}; 185 186#endif /* DEVD_HH */ | 176private: 177 std::vector<std::string> _dir_list; 178 std::string _pidfile; 179 std::vector<var_list *> _var_list_table; 180 std::vector<event_proc *> _attach_list; 181 std::vector<event_proc *> _detach_list; 182 std::vector<event_proc *> _nomatch_list; 183 std::vector<event_proc *> _notify_list; 184}; 185 186#endif /* DEVD_HH */ |