diff options
author | attilio <attilio@FreeBSD.org> | 2009-09-15 16:59:52 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2009-09-15 16:59:52 +0000 |
commit | 25c88f593e7faf26360fd688f8afb5b1993cb864 (patch) | |
tree | ca2dcb25542010766057b82d9cbe5bf12a500ba3 /lib/libdevinfo | |
parent | 867bd3bd7f6bb4c540f7dd1ad8ea0b0105df18c7 (diff) | |
download | FreeBSD-src-25c88f593e7faf26360fd688f8afb5b1993cb864.zip FreeBSD-src-25c88f593e7faf26360fd688f8afb5b1993cb864.tar.gz |
Use explicit int values for the device states in order to allow,
if necessary, in the future, adds of new states without breaking ABI
between revisions.
Proposed by: kib
Approved by: imp
Diffstat (limited to 'lib/libdevinfo')
-rw-r--r-- | lib/libdevinfo/devinfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libdevinfo/devinfo.h b/lib/libdevinfo/devinfo.h index 91930a4..3e580f2 100644 --- a/lib/libdevinfo/devinfo.h +++ b/lib/libdevinfo/devinfo.h @@ -41,10 +41,10 @@ typedef __uintptr_t devinfo_handle_t; */ /* XXX not sure if I want a copy here, or expose sys/bus.h */ typedef enum devinfo_state { - DIS_NOTPRESENT, /* not probed or probe failed */ - DIS_ALIVE, /* probe succeeded */ - DIS_ATTACHED, /* attach method called */ - DIS_BUSY /* device is open */ + DIS_NOTPRESENT = 10, /* not probed or probe failed */ + DIS_ALIVE = 20, /* probe succeeded */ + DIS_ATTACHED = 30, /* attach method called */ + DIS_BUSY = 40 /* device is open */ } devinfo_state_t; struct devinfo_dev { |