vala r1090 - in trunk: . vapi
- From: rasa svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1090 - in trunk: . vapi
- Date: Sun, 2 Mar 2008 14:04:45 +0000 (GMT)
Author: rasa
Date: Sun Mar 2 14:04:44 2008
New Revision: 1090
URL: http://svn.gnome.org/viewvc/vala?rev=1090&view=rev
Log:
2008-03-02 Raffaele Sandrini <raffaele sandrini ch>
* vapi/bzlib.vapi: clean up bzlib vapi, add licence statement
Modified:
trunk/ChangeLog
trunk/vapi/bzlib.vapi
Modified: trunk/vapi/bzlib.vapi
==============================================================================
--- trunk/vapi/bzlib.vapi (original)
+++ trunk/vapi/bzlib.vapi Sun Mar 2 14:04:44 2008
@@ -1,61 +1,74 @@
+/* bzlib.vapi
+ *
+ * Copyright (C) 2008 Maciej Piechotka
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 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
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Maciej Piechotka <uzytkownik2 gmail com>
+ */
+
[CCode (cheader_filename = "bzlib.h")]
namespace BZLib {
- [CCode (cname = "int", cprefix = "BZ_")]
- public enum Action {
- RUN,
- FLUSH,
- FINISH
- }
-
- [CCode (cname = "int", cprefix = "BZ_")]
- public enum Status {
- OK,
- RUN_OK,
- FLUSH_OK,
- FINISH_OK,
- STREAM_END,
- SEQUENCE_ERROR,
- MEM_ERROR,
- DATA_ERROR,
- DATA_ERROR_MAGICK,
- IO_ERROR,
- UNEXPECTED_EOF,
- OUTBUFF_FULL,
- CONFIG_ERROR
- }
-
- //DO NOT HAVE Alloc NOR Free VARIABLES!!!
- public delegate void *Alloc (void *opaque, int n, int m);
- public delegate void Free (void *opaque, void *pointer);
-
- [CCode (cname = "bz_stream", free_function = "g_free")]
- public class Stream {
- public string next_in;
- public uint avail_in;
- public uint totoal_in_lo32;
- public uint total_in_hi32;
- public string next_out;
- public uint avail_out;
- public uint totoal_out_lo32;
- public uint total_out_hi32;
- public void *state;
- //Set Alloc and Free to NULL!
- [CCode (cname = "bzalloc")];
- public Alloc alloc;
- [CCode (cname = "bzfree")];
- public Free free;
- public void *opaque;
- [CCode (cname = "BZ2_bzDecompressInit")]
- public Status compress_init (int block_size_100k, int verbosity, int work_factor);
- [CCode (cname = "BZ2_bzDecompress")]
- public Status compress (Action action);
- [CCode (cname = "BZ2_bzDecompressEnd")]
- public Status compress_end ();
- [CCode (cname = "BZ2_bzDecompressInit")]
- public Status decompress_init (int verbosity, int small);
- [CCode (cname = "BZ2_bzDecompress")]
- public Status decompress ();
- [CCode (cname = "BZ2_bzDecompressEnd")]
- public Status decompress_end ();
- }
+ [CCode (cname = "int", cprefix = "BZ_")]
+ public enum Action {
+ RUN,
+ FLUSH,
+ FINISH
+ }
+
+ [CCode (cname = "int", cprefix = "BZ_")]
+ public enum Status {
+ OK,
+ RUN_OK,
+ FLUSH_OK,
+ FINISH_OK,
+ STREAM_END,
+ SEQUENCE_ERROR,
+ MEM_ERROR,
+ DATA_ERROR,
+ DATA_ERROR_MAGICK,
+ IO_ERROR,
+ UNEXPECTED_EOF,
+ OUTBUFF_FULL,
+ CONFIG_ERROR
+ }
+
+ [CCode (cname = "bz_stream")]
+ public struct Stream {
+ public string next_in;
+ public uint avail_in;
+ public uint totoal_in_lo32;
+ public uint total_in_hi32;
+ public string next_out;
+ public uint avail_out;
+ public uint totoal_out_lo32;
+ public uint total_out_hi32;
+ public void *state;
+ public void *opaque;
+ [CCode (cname = "BZ2_bzDecompressInit")]
+ public Status compress_init (int block_size_100k, int verbosity, int work_factor);
+ [CCode (cname = "BZ2_bzDecompress")]
+ public Status compress (Action action);
+ [CCode (cname = "BZ2_bzDecompressEnd")]
+ public Status compress_end ();
+ [CCode (cname = "BZ2_bzDecompressInit")]
+ public Status decompress_init (int verbosity, int small);
+ [CCode (cname = "BZ2_bzDecompress")]
+ public Status decompress ();
+ [CCode (cname = "BZ2_bzDecompressEnd")]
+ public Status decompress_end ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]