[retro-gtk/wip/aplazas/0.13: 3/7] Port g_log() to C
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/0.13: 3/7] Port g_log() to C
- Date: Mon, 11 Sep 2017 11:12:37 +0000 (UTC)
commit 8a56a533c27698ca66665425e6a4e81b083cf746
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Sep 7 11:37:06 2017 +0200
Port g_log() to C
retro-gtk/Makefile.am | 1 +
retro-gtk/retro-gtk.h | 1 +
retro-gtk/retro-log.h | 20 ++++++++++++++++++++
retro-gtk/retro.vala | 2 --
4 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/retro-gtk/Makefile.am b/retro-gtk/Makefile.am
index ef50e9e..923d708 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -115,6 +115,7 @@ retro_gtkinclude_HEADERS = \
retro-input-device.h \
retro-joypad-id.h \
retro-lightgun-id.h \
+ retro-log.h \
retro-memory-type.h \
retro-mouse-id.h \
retro-pixel-format.h \
diff --git a/retro-gtk/retro-gtk.h b/retro-gtk/retro-gtk.h
index 8e94dad..994d7e9 100644
--- a/retro-gtk/retro-gtk.h
+++ b/retro-gtk/retro-gtk.h
@@ -12,6 +12,7 @@
#include "retro-input-device.h"
#include "retro-joypad-id.h"
#include "retro-lightgun-id.h"
+#include "retro-log.h"
#include "retro-memory-type.h"
#include "retro-mouse-id.h"
#include "retro-pixel-format.h"
diff --git a/retro-gtk/retro-log.h b/retro-gtk/retro-log.h
new file mode 100644
index 0000000..d54280b
--- /dev/null
+++ b/retro-gtk/retro-log.h
@@ -0,0 +1,20 @@
+// This file is part of retro-gtk. License: GPL-3.0+.
+
+#ifndef RETRO_LOG_H
+#define RETRO_LOG_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+// FIXME Remove as soon as possible.
+typedef struct _RetroCore RetroCore;
+
+void retro_g_log (RetroCore *self,
+ const gchar *log_domain,
+ GLogLevelFlags log_level,
+ const gchar *message);
+
+G_END_DECLS
+
+#endif /* RETRO_LOG_H */
diff --git a/retro-gtk/retro.vala b/retro-gtk/retro.vala
index 05dbe7b..2d77e8e 100644
--- a/retro-gtk/retro.vala
+++ b/retro-gtk/retro.vala
@@ -19,7 +19,5 @@ private errordomain CbError {
NO_CALLBACK
}
-public extern void g_log (Core core, string log_domain, LogLevelFlags log_level, string message);
-
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]