[aravis] control: show enumeration entries.



commit 40b8916c0396ac52caa406cb6f0bcde4c8110354
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Jun 20 21:43:18 2011 +0200

    control: show enumeration entries.

 src/arvcontrol.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/arvcontrol.c b/src/arvcontrol.c
index 25b8a4c..c4c30d4 100644
--- a/src/arvcontrol.c
+++ b/src/arvcontrol.c
@@ -50,6 +50,19 @@ arv_control_list_features (ArvGc *genicam, const char *feature, gboolean show_de
 
 			for (iter = features; iter != NULL; iter = iter->next)
 				arv_control_list_features (genicam, iter->data, show_description, level + 1);
+		} else if (ARV_IS_GC_ENUMERATION (node)) {
+			const GSList *childs;
+			const GSList *iter;
+
+			childs = arv_gc_node_get_childs (node);
+			for (iter = childs; iter != NULL; iter = iter->next) {
+				for (i = 0; i < level + 1; i++)
+					printf ("    ");
+
+				printf ("%s: '%s'\n",
+					arv_gc_node_get_node_name (iter->data),
+					arv_gc_node_get_name (iter->data));
+			}
 		}
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]