diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-28 11:40:23 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-28 11:40:23 +0100 |
commit | 31a9401a4c18fea613d8a508583dd657c41c384c (patch) | |
tree | 8cd16831d3d6695dbca0b5865f1f5079c8fce39c /src/uca.c | |
parent | 49cf589ca2fdcbd9ff55ae70040d6d52c57a3fb1 (diff) | |
download | libuca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.gz libuca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.bz2 libuca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.xz libuca-31a9401a4c18fea613d8a508583dd657c41c384c.zip |
Turn property defines into enum
Diffstat (limited to 'src/uca.c')
-rw-r--r-- | src/uca.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,7 +112,7 @@ static struct uca_property_t property_map[UCA_PROP_LAST+1] = { { NULL, 0, 0 } }; -int32_t uca_get_property_id(const char *property_name) +enum uca_property_ids uca_get_property_id(const char *property_name) { char *name; int i = 0; @@ -124,14 +124,14 @@ int32_t uca_get_property_id(const char *property_name) return UCA_ERR_PROP_INVALID; } -struct uca_property_t *uca_get_full_property(int32_t property_id) +struct uca_property_t *uca_get_full_property(enum uca_property_ids property_id) { if ((property_id >= 0) && (property_id < UCA_PROP_LAST)) return &property_map[property_id]; return NULL; } -const char* uca_get_property_name(int32_t property_id) +const char* uca_get_property_name(enum uca_property_ids property_id) { if ((property_id >= 0) && (property_id < UCA_PROP_LAST)) return property_map[property_id].name; |