include/SDL_log.h
changeset 5235 1e28342cb15d
parent 5221 2ee8112bfc6b
child 5262 b530ef003506
equal deleted inserted replaced
5234:af8ca17f6b7c 5235:1e28342cb15d
   175  */
   175  */
   176 extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
   176 extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
   177                                              SDL_LogPriority priority,
   177                                              SDL_LogPriority priority,
   178                                              const char *fmt, va_list ap);
   178                                              const char *fmt, va_list ap);
   179 
   179 
       
   180 /**
       
   181  *  \brief The prototype for the log output function
       
   182  */
       
   183 typedef void (*SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
       
   184 
       
   185 /**
       
   186  *  \brief Get the current log output function.
       
   187  */
       
   188 extern DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata);
       
   189 
       
   190 /**
       
   191  *  \brief This function allows you to replace the default log output
       
   192  *         function with one of your own.
       
   193  */
       
   194 extern DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata);
       
   195 
   180 
   196 
   181 /* Ends C function definitions when using C++ */
   197 /* Ends C function definitions when using C++ */
   182 #ifdef __cplusplus
   198 #ifdef __cplusplus
   183 /* *INDENT-OFF* */
   199 /* *INDENT-OFF* */
   184 }
   200 }