git: 9front

ref: 050dc6bc35971a17be218a4c2b647bcf2d5f0d5a
dir: /sys/src/cmd/nusb/usbd/dat.h/

View raw version
typedef struct Rule Rule;
typedef struct Cond Cond;
typedef struct Dev Dev;

struct Rule {
	char **argv;
	int argc;
	Cond *cond;
	Rule *next;
} *rulefirst, *rulelast;

RWLock rulelock;

struct Cond {
	int field;
	u32int value;
	Cond *and, *or;
};

struct Dev {
	u32int class, vid, did;
};