Wiki Page Content

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2011-09-16 23:29:36
Size: 1621
Editor: SheenaSmith
Comment: create page - 9/16 2abc5a4210d5
Revision 3 as of 2011-11-06 20:07:45
Size: 1673
Editor: SheenaSmith
Comment: update content for consistency - callback (table)
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
 where
 ||`userdata`||is passed as '''userdata''' to [[SDL_LogGetOutputFunction]]()||
 ||`category`||^the category to query^||
 ||`priority`||the [[SDL_LogPriority]] ^to query^; see [[#Remarks|below]] for details||
 . where its parameters are:
 ||`userdata`||what was passed as '''userdata''' to [[SDL_LogGetOutputFunction]]()||
 ||`category`||^the log category to query^||
 ||`priority`||the [[SDL_LogPriority]] ^to query^; see [[#priority|below]] for details||
Line 38: Line 38:
 and
`priority` may be one of the following ^or NULL ???^:
 <<Include(SDL_LogPriority, , , from="Start Include here.", to="##End Include here.")>>
<<Anchor(priority)>>
. `priority` may be one of the following ^or NULL ???^:
 . <<Include(SDL_LogPriority, , , from="Start Include here.", to="##End Include here.")>>
Line 42: Line 42:
 <<Color2(green,Should there be some reference to [[SDL_LOG_CATEGORY]] for `category`?)>>  . <<Color2(green,Should there be some reference to [[SDL_LOG_CATEGORY]] for `category`?)>>
Line 51: Line 51:
[[CategoryAPI]], [[CategoryBasics]] [[CategoryAPI]], [[CategoryLog]]

DRAFT

SDL_LogGetOutputFunction

Use this function to get the current log output function.

Syntax

void SDL_LogGetOutputFunction(SDL_LogOutputFunction* callback,
                              void**                 userdata)

Function Parameters

callback

the callback function to get; see Remarks for details

userdata

a pointer to a pointer that is passed to callback

Code Examples

You can add your code example here

Remarks

The function prototype for callback is:

  • void* SDL_LogOutputFunction(void*           userdata,
                                int             category,
                                SDL_LogPriority priority,
                                const char*     message)
  • where its parameters are:

    userdata

    what was passed as userdata to SDL_LogGetOutputFunction()

    category

    the log category to query

    priority

    the SDL_LogPriority to query; see below for details

    message

    the log output message ???

  • priority may be one of the following or NULL ???:

  • SDL_LOG_PRIORITY_VERBOSE

    SDL_LOG_PRIORITY_DEBUG

    SDL_LOG_PRIORITY_INFO

    SDL_LOG_PRIORITY_WARN

    SDL_LOG_PRIORITY_ERROR

    SDL_LOG_PRIORITY_CRITICAL

    SDL_NUM_LOG_PRIORITIES

    (internal use)

  • green

You can add useful comments here


CategoryAPI, CategoryLog

None: SDL_LogGetOutputFunction (last edited 2014-01-06 18:14:20 by JonathanDearborn)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit