summaryrefslogtreecommitdiffstats
path: root/sbin/devd/devd.hh
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/devd/devd.hh')
-rw-r--r--sbin/devd/devd.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/sbin/devd/devd.hh b/sbin/devd/devd.hh
index 4730267..55af222 100644
--- a/sbin/devd/devd.hh
+++ b/sbin/devd/devd.hh
@@ -96,6 +96,22 @@ private:
};
/**
+ * media is the subclass used to match an individual variable. Its
+ * actions are nops.
+ */
+class media : public eps
+{
+public:
+ media(config &, const char *var, const char *type);
+ virtual ~media();
+ virtual bool do_match(config &);
+ virtual bool do_action(config &) { return true; }
+private:
+ std::string _var;
+ int _type;
+};
+
+/**
* action is used to fork a process. It matches everything.
*/
class action : public eps
OpenPOWER on IntegriCloud