Enlightenment CVS committal
Author : cedric
Project : e17
Module : proto/eina
Dir : e17/proto/eina/src/include
Modified Files:
Makefile.am eina_lalloc.h
Added Files:
eina_array.h eina_inline_array.x
Log Message:
Add array and cleanup lalloc namespace.
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/include/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 30 Jul 2008 13:16:09 -0000 1.3
+++ Makefile.am 30 Jul 2008 16:34:54 -0000 1.4
@@ -12,6 +12,8 @@
eina_module.h \
eina_rectangle.h \
eina_types.h \
+eina_array.h \
+eina_inline_array.x \
eina_stringshare.h
installed_mainheaderdir = $(prefix)/include/[EMAIL PROTECTED]@
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/include/eina_lalloc.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- eina_lalloc.h 30 Jul 2008 13:35:49 -0000 1.2
+++ eina_lalloc.h 30 Jul 2008 16:34:54 -0000 1.3
@@ -4,20 +4,20 @@
#include "eina_types.h"
/**
- * @defgroup Array_Group Array
+ * @defgroup Lalloc_Group Lazy allocator
* @{
*/
-typedef void (*Eina_Array_Alloc) (void *user_data, int num);
-#define EINA_ARRAY_ALLOC(function) ((Eina_Array_Alloc)function)
-typedef void (*Eina_Array_Free) (void *user_data);
-#define EINA_ARRAY_FREE(function) ((Eina_Array_Free)function)
+typedef void (*Eina_Lalloc_Alloc) (void *user_data, int num);
+#define EINA_LALLOC_ALLOC(function) ((Eina_Lalloc_Alloc)function)
+typedef void (*Eina_Lalloc_Free) (void *user_data);
+#define EINA_LALLOC_FREE(function) ((Eina_Lalloc_Free)function)
-typedef struct _Eina_Array Eina_Array;
-EAPI void eina_array_free(Eina_Array *a);
-EAPI Eina_Array *eina_array_new(void *data, Eina_Array_Alloc alloc_cb,
Eina_Array_Free free_cb, int num_init);
-EAPI void eina_array_elements_add(Eina_Array *a, int num);
-EAPI void eina_array_element_add(Eina_Array *a);
+typedef struct _Eina_Lalloc Eina_Lalloc;
+EAPI void eina_lalloc_free(Eina_Lalloc *a);
+EAPI Eina_Lalloc *eina_lalloc_new(void *data, Eina_Lalloc_Alloc alloc_cb,
Eina_Lalloc_Free free_cb, int num_init);
+EAPI void eina_lalloc_elements_add(Eina_Lalloc *a, int num);
+EAPI void eina_lalloc_element_add(Eina_Lalloc *a);
/** @} */
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs