Enlightenment CVS committal Author : turran Project : e17 Module : proto/eina
Dir : e17/proto/eina/src/include Modified Files: eina_error.h Log Message: Allow user provided functions for printing messages Make the stdout print mgs function exportable Add a FILE * print msg function (useful for logging) =================================================================== RCS file: /cvs/e/e17/proto/eina/src/include/eina_error.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- eina_error.h 7 Aug 2008 13:09:09 -0000 1.6 +++ eina_error.h 8 Aug 2008 10:39:47 -0000 1.7 @@ -19,6 +19,8 @@ #ifndef EINA_ERROR_H_ #define EINA_ERROR_H_ +#include <stdarg.h> + #include "eina_types.h" #define EINA_ERROR_PERR(fmt, ...) \ @@ -43,6 +45,9 @@ } Eina_Error_Level; typedef int Eina_Error; +typedef void (*Eina_Error_Print_Cb)(Eina_Error_Level level, const char *file, + const char *fnc, int line, const char *fmt, void *data, + va_list args); EAPI extern int EINA_ERROR_OUT_OF_MEMORY; @@ -54,6 +59,13 @@ EAPI const char * eina_error_msg_get(Eina_Error error); EAPI void eina_error_print(Eina_Error_Level level, const char *file, const char *function, int line, const char *fmt, ...); +EAPI void eina_error_print_cb_stdout(Eina_Error_Level level, const char *file, + const char *fnc, int line, const char *fmt, void *data, + va_list args); +EAPI void eina_error_print_cb_file(Eina_Error_Level level, const char *file, + const char *fnc, int line, const char *fmt, void *data, + va_list args); +EAPI void eina_error_print_cb_set(Eina_Error_Print_Cb cb, void *data); EAPI void eina_error_log_level_set(Eina_Error_Level level); #endif /*EINA_ERROR_H_*/ ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs