diff options
| author | Ian Lepore <ian@FreeBSD.org> | 2013-01-30 23:37:35 +0000 |
|---|---|---|
| committer | Ian Lepore <ian@FreeBSD.org> | 2013-01-30 23:37:35 +0000 |
| commit | 5dfc0f6c530cd93d79bd9d18b8f61b6ce8d5e6f1 (patch) | |
| tree | 0cca54f5d40a8dfc09ed490e1cf7839fa648e5b0 /sbin/devd/devd.hh | |
| parent | ce06f5f68195c2b2f45a706dfdd773e41a70c713 (diff) | |
Notes
Diffstat (limited to 'sbin/devd/devd.hh')
| -rw-r--r-- | sbin/devd/devd.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/devd/devd.hh b/sbin/devd/devd.hh index 36132160c475..a48d07b4930c 100644 --- a/sbin/devd/devd.hh +++ b/sbin/devd/devd.hh @@ -90,9 +90,9 @@ public: virtual bool do_match(config &); virtual bool do_action(config &) { return true; } private: + bool _inv; std::string _var; std::string _re; - bool _inv; regex_t _regex; }; @@ -162,7 +162,8 @@ public: void pop_var_table(); void set_variable(const char *var, const char *val); const std::string &get_variable(const std::string &var); - const std::string expand_string(const std::string &var); + const std::string expand_string(const char * var, + const char * prepend = NULL, const char * append = NULL); char *set_vars(char *); void find_and_execute(char); protected: |
