include/SDL_log.h
changeset 5235 1e28342cb15d
parent 5221 2ee8112bfc6b
child 5262 b530ef003506
--- a/include/SDL_log.h	Tue Feb 08 23:13:28 2011 -0800
+++ b/include/SDL_log.h	Tue Feb 08 23:13:58 2011 -0800
@@ -177,6 +177,22 @@
                                              SDL_LogPriority priority,
                                              const char *fmt, va_list ap);
 
+/**
+ *  \brief The prototype for the log output function
+ */
+typedef void (*SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
+
+/**
+ *  \brief Get the current log output function.
+ */
+extern DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata);
+
+/**
+ *  \brief This function allows you to replace the default log output
+ *         function with one of your own.
+ */
+extern DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata);
+
 
 /* Ends C function definitions when using C++ */
 #ifdef __cplusplus