vala r1365 - in trunk: . vapi



Author: juergbi
Date: Sun May 11 11:10:52 2008
New Revision: 1365
URL: http://svn.gnome.org/viewvc/vala?rev=1365&view=rev

Log:
2008-05-11  Juerg Billeter  <j bitron ch>

	* vapi/libxml-2.0.vapi: specify free functions, fixes bug 531631


Modified:
   trunk/ChangeLog
   trunk/vapi/libxml-2.0.vapi

Modified: trunk/vapi/libxml-2.0.vapi
==============================================================================
--- trunk/vapi/libxml-2.0.vapi	(original)
+++ trunk/vapi/libxml-2.0.vapi	Sun May 11 11:10:52 2008
@@ -33,7 +33,7 @@
 	[CCode (cname = "ftpListCallback", cheader_filename = "libxml/nanoftp.h")]
 	public static delegate void FtpListCallback (void* userData, string filename, string attrib, string owner, string group, ulong size, int links, int year, string month, int day, int hour, int minute);
 
-	[CCode (cname = "void*", cheader_filename = "libxml/nanoftp.h")]
+	[CCode (cname = "void*", free_function = "xmlNanoFTPFreeCtxt", cheader_filename = "libxml/nanoftp.h")]
 	public class NanoFTP {
 		[CCode (cname = "xmlNanoFTPCheckResponse")]
 		public int check_response ();
@@ -59,9 +59,6 @@
 		[CCode (cname = "xmlNanoFTPDele")]
 		public int dele (string file);
 
-		[CCode (cname = "xmlNanoFTPFreeCtxt")]
-		public void free_ctxt ();
-
 		[CCode (cname = "xmlNanoFTPGet")]
 		public int get (FtpDataCallback cb, void* user_data, string filename);
 
@@ -287,7 +284,7 @@
 		NOTATION
 	}
 
-	[CCode (cname = "xmlDoc", cheader_filename = "libxml/tree.h,libxml/parser.h")]
+	[CCode (cname = "xmlDoc", free_function = "xmlFreeDoc", cheader_filename = "libxml/tree.h,libxml/parser.h")]
 	public class Doc {
 		public void* _private;
 		public ElementType type;
@@ -341,9 +338,6 @@
 		[CCode (cname = "xmlElemDump")]
 		public static void elem_dump (GLib.FileStream f, Doc* doc, Node* cur);
 
-		[CCode (cname = "xmlFreeDoc")]
-		public void free ();
-
 		[CCode (cname = "xmlGetDocCompressMode")]
 		public int get_compress_mode ();
 
@@ -477,7 +471,7 @@
 		DOCB_DOCUMENT_NODE
 	}
 
-	[CCode (cname = "xmlNode", cheader_filename = "libxml/tree.h")]
+	[CCode (cname = "xmlNode", free_function = "xmlFreeNode", cheader_filename = "libxml/tree.h")]
 	public class Node {
 		public void* _private;
 		public ElementType type;
@@ -522,9 +516,6 @@
 		[CCode (cname = "xmlDocCopyNodeList")]
 		public Node* doc_copy_list (Doc* doc);
 
-		[CCode (cname = "xmlFreeNode")]
-		public void free ();
-
 		[CCode (cname = "xmlFreeNodeList")]
 		public void free_list ();
 
@@ -674,7 +665,7 @@
 
 	/* uri - library of generic URI related routines */
 
-	[CCode (cname = "xmlURI", cheader_filename = "libxml/uri.h")]
+	[CCode (cname = "xmlURI", free_function = "xmlFreeURI", cheader_filename = "libxml/uri.h")]
 	public class URI {
 		[CCode (cname = "xmlBuildRelativeURI")]
 		public static string build_relative (string uri, string @base);
@@ -688,9 +679,6 @@
 		[CCode (cname = "xmlCreateURI")]
 		public URI ();
 
-		[CCode (cname = "xmlFreeURI")]
-		public void free ();
-
 		[CCode (cname = "xmlNormalizeURIPath")]
 		public static int normalize_uri_path (string path);
 
@@ -793,11 +781,8 @@
 		XML_DECLARATION
 	}
 
-	[CCode (cname = "xmlTextReader", cheader_filename = "libxml/xmlreader.h")]
+	[CCode (cname = "xmlTextReader", free_function = "xmlFreeTextReader", cheader_filename = "libxml/xmlreader.h")]
 	public class TextReader {
-		[CCode (cname = "xmlFreeTextReader")]
-		public void free ();
-
 		[CCode (cname = "xmlNewTextReaderFilename")]
 		public TextReader.filename (string uri);
 



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