> I would propose the attached patch to add this capability to the API. 

Oups, please add this small patch, I forgot the tree_size function
declaration, that was causing compilation failure with 
--enable-compile-warnings=error

Francis
>From 024e04f9a197834aa82a165514f8ac3b0ddf4e86 Mon Sep 17 00:00:00 2001
From: Francis Giraldeau <[email protected]>
Date: Sat, 16 Oct 2010 10:47:02 -0400
Subject: [PATCH] Add tree_size function declaration

---
 src/internal.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/internal.h b/src/internal.h
index 71c5d42..5289336 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -407,6 +407,8 @@ struct tree *tree_find(struct augeas *aug, const char *path);
  * Returns the node or NULL on error
  */
 struct tree *tree_find_cr(struct augeas *aug, const char *path);
+/* Get the size of this tree */
+int tree_size(struct tree *tree);
 
 /* Struct: memstream
  * Wrappers to simulate OPEN_MEMSTREAM where that's not available. The
-- 
1.7.1

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to