diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-10-09 04:42:53 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-10-09 04:42:53 +0200 |
commit | f13867f64fcba24ef2cb9d726b5ee1082ac1a8b9 (patch) | |
tree | d7186eb2a2c2d2e36c05cc702eb0ab0b3c877443 /pcilib/unit.h | |
parent | 3b8e32c9bbe0d909c34303da0ad36ef0ef5be852 (diff) | |
download | pcitool-f13867f64fcba24ef2cb9d726b5ee1082ac1a8b9.tar.gz pcitool-f13867f64fcba24ef2cb9d726b5ee1082ac1a8b9.tar.bz2 pcitool-f13867f64fcba24ef2cb9d726b5ee1082ac1a8b9.tar.xz pcitool-f13867f64fcba24ef2cb9d726b5ee1082ac1a8b9.zip |
Implement enum view
Diffstat (limited to 'pcilib/unit.h')
-rw-r--r-- | pcilib/unit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcilib/unit.h b/pcilib/unit.h index dad7962..3e49174 100644 --- a/pcilib/unit.h +++ b/pcilib/unit.h @@ -1,6 +1,8 @@ #ifndef _PCILIB_UNIT_H #define _PCILIB_UNIT_H +#include <uthash.h> + #include <pcilib.h> #define PCILIB_UNIT_INVALID ((pcilib_unit_t)-1) @@ -23,6 +25,12 @@ typedef struct { pcilib_unit_transform_t transforms[PCILIB_MAX_TRANSFORMS_PER_UNIT + 1]; /**< Transforms to other units */ } pcilib_unit_description_t; +struct pcilib_unit_context_s { + const char *name; + pcilib_unit_t unit; + UT_hash_handle hh; +}; + #ifdef __cplusplus extern "C" { #endif |