include/SDL_log.h
changeset 5235 1e28342cb15d
parent 5221 2ee8112bfc6b
child 5262 b530ef003506
     1.1 --- a/include/SDL_log.h	Tue Feb 08 23:13:28 2011 -0800
     1.2 +++ b/include/SDL_log.h	Tue Feb 08 23:13:58 2011 -0800
     1.3 @@ -177,6 +177,22 @@
     1.4                                               SDL_LogPriority priority,
     1.5                                               const char *fmt, va_list ap);
     1.6  
     1.7 +/**
     1.8 + *  \brief The prototype for the log output function
     1.9 + */
    1.10 +typedef void (*SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
    1.11 +
    1.12 +/**
    1.13 + *  \brief Get the current log output function.
    1.14 + */
    1.15 +extern DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata);
    1.16 +
    1.17 +/**
    1.18 + *  \brief This function allows you to replace the default log output
    1.19 + *         function with one of your own.
    1.20 + */
    1.21 +extern DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata);
    1.22 +
    1.23  
    1.24  /* Ends C function definitions when using C++ */
    1.25  #ifdef __cplusplus