[aravis/dom] arv-tool: restore the display of enumeration entries in 'features' commmand.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis/dom] arv-tool: restore the display of enumeration entries in 'features' commmand.
- Date: Fri, 2 Mar 2012 14:11:44 +0000 (UTC)
commit 4c8aa3502a1fde614333bb8a8623857b665f8291
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri Mar 2 15:10:55 2012 +0100
arv-tool: restore the display of enumeration entries in 'features' commmand.
src/arvtool.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/arvtool.c b/src/arvtool.c
index e9d5961..e68cb6b 100644
--- a/src/arvtool.c
+++ b/src/arvtool.c
@@ -34,20 +34,20 @@ arv_tool_list_features (ArvGc *genicam, const char *feature, gboolean show_descr
for (iter = features; iter != NULL; iter = iter->next)
arv_tool_list_features (genicam, iter->data, show_description, level + 1);
} else if (ARV_IS_GC_ENUMERATION (node)) {
-#if 0
const GSList *childs;
const GSList *iter;
- childs = arv_gc_feature_node_get_childs (node);
+ childs = arv_gc_enumeration_get_entries (ARV_GC_ENUMERATION (node));
for (iter = childs; iter != NULL; iter = iter->next) {
- for (i = 0; i < level + 1; i++)
- printf (" ");
+ if (arv_gc_feature_node_is_available (iter->data)) {
+ for (i = 0; i < level + 1; i++)
+ printf (" ");
- printf ("%s: '%s'\n",
- arv_dom_node_get_node_name (iter->data),
- arv_gc_feature_node_get_name (iter->data));
+ printf ("%s: '%s'\n",
+ arv_dom_node_get_node_name (iter->data),
+ arv_gc_feature_node_get_name (iter->data));
+ }
}
-#endif
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]