[retro-gtk/wip/aplazas/0.13: 19/22] Port g_log() to C



commit dae88c97bb3bd6de6b9f41d1f3289aab568f9ab7
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 121ee4a..b1676a5 100644
--- a/retro-gtk/retro-gtk.h
+++ b/retro-gtk/retro-gtk.h
@@ -13,6 +13,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]