[vala-extra-vapis] Add qrencode bindings.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] Add qrencode bindings.
- Date: Sat, 2 Jan 2016 20:42:08 +0000 (UTC)
commit c81061160b7d546c99fe0446c71b06b55951d980
Author: Edoardo Putti <edoardo putti gmail com>
Date: Sat Jan 2 15:32:47 2016 +0100
Add qrencode bindings.
https://github.com/nemequ/vala-extra-vapis/pull/27
qrencode.vapi | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/qrencode.vapi b/qrencode.vapi
new file mode 100644
index 0000000..2937158
--- /dev/null
+++ b/qrencode.vapi
@@ -0,0 +1,63 @@
+/* qrencode.vapi
+ *
+ * Copyright (C) 2015 Ignacio Casal Quinteiro
+ *
+ * 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
+ *
+ * As a special exception, if you use inline functions from this file,
+ * this file does not by itself cause the resulting executable to be
+ * covered by the GNU Lesser General Public License.
+ */
+namespace Qrencode {
+ [CCode (cheader_filename = "qrencode.h", cname = "QRcode", unref_function = "QRcode_free")]
+ public class QRcode {
+ [CCode (cname = "QRcode_encodeString")]
+ public QRcode.encodeString(string digits, int version, EcLevel level, Mode hint, int casesensitive);
+
+ public int version;
+ public int width;
+ [CCode (array_length = false)]
+ public uint8[] data;
+ }
+
+ [CCode (cheader_filename = "qrencode.h", cname="QRencLevel")]
+ public enum EcLevel {
+ [CCode (cname="QR_ECLEVEL_L")]
+ L,
+ [CCode (cname="QR_ECLEVEL_M")]
+ M,
+ [CCode (cname="QR_ECLEVEL_Q")]
+ Q,
+ [CCode (cname="QR_ECLEVEL_H")]
+ H
+ }
+
+ [CCode (cheader_filename = "qrencode.h", cname="QRencodeMode")]
+ public enum Mode {
+ [CCode (cname="QR_MODE_NUL")]
+ NUL,
+ [CCode (cname="QR_MODE_NUM")]
+ NUM,
+ [CCode (cname="QR_MODE_AN")]
+ AN,
+ [CCode (cname="QR_MODE_8")]
+ B8,
+ [CCode (cname="QR_MODE_KANJI")]
+ KANJI,
+ [CCode (cname="QR_MODE_STRUCTURE")]
+ STRUCTURE
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]