X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib%2Fgtestutils.h;h=18f1edece5cdc75ce43b96236fdc61b4af0f5f62;hb=1d55cfb51e03f4ba23191df4625ca62d3624652e;hp=4c474589d3602b36f00f800fc4c75b7e38884a6f;hpb=5c53925ed08402549be0c306cd0544af209f8934;p=platform%2Fupstream%2Fglib.git diff --git a/glib/gtestutils.h b/glib/gtestutils.h index 4c47458..18f1ede 100644 --- a/glib/gtestutils.h +++ b/glib/gtestutils.h @@ -25,7 +25,11 @@ #ifndef __G_TEST_UTILS_H__ #define __G_TEST_UTILS_H__ -#include +#include +#include +#include +#include +#include G_BEGIN_DECLS @@ -262,6 +266,27 @@ void g_test_log_buffer_push (GTestLogBuffer *tbuffer, GTestLogMsg* g_test_log_buffer_pop (GTestLogBuffer *tbuffer); void g_test_log_msg_free (GTestLogMsg *tmsg); +/** + * GTestLogFatalFunc: + * @log_domain: the log domain of the message + * @log_level: the log level of the message (including the fatal and recursion flags) + * @message: the message to process + * @user_data: user data, set in g_test_log_set_fatal_handler() + * + * Specifies the prototype of fatal log handler functions. + * + * Return value: %TRUE if the program should abort, %FALSE otherwise + * + * Since: 2.22 + */ +typedef gboolean (*GTestLogFatalFunc) (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *message, + gpointer user_data); +void +g_test_log_set_fatal_handler (GTestLogFatalFunc log_func, + gpointer user_data); + G_END_DECLS #endif /* __G_TEST_UTILS_H__ */