-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07ff0af
commit 1cec7b1
Showing
4 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#include "govips.h" | ||
|
||
static void govips_logging_handler( | ||
const gchar *log_domain, GLogLevelFlags log_level, | ||
const gchar *message, gpointer user_data) | ||
const gchar *log_domain, GLogLevelFlags log_level, | ||
const gchar *message, gpointer user_data) | ||
{ | ||
govipsLoggingHandler((char *)log_domain, (int)log_level, (char *)message); | ||
govipsLoggingHandler((char *)log_domain, (int)log_level, (char *)message); | ||
} | ||
|
||
void vips_set_logging_handler(void) | ||
{ | ||
g_log_set_default_handler(govips_logging_handler, NULL); | ||
g_log_set_default_handler(govips_logging_handler, NULL); | ||
} | ||
|
||
void vips_unset_logging_handler(void) | ||
{ | ||
g_log_set_default_handler(NULL, NULL); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters