java-gobject-introspection r81 - in trunk/src/org/gnome/gir: compiler gobject



Author: walters
Date: Wed Oct 15 03:34:51 2008
New Revision: 81
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=81&view=rev

Log:
Use UnmappedPointer instead of just Pointer to better signify unmapped bits


Added:
   trunk/src/org/gnome/gir/gobject/UnmappedPointer.java
Modified:
   trunk/src/org/gnome/gir/compiler/CodeFactory.java

Modified: trunk/src/org/gnome/gir/compiler/CodeFactory.java
==============================================================================
--- trunk/src/org/gnome/gir/compiler/CodeFactory.java	(original)
+++ trunk/src/org/gnome/gir/compiler/CodeFactory.java	Wed Oct 15 03:34:51 2008
@@ -76,6 +76,7 @@
 import org.gnome.gir.gobject.GObjectAPI;
 import org.gnome.gir.gobject.GSList;
 import org.gnome.gir.gobject.GType;
+import org.gnome.gir.gobject.UnmappedPointer;
 import org.gnome.gir.repository.ArgInfo;
 import org.gnome.gir.repository.BaseInfo;
 import org.gnome.gir.repository.BoxedInfo;
@@ -251,7 +252,7 @@
 			return Type.getType(DoubleByReference.class);
 		if (t.equals(Type.getType(String.class)) || t.equals(Type.getType(File.class)))
 			return Type.getType(PointerByReference.class);
-		return Type.getType(Pointer.class);
+		return Type.getType(UnmappedPointer.class);
 	}
 	
 	private static Type toTypeBase(TypeTag tag) {

Added: trunk/src/org/gnome/gir/gobject/UnmappedPointer.java
==============================================================================
--- (empty file)
+++ trunk/src/org/gnome/gir/gobject/UnmappedPointer.java	Wed Oct 15 03:34:51 2008
@@ -0,0 +1,34 @@
+
+/* 
+ * Copyright (c) 2008 Colin Walters <walters verbum org>
+ * 
+ * This file is part of java-gobject-introspection.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the 
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
+ * Boston, MA  02111-1307  USA.
+ *
+ */
+package org.gnome.gir.gobject;
+
+import com.sun.jna.PointerType;
+
+/**
+ * Class used for a type which is not yet bound to Java.
+ * 
+ * @author walters
+ */
+public class UnmappedPointer extends PointerType {
+
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]