From f9923d7b76d5c121f06f861273e6caf8a286b19e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Oct 2020 18:16:59 +0100 Subject: Remove logging API This was missing from the C++ bindings and barely used anyway, so just remove it for now in the interests of simplicity and finalizing a stable API. The information previously logged in the X11 GL backend is now available programatically, so applications can print the same information portably if they like. --- include/pugl/pugl.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'include') diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 14985b9..7c74b75 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -651,25 +651,6 @@ typedef enum { /// Bitwise OR of #PuglWorldFlag values typedef uint32_t PuglWorldFlags; -/// A log message level, compatible with syslog -typedef enum { - PUGL_LOG_LEVEL_ERR = 3, ///< Error - PUGL_LOG_LEVEL_WARNING = 4, ///< Warning - PUGL_LOG_LEVEL_INFO = 6, ///< Informational message - PUGL_LOG_LEVEL_DEBUG = 7 ///< Debug message -} PuglLogLevel; - -/** - A function called to report log messages. - - @param world The world that produced this log message. - @param level Log level. - @param msg Message string. -*/ -typedef void (*PuglLogFunc)(PuglWorld* world, - PuglLogLevel level, - const char* msg); - /** Create a new world. @@ -710,23 +691,6 @@ puglGetWorldHandle(PuglWorld* world); PUGL_API void* puglGetNativeWorld(PuglWorld* world); -/** - Set the function to call to log a message. - - This will be called to report any log messages generated internally by Pugl - which are enabled according to the log level. -*/ -PUGL_API PuglStatus -puglSetLogFunc(PuglWorld* world, PuglLogFunc logFunc); - -/** - Set the level of log messages to emit. - - Any log messages with a level less than or equal to `level` will be emitted. -*/ -PUGL_API PuglStatus -puglSetLogLevel(PuglWorld* world, PuglLogLevel level); - /** Set the class name of the application. -- cgit v1.2.1