[retro-gtk/wip/aplazas/port-module-query: 22/24] Port g_log() to C



commit 830ea14b3bf8c9f6701d9ee15eedac2771c69067
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 f5faa25..73a993c 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -116,6 +116,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-option.h \
diff --git a/retro-gtk/retro-gtk.h b/retro-gtk/retro-gtk.h
index b384f6a..7be8bc7 100644
--- a/retro-gtk/retro-gtk.h
+++ b/retro-gtk/retro-gtk.h
@@ -16,6 +16,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]