From 31a9401a4c18fea613d8a508583dd657c41c384c Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 28 Feb 2011 11:40:23 +0100 Subject: Turn property defines into enum --- src/uca.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/uca.c') diff --git a/src/uca.c b/src/uca.c index 17a7ae2..f86864c 100644 --- a/src/uca.c +++ b/src/uca.c @@ -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; -- cgit v1.2.3