summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 11:40:23 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 11:40:23 +0100
commit31a9401a4c18fea613d8a508583dd657c41c384c (patch)
tree8cd16831d3d6695dbca0b5865f1f5079c8fce39c /src/uca.c
parent49cf589ca2fdcbd9ff55ae70040d6d52c57a3fb1 (diff)
downloaduca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.gz
uca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.bz2
uca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.xz
uca-31a9401a4c18fea613d8a508583dd657c41c384c.zip
Turn property defines into enum
Diffstat (limited to 'src/uca.c')
-rw-r--r--src/uca.c6
1 files changed, 3 insertions, 3 deletions
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;