diff options
author | imp <imp@FreeBSD.org> | 2005-07-10 03:37:15 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-07-10 03:37:15 +0000 |
commit | 68644ee7c20ae551f423483008f4f216eb31d6a5 (patch) | |
tree | 97e1fe11117d1944009f6913219eba532675f70d /sbin/devd/devd.hh | |
parent | 983982e20ac5470784e75ec16d45a9cbce75b15f (diff) | |
download | FreeBSD-src-68644ee7c20ae551f423483008f4f216eb31d6a5.zip FreeBSD-src-68644ee7c20ae551f423483008f4f216eb31d6a5.tar.gz |
Add the ability to match the on a media type of the device in question.
Submitted by: sam
Approved by: re (scottl)
Diffstat (limited to 'sbin/devd/devd.hh')
-rw-r--r-- | sbin/devd/devd.hh | 16 |
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 |