diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-17 11:44:08 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-17 11:44:08 +0100 |
commit | 35681d4e1d171117c9d4c2c4fd7d474b5871f81f (patch) | |
tree | 9abb180d6e35a961e7e798b08101fef59cab6c18 /test/enum.c | |
parent | 5b80e3c687fb2b47b06d9ffe6ac07bec475d812a (diff) | |
download | uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.gz uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.bz2 uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.xz uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.zip |
Rename struct_name_t to struct_name and create typedefs
Diffstat (limited to 'test/enum.c')
-rw-r--r-- | test/enum.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/enum.c b/test/enum.c index 88f226e..954b734 100644 --- a/test/enum.c +++ b/test/enum.c @@ -21,14 +21,14 @@ void print_level(int depth) int main(int argc, char *argv[]) { - struct uca_t *uca = uca_init(NULL); - if (uca == NULL) { + struct uca *u = uca_init(NULL); + if (u == NULL) { printf("Couldn't find a camera\n"); return 1; } /* take first camera */ - struct uca_camera_t *cam = uca->cameras; + struct uca_camera *cam = u->cameras; const size_t num_bytes = 256; char string_value[num_bytes]; @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) while (cam != NULL) { for (int i = 0; i < UCA_PROP_LAST; i++) { - struct uca_property_t *prop = uca_get_full_property(i); + struct uca_property *prop = uca_get_full_property(i); print_level(count_dots(prop->name)); printf("%s = ", prop->name); switch (prop->type) { @@ -68,6 +68,6 @@ int main(int argc, char *argv[]) cam = cam->next; } - uca_destroy(uca); + uca_destroy(u); return 0; } |