
#ifndef _H_USB_CRITERIA
#define _H_USB_CRITERIA

#include "api.h"

class UsbCriteria
{
public:
    UsbCriteria(const char *params);
    ~UsbCriteria();

    enum {
        ANY         = -1,
        BLOCK,
        ALLOW,
        MISMATCH
    };

    int match(const DEVICE_DESCRIPTOR& desc);

private:
    int _class;
    int _vender;
    int _product;
    int _revision;
    bool _action;
};

#endif // _H_USB_CRITERIA
