aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-29 18:16:59 +0100
committerDavid Robillard <d@drobilla.net>2020-10-30 10:58:32 +0100
commitf9923d7b76d5c121f06f861273e6caf8a286b19e (patch)
treeb77bfe22b07e269912da6658e75c9eed8f8ca12c /include/pugl
parentcaf17373026a9de07ccd72edc282d46486257fb5 (diff)
downloadpugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.tar.gz
pugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.tar.bz2
pugl-f9923d7b76d5c121f06f861273e6caf8a286b19e.zip
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.
Diffstat (limited to 'include/pugl')
-rw-r--r--include/pugl/pugl.h36
1 files changed, 0 insertions, 36 deletions
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.
@@ -711,23 +692,6 @@ 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.
This is a stable identifier for the application, used as the window