cedric

can you please update Changelog each time you modify eet ?

Vincent

On Mon, 15 Jun 2009, Vincent Torri wrote:



ChangeLog :p

Vincent

On Mon, 15 Jun 2009, Enlightenment SVN wrote:

Log:
        * Eet: Add a clean way to create struct child.


Author:       cedric
Date:         2009-06-15 09:48:31 -0700 (Mon, 15 Jun 2009)
New Revision: 41053

Modified:
 trunk/eet/src/lib/Eet.h trunk/eet/src/lib/eet_node.c

Modified: trunk/eet/src/lib/Eet.h
===================================================================
--- trunk/eet/src/lib/Eet.h     2009-06-15 16:22:01 UTC (rev 41052)
+++ trunk/eet/src/lib/Eet.h     2009-06-15 16:48:31 UTC (rev 41053)
@@ -1376,6 +1376,7 @@
EAPI Eet_Node *eet_node_var_array_new(const char *name, Eina_List *nodes); EAPI Eet_Node *eet_node_hash_new(const char *name, const char *key, Eet_Node *node);
   EAPI Eet_Node *eet_node_struct_new(const char *name, Eina_List *nodes);
+ EAPI Eet_Node *eet_node_struct_child_new(const char *parent, Eet_Node *child);
   EAPI void eet_node_del(Eet_Node *n);

EAPI void *eet_data_node_encode_cipher(Eet_Node *node, const char *key, int *size_ret);

Modified: trunk/eet/src/lib/eet_node.c
===================================================================
--- trunk/eet/src/lib/eet_node.c        2009-06-15 16:22:01 UTC (rev 41052)
+++ trunk/eet/src/lib/eet_node.c        2009-06-15 16:48:31 UTC (rev 41053)
@@ -160,6 +160,22 @@
   return n;
}

+Eet_Node *
+eet_node_struct_child_new(const char *parent, Eet_Node *child)
+{
+   Eet_Node *n;
+
+   if (child->type != EET_G_UNKNOWN)
+     return child;
+
+   n = _eet_node_new(parent, EET_G_UNKNOWN);
+   if (!n) return NULL;
+
+   _eet_node_append(n, eina_list_prepend(NULL, child));
+
+   return n;
+}
+
void
eet_node_del(Eet_Node *n)
{



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
enlightenment-svn mailing list
enlightenment-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
Message délivré par le serveur de messagerie de l'Université d'Evry.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to