Enlightenment CVS committal
Author : cedric
Project : e17
Module : proto/eina
Dir : e17/proto/eina/src/lib
Modified Files:
eina_error.c
Log Message:
Hide the type.
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/lib/eina_error.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- eina_error.c 1 Aug 2008 14:26:13 -0000 1.3
+++ eina_error.c 4 Aug 2008 17:00:29 -0000 1.4
@@ -14,7 +14,7 @@
*============================================================================*/
static int _init_count = 0;
static Eina_List *_error_list;
-static int _err;
+static Eina_Error _err;
#define RED "\033[31;1m"
#define GREEN "\033[32;1m"
@@ -91,7 +91,7 @@
* @param str The description of the error
* @return The unique number identifier for this error
*/
-EAPI int eina_error_register(const char *msg)
+EAPI Eina_Error eina_error_register(const char *msg)
{
_error_list = eina_list_append(_error_list, strdup(msg));
@@ -100,14 +100,14 @@
/**
*
*/
-EAPI int eina_error_get(void)
+EAPI Eina_Error eina_error_get(void)
{
return _err;
}
/**
*
*/
-EAPI void eina_error_set(int err)
+EAPI void eina_error_set(Eina_Error err)
{
_err = err;
}
-------------------------------------------------------------------------
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