iiwusynth-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iiwusynth-devel] iiwu_log_function_t


From: Antoine Schmitt
Subject: [iiwusynth-devel] iiwu_log_function_t
Date: Sun, 8 Dec 2002 20:14:51 +0100



Hi,
before API freeze, I would like to suggest one modification for the logging function. In a classical way, it would be cleaner if a client could pass a pointerto its personal data to the iiwu_set_log_function function, so that it is passed back by the log function. This way, it can avoid using globals to remember a datastructure...

--- Proposal :

typedef void (*iiwu_log_function_t)(int level, char* message, void* userData);

  /** iiwu_set_log_function installs a new log function for the
   *  specified level. It returns the previously installed function.
   */
IIWU_SYNTH_API iiwu_log_function_t iiwu_set_log_function(int level, iiwu_log_function_t fun, void* userData);


Whatd'ya think ?

++ as




reply via email to

[Prev in Thread] Current Thread [Next in Thread]