dix: 'namespace' HAS_OLD_SLAVE and HAS_NEW_SLAVE.
We need more flags for this in the near future, so let's namespace them now.
This commit is contained in:
parent
5b5e3fa277
commit
73c7398aaf
|
@ -201,10 +201,10 @@ CreateClassesChangedEvent(EventList* event,
|
|||
dce->time = ms;
|
||||
if (master->u.lastSlave)
|
||||
{
|
||||
dce->flags |= HAS_OLD_SLAVE;
|
||||
dce->flags |= DEVCHANGE_HAS_OLD_SLAVE;
|
||||
dce->old_slaveid = master->u.lastSlave->id;
|
||||
}
|
||||
dce->flags |= HAS_NEW_SLAVE;
|
||||
dce->flags |= DEVCHANGE_HAS_NEW_SLAVE;
|
||||
dce->new_slaveid = slave->id;
|
||||
|
||||
if (slave->button)
|
||||
|
|
|
@ -112,9 +112,9 @@ typedef struct
|
|||
} DeviceEvent;
|
||||
|
||||
|
||||
/* Flags used in DeviceChangedEvent to signal if new/old slave is present */
|
||||
#define HAS_OLD_SLAVE 0x1
|
||||
#define HAS_NEW_SLAVE 0x2
|
||||
/* Flags used in DeviceChangedEvent to signal if new/old slave is present. */
|
||||
#define DEVCHANGE_HAS_OLD_SLAVE 0x1
|
||||
#define DEVCHANGE_HAS_NEW_SLAVE 0x2
|
||||
|
||||
/**
|
||||
* Sent whenever a device's capabilities have changed.
|
||||
|
|
Loading…
Reference in New Issue