162 lines
4.7 KiB
Diff
162 lines
4.7 KiB
Diff
diff -Naur glue.new/list.c glue/list.c
|
|
--- glue.new/list.c 2009-01-08 02:54:06.000000000 +1000
|
|
+++ glue/list.c 2012-12-10 16:57:37.901364140 +1000
|
|
@@ -20,7 +20,7 @@
|
|
*/
|
|
|
|
|
|
-#include <glib/glist.h>
|
|
+#include <glib.h>
|
|
|
|
/* Forward declarations */
|
|
gpointer gtksharp_list_get_data (GList *l);
|
|
diff -Naur glue.new/list.c~ glue/list.c~
|
|
--- glue.new/list.c~ 1970-01-01 10:00:00.000000000 +1000
|
|
+++ glue/list.c~ 2012-12-10 16:57:37.891364197 +1000
|
|
@@ -0,0 +1,40 @@
|
|
+/* list.c : Glue to access fields in GList.
|
|
+ *
|
|
+ * Author: Rachel Hestilow <hestilow@ximian.com>
|
|
+ *
|
|
+ * Copyright (c) 2002 Rachel Hestilow, Mike Kestner
|
|
+ *
|
|
+ * This program is free software; you can redistribute it and/or
|
|
+ * modify it under the terms of version 2 of the Lesser GNU General
|
|
+ * Public License as published by the Free Software Foundation.
|
|
+ *
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
+ * Lesser General Public License for more details.
|
|
+ *
|
|
+ * You should have received a copy of the GNU Lesser General Public
|
|
+ * License along with this program; if not, write to the
|
|
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
+ * Boston, MA 02111-1307, USA.
|
|
+ */
|
|
+
|
|
+
|
|
+#include <glib/glist.h>
|
|
+
|
|
+/* Forward declarations */
|
|
+gpointer gtksharp_list_get_data (GList *l);
|
|
+GList *gtksharp_list_get_next (GList *l);
|
|
+/* */
|
|
+
|
|
+gpointer
|
|
+gtksharp_list_get_data (GList *l)
|
|
+{
|
|
+ return l->data;
|
|
+}
|
|
+
|
|
+GList*
|
|
+gtksharp_list_get_next (GList *l)
|
|
+{
|
|
+ return l->next;
|
|
+}
|
|
diff -Naur glue.new/slist.c glue/slist.c
|
|
--- glue.new/slist.c 2009-01-08 02:54:06.000000000 +1000
|
|
+++ glue/slist.c 2012-12-10 16:57:46.371342245 +1000
|
|
@@ -20,7 +20,7 @@
|
|
*/
|
|
|
|
|
|
-#include <glib/gslist.h>
|
|
+#include <glib.h>
|
|
|
|
/* Forward declarations */
|
|
gpointer gtksharp_slist_get_data (GSList *l);
|
|
diff -Naur glue.new/slist.c~ glue/slist.c~
|
|
--- glue.new/slist.c~ 1970-01-01 10:00:00.000000000 +1000
|
|
+++ glue/slist.c~ 2012-12-10 16:57:46.361342225 +1000
|
|
@@ -0,0 +1,41 @@
|
|
+/* slist.c : Glue to access fields in GSList.
|
|
+ *
|
|
+ * Author: Rachel Hestilow <hestilow@ximian.com>
|
|
+ *
|
|
+ * Copyright (c) 2002 Rachel Hestilow, Mike Kestner
|
|
+ *
|
|
+ * This program is free software; you can redistribute it and/or
|
|
+ * modify it under the terms of version 2 of the Lesser GNU General
|
|
+ * Public License as published by the Free Software Foundation.
|
|
+ *
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
+ * Lesser General Public License for more details.
|
|
+ *
|
|
+ * You should have received a copy of the GNU Lesser General Public
|
|
+ * License along with this program; if not, write to the
|
|
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
+ * Boston, MA 02111-1307, USA.
|
|
+ */
|
|
+
|
|
+
|
|
+#include <glib/gslist.h>
|
|
+
|
|
+/* Forward declarations */
|
|
+gpointer gtksharp_slist_get_data (GSList *l);
|
|
+
|
|
+GSList *gtksharp_slist_get_next (GSList *l);
|
|
+/* */
|
|
+
|
|
+gpointer
|
|
+gtksharp_slist_get_data (GSList *l)
|
|
+{
|
|
+ return l->data;
|
|
+}
|
|
+
|
|
+GSList*
|
|
+gtksharp_slist_get_next (GSList *l)
|
|
+{
|
|
+ return l->next;
|
|
+}
|
|
diff -Naur glue.new/thread.c glue/thread.c
|
|
--- glue.new/thread.c 2009-01-08 02:54:06.000000000 +1000
|
|
+++ glue/thread.c 2012-12-10 16:57:55.548026002 +1000
|
|
@@ -20,7 +20,7 @@
|
|
*/
|
|
|
|
|
|
-#include <glib/gthread.h>
|
|
+#include <glib.h>
|
|
|
|
gboolean glibsharp_g_thread_supported (void);
|
|
|
|
diff -Naur glue.new/thread.c~ glue/thread.c~
|
|
--- glue.new/thread.c~ 1970-01-01 10:00:00.000000000 +1000
|
|
+++ glue/thread.c~ 2012-12-10 16:57:55.538025982 +1000
|
|
@@ -0,0 +1,32 @@
|
|
+/* thread.c : glue functions for GLib.Thread
|
|
+ *
|
|
+ * Author: Alp Toker <alp@atoker.com>
|
|
+ *
|
|
+ * Copyright (c) 2005 Alp Toker
|
|
+ *
|
|
+ * This program is free software; you can redistribute it and/or
|
|
+ * modify it under the terms of version 2 of the Lesser GNU General
|
|
+ * Public License as published by the Free Software Foundation.
|
|
+ *
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
+ * Lesser General Public License for more details.
|
|
+ *
|
|
+ * You should have received a copy of the GNU Lesser General Public
|
|
+ * License along with this program; if not, write to the
|
|
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
+ * Boston, MA 02111-1307, USA.
|
|
+ */
|
|
+
|
|
+
|
|
+#include <glib/gthread.h>
|
|
+
|
|
+gboolean glibsharp_g_thread_supported (void);
|
|
+
|
|
+gboolean
|
|
+glibsharp_g_thread_supported ()
|
|
+{
|
|
+ return g_thread_supported ();
|
|
+}
|
|
+
|