26 lines
815 B
C
26 lines
815 B
C
// Code generated by github.com/cshum/vipsgen from libvips 8.17.2; DO NOT EDIT.
|
|
|
|
#include "util.h"
|
|
|
|
static void logging_handler(const gchar *log_domain,
|
|
GLogLevelFlags log_level,
|
|
const gchar *message, gpointer user_data) {
|
|
goLoggingHandler((char *)log_domain, (int)log_level, (char *)message);
|
|
}
|
|
|
|
static void null_logging_handler(const gchar *log_domain,
|
|
GLogLevelFlags log_level, const gchar *message,
|
|
gpointer user_data) {}
|
|
|
|
void set_logging_handler(void) {
|
|
g_log_set_default_handler(logging_handler, NULL);
|
|
}
|
|
|
|
void unset_logging_handler(void) {
|
|
g_log_set_default_handler(null_logging_handler, NULL);
|
|
}
|
|
|
|
int is_gobject(void* obj) {
|
|
return G_IS_OBJECT(obj) ? 1 : 0;
|
|
}
|