summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-23 09:06:59 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-23 09:06:59 +0200
commit4ea2cc3bd4a7d9b1c54a9d33e6a1cf82e7c8c21d (patch)
treed2e54377d14d604356c86862a326f64ae64dadd6 /vapi
Imported Upstream version 0.18.1upstream/0.18.1
Diffstat (limited to 'vapi')
-rw-r--r--vapi/ExtendedPosix.vapi18
-rw-r--r--vapi/LConv.vapi45
-rw-r--r--vapi/gphoto-2.4/libgphoto2.vapi487
-rw-r--r--vapi/gphoto-2.5/libgphoto2.vapi495
-rw-r--r--vapi/gphoto.h18
-rw-r--r--vapi/libexif.vapi340
-rw-r--r--vapi/libraw.vapi268
-rw-r--r--vapi/unique-3.0.deps8
-rw-r--r--vapi/unique-3.0.vapi94
-rw-r--r--vapi/unity.deps6
-rw-r--r--vapi/unity.vapi438
-rw-r--r--vapi/webkitgtk-3.0.deps8
-rw-r--r--vapi/webkitgtk-3.0.vapi653
13 files changed, 2878 insertions, 0 deletions
diff --git a/vapi/ExtendedPosix.vapi b/vapi/ExtendedPosix.vapi
new file mode 100644
index 0000000..2eaeffe
--- /dev/null
+++ b/vapi/ExtendedPosix.vapi
@@ -0,0 +1,18 @@
+/* Copyright 2009-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+[CCode (cprefix="", lower_case_cprefix="")]
+namespace ExtendedPosix {
+ [CCode (cheader_filename="unistd.h")]
+ public long sysconf(int name);
+
+ [CCode (cprefix="", lower_case_cprefix="")]
+ enum ConfName {
+ _SC_NPROCESSORS_CONF,
+ _SC_NPROCESSORS_ONLN
+ }
+}
+
diff --git a/vapi/LConv.vapi b/vapi/LConv.vapi
new file mode 100644
index 0000000..35de9f5
--- /dev/null
+++ b/vapi/LConv.vapi
@@ -0,0 +1,45 @@
+/* Copyright 2010-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+namespace GLib {
+ [Compact]
+ [CCode (cheader_filename = "locale.h", cname = "struct lconv")]
+ public class LConv {
+ public string decimal_point;
+ public string thousands_sep;
+ public string grouping;
+
+ public string int_curr_symbol;
+ public string currency_symbol;
+ public string mon_decimal_point;
+ public string mon_thousands_sep;
+ public string mon_grouping;
+ public string positive_sign;
+ public string negative_sign;
+ public char int_frac_digits;
+ public char frac_digits;
+
+ public char p_cs_precedes;
+ public char p_sep_by_space;
+ public char n_cs_precedes;
+ public char n_sep_by_space;
+
+ public char p_sign_posn;
+ public char n_sign_posn;
+
+ public char int_p_cs_precedes;
+ public char int_p_sep_by_space;
+ public char int_n_cs_precedes;
+ public char int_n_sep_by_space;
+ public char int_p_sign_posn;
+ public char int_n_sign_posn;
+ }
+
+ namespace Intl {
+ [CCode (cname = "localeconv", cheader_filename = "locale.h")]
+ public static unowned LConv localeconv();
+ }
+}
+
diff --git a/vapi/gphoto-2.4/libgphoto2.vapi b/vapi/gphoto-2.4/libgphoto2.vapi
new file mode 100644
index 0000000..e90e094
--- /dev/null
+++ b/vapi/gphoto-2.4/libgphoto2.vapi
@@ -0,0 +1,487 @@
+/* Copyright 2009-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+[CCode (
+ cprefix="GP",
+ lower_case_cprefix="gp_"
+)]
+namespace GPhoto {
+ [SimpleType]
+ [CCode (
+ cname="CameraAbilities",
+ destroy_function="",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h"
+ )]
+ public struct CameraAbilities {
+ public string model;
+ public int status;
+ public PortType port;
+ public string speed;
+ public CameraOperation operations;
+ public CameraFileOperation file_operations;
+ public CameraFolderOperation folder_operations;
+ public int usb_vendor;
+ public int usb_product;
+ public int usb_class;
+ public int usb_protocol;
+ }
+
+ [Compact]
+ [CCode (
+ cname="CameraAbilitiesList",
+ cprefix="gp_abilities_list_",
+ free_function="gp_abilities_list_free",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h"
+ )]
+ public class CameraAbilitiesList {
+ [CCode (cname="gp_abilities_list_new")]
+ public static Result create(out CameraAbilitiesList abilitiesList);
+ public Result load(Context context);
+ public Result reset();
+ public Result detect(PortInfoList portList, CameraList cameraList, Context context);
+ public int count();
+ public int lookup_model(string model);
+ public Result get_abilities(int index, out CameraAbilities abilities);
+ }
+
+ [Compact]
+ [CCode (
+ cname="Camera",
+ ref_function="GPHOTO_REF_CAMERA",
+ unref_function="gp_camera_unref",
+ free_function="gp_camera_free",
+ cheader_filename="gphoto2/gphoto2-camera.h,gphoto.h"
+ )]
+ public class Camera {
+ [CCode (cname="gp_camera_new")]
+ public static Result create(out Camera camera);
+ public Result init(Context context);
+ public Result exit(Context context);
+ public Result get_port_info(out PortInfo info);
+ public Result set_port_info(PortInfo info);
+ public Result get_abilities(out CameraAbilities abilities);
+ public Result set_abilities(CameraAbilities abilities);
+ public Result get_storageinfo(CameraStorageInformation **sifs, out int count, Context context);
+
+ // Folders
+ [CCode (cname="gp_camera_folder_list_folders")]
+ public Result list_folders(string folder, CameraList list, Context context);
+ [CCode (cname="gp_camera_folder_list_files")]
+ public Result list_files(string folder, CameraList list, Context context);
+ [CCode (cname="gp_camera_folder_delete_all")]
+ public Result delete_all_files(string folder, Context context);
+ [CCode (cname="gp_camera_folder_put_file")]
+ public Result put_file(string folder, CameraFile file, Context context);
+ [CCode (cname="gp_camera_folder_make_dir")]
+ public Result make_dir(string folder, string name, Context context);
+ [CCode (cname="gp_camera_folder_remove_dir")]
+ public Result remove_dir(string folder, string name, Context context);
+
+ // Files
+ [CCode (cname="gp_camera_file_get_info")]
+ public Result get_file_info(string folder, string file, out CameraFileInfo info, Context context);
+ [CCode (cname="gp_camera_file_set_info")]
+ public Result set_file_info(string folder, string file, CameraFileInfo info, Context context);
+ [CCode (cname="gp_camera_file_get")]
+ public Result get_file(string folder, string filename, CameraFileType type, CameraFile file,
+ Context context);
+ [CCode (cname="gp_camera_file_delete")]
+ public Result delete_file(string folder, string filename, Context context);
+ }
+
+ [Compact]
+ [CCode (
+ cname="CameraFile",
+ cprefix="gp_file_",
+ ref_function="GPHOTO_REF_FILE",
+ unref_function="gp_file_unref",
+ free_function="gp_file_free",
+ cheader_filename="gphoto2/gphoto2-file.h,gphoto.h"
+ )]
+ public class CameraFile {
+ [CCode (cname="gp_file_new")]
+ public static Result create(out CameraFile file);
+ public Result get_data_and_size(out uint8 *data, out ulong data_len);
+ public Result save(string filename);
+ public Result slurp(uint8[] data, out size_t readlen);
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfo",
+ destroy_function="",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfo {
+ public CameraFileInfoPreview preview;
+ public CameraFileInfoFile file;
+ public CameraFileInfoAudio audio;
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfoAudio",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfoAudio {
+ }
+
+ [CCode (
+ cname="CameraFileInfoFields",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_FILE_INFO_"
+ )]
+ [Flags]
+ public enum CameraFileInfoFields {
+ NONE,
+ TYPE,
+ NAME,
+ SIZE,
+ WIDTH,
+ HEIGHT,
+ PERMISSIONS,
+ STATUS,
+ MTIME,
+ ALL
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfoFile",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfoFile {
+ public CameraFileInfoFields fields;
+ public CameraFileStatus status;
+ public ulong size;
+ public string type;
+ public uint width;
+ public uint height;
+ public string name;
+ public CameraFilePermissions permissions;
+ public time_t mtime;
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfoPreview",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfoPreview {
+ public CameraFileInfoFields fields;
+ public CameraFileStatus status;
+ public ulong size;
+ public string type;
+ public uint width;
+ public uint height;
+ public string name;
+ public CameraFilePermissions permissions;
+ public time_t mtime;
+ }
+
+ [CCode (
+ cname="CameraFileOperation",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h",
+ cprefix="GP_FILE_OPERATION_"
+ )]
+ [Flags]
+ public enum CameraFileOperation {
+ NONE,
+ DELETE,
+ PREVIEW,
+ RAW,
+ AUDIO,
+ EXIF
+ }
+
+ [CCode (
+ cname="CameraFilePermissions",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_FILE_PERM_"
+ )]
+ [Flags]
+ public enum CameraFilePermissions {
+ NONE,
+ READ,
+ DELETE,
+ ALL
+ }
+
+ [CCode (
+ cname="CameraFileStatus",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_FILE_STATUS_"
+ )]
+ public enum CameraFileStatus {
+ NOT_DOWNLOADED,
+ DOWNLOADED
+ }
+
+ [CCode (
+ cname="CameraFileType",
+ cheader_filename="gphoto2/gphoto2-file.h",
+ cprefix="GP_FILE_TYPE_"
+ )]
+ public enum CameraFileType {
+ PREVIEW,
+ NORMAL,
+ RAW,
+ AUDIO,
+ EXIF,
+ METADATA
+ }
+
+ [CCode (
+ cname="CameraFolderOperation",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h",
+ cprefix="GP_FOLDER_OPERATION_"
+ )]
+ [Flags]
+ public enum CameraFolderOperation {
+ NONE,
+ DELETE_ALL,
+ PUT_FILE,
+ MAKE_DIR,
+ REMOVE_DIR
+ }
+
+ [Compact]
+ [CCode (
+ cname="CameraList",
+ cprefix="gp_list_",
+ ref_function="GPHOTO_REF_LIST",
+ unref_function="gp_list_unref",
+ free_function="gp_list_free",
+ cheader_filename="gphoto2/gphoto2-list.h,gphoto.h"
+ )]
+ public class CameraList {
+ [CCode (cname="gp_list_new")]
+ public static Result create(out CameraList list);
+ public int count();
+ public Result append(string name, string value);
+ public Result reset();
+ public Result sort();
+ public Result find_by_name(out int? index, string name);
+ public Result get_name(int index, out unowned string name);
+ public Result get_value(int index, out unowned string value);
+ public Result set_name(int index, string name);
+ public Result set_value(int index, string value);
+ public Result populate(string format, int count);
+ }
+
+ [CCode (
+ cname="CameraOperation",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h",
+ cprefix="GP_OPERATION_"
+ )]
+ [Flags]
+ public enum CameraOperation {
+ NONE,
+ CAPTURE_IMAGE,
+ CAPTURE_VIDEO,
+ CAPTURE_AUDIO,
+ CAPTURE_PREVIEW,
+ CONFIG
+ }
+
+ [CCode (
+ cname="CameraStorageInfoFields",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_STORAGEINFO_"
+ )]
+ [Flags]
+ public enum CameraStorageInfoFields {
+ BASE,
+ LABEL,
+ DESCRIPTION,
+ ACCESS,
+ STORAGETYPE,
+ FILESYSTEMTYPE,
+ MAXCAPACITY,
+ FREESPACEKBYTES,
+ FREESPACEIMAGES
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraStorageInformation",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraStorageInformation {
+ public CameraStorageInfoFields fields;
+ public string basedir;
+ public string label;
+ public string description;
+ public int type;
+ public int fstype;
+ public int access;
+ public ulong capacitykbytes;
+ public ulong freekbytes;
+ public ulong freeimages;
+ }
+
+ [Compact]
+ [CCode (
+ ref_function="GPHOTO_REF_CONTEXT",
+ unref_function="gp_context_unref",
+ cheader_filename="gphoto2/gphoto2-context.h,gphoto.h"
+ )]
+ public class Context {
+ [CCode (cname="gp_context_new")]
+ public Context();
+ public void set_idle_func(ContextIdleFunc func);
+ public void set_progress_funcs(
+ [CCode (delegate_target_pos=3.1)] ContextProgressStartFunc startFunc,
+ [CCode (delegate_target_pos=3.1)] ContextProgressUpdateFunc updateFunc,
+ [CCode (delegate_target_pos=3.1)] ContextProgressStopFunc stopFunc);
+ public void set_error_func([CCode (delegate_target_pos=3.1)] ContextErrorFunc errorFunc);
+ public void set_status_func([CCode (delegate_target_pos=3.1)] ContextStatusFunc statusFunc);
+ public void set_message_func([CCode (delegate_target_pos=3.1)] ContextMessageFunc messageFunc);
+ }
+
+ public delegate void ContextIdleFunc(Context context);
+
+ public delegate void ContextErrorFunc(Context context, string format, void *va_list);
+
+ public delegate void ContextStatusFunc(Context context, string format, void *va_list);
+
+ public delegate void ContextMessageFunc(Context context, string format, void *va_list);
+
+ // TODO: Support for va_args in Vala, esp. for delegates?
+ public delegate uint ContextProgressStartFunc(Context context, float target, string format, void *va_list);
+
+ public delegate void ContextProgressUpdateFunc(Context context, uint id, float current);
+
+ public delegate void ContextProgressStopFunc(Context context, uint id);
+
+ [CCode (
+ cheader_filename="gphoto2/gphoto2-file.h",
+ cprefix="GP_MIME_"
+ )]
+ namespace MIME {
+ public const string WAV;
+ public const string RAW;
+ public const string PNG;
+ public const string PGM;
+ public const string PPM;
+ public const string PNM;
+ public const string JPEG;
+ public const string TIFF;
+ public const string BMP;
+ public const string QUICKTIME;
+ public const string AVI;
+ public const string CRW;
+ public const string UNKNOWN;
+ public const string EXIF;
+ public const string MP3;
+ public const string OGG;
+ public const string WMA;
+ public const string ASF;
+ public const string MPEG;
+ }
+
+ [SimpleType]
+ [CCode (
+ destroy_function="",
+ cheader_filename="gphoto2/gphoto2-port-info-list.h"
+ )]
+ public struct PortInfo {
+ public PortType type;
+ public string name;
+ public string path;
+ public string library_filename;
+ }
+
+ [Compact]
+ [CCode (
+ free_function="gp_port_info_list_free",
+ cheader_filename="gphoto2/gphoto2-port-info-list.h"
+ )]
+ public class PortInfoList {
+ [CCode (cname="gp_port_info_list_new")]
+ public static Result create(out PortInfoList list);
+ public Result load();
+ public int count();
+ public int lookup_name(string name);
+ public int lookup_path(string name);
+ public Result get_info(int index, out PortInfo info);
+ }
+
+ [CCode (
+ cheader_filename="gphoto2/gphoto2-port-info-list.h",
+ cprefix="GP_PORT_"
+ )]
+ [Flags]
+ public enum PortType {
+ NONE,
+ SERIAL,
+ USB,
+ DISK,
+ PTPIP
+ }
+
+ [CCode (
+ cname="int",
+ cheader_filename="gphoto2/gphoto2-result.h,gphoto2/gphoto2-port-result.h",
+ cprefix="GP_ERROR_"
+ )]
+ public enum Result {
+ [CCode (cname="GP_OK")]
+ OK,
+ [CCode (cname="GP_ERROR")]
+ ERROR,
+ BAD_PARAMETERS,
+ NO_MEMORY,
+ LIBRARY,
+ UNKNOWN_PORT,
+ NOT_SUPPORTED,
+ IO,
+ FIXED_LIMIT_EXCEEDED,
+ TIMEOUT,
+ IO_SUPPORTED_SERIAL,
+ IO_SUPPORTED_USB,
+ IO_INIT,
+ IO_READ,
+ IO_WRITE,
+ IO_UPDATE,
+ IO_SERIAL_SPEED,
+ IO_USB_CLEAR_HALT,
+ IO_USB_FIND,
+ IO_USB_CLAIM,
+ IO_LOCK,
+ HAL,
+ CORRUPTED_DATA,
+ FILE_EXISTS,
+ MODEL_NOT_FOUND,
+ DIRECTORY_NOT_FOUND,
+ FILE_NOT_FOUND,
+ DIRECTORY_EXISTS,
+ CAMERA_BUSY,
+ PATH_NOT_ABSOLUTE,
+ CANCEL,
+ CAMERA_ERROR,
+ OS_FAILURE;
+
+ [CCode (cname="gp_port_result_as_string")]
+ public unowned string as_string();
+
+ public string to_full_string() {
+ return "%s (%d)".printf(as_string(), this);
+ }
+ }
+
+ [CCode (
+ cheader_filename="gphoto2/gphoto2-version.h",
+ cprefix="GP_VERSION"
+ )]
+ public enum VersionVerbosity {
+ SHORT,
+ VERBOSE
+ }
+
+ public unowned string library_version(VersionVerbosity verbosity);
+}
+
diff --git a/vapi/gphoto-2.5/libgphoto2.vapi b/vapi/gphoto-2.5/libgphoto2.vapi
new file mode 100644
index 0000000..89aa548
--- /dev/null
+++ b/vapi/gphoto-2.5/libgphoto2.vapi
@@ -0,0 +1,495 @@
+/* Copyright 2009-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+[CCode (
+ cprefix="GP",
+ lower_case_cprefix="gp_"
+)]
+namespace GPhoto {
+ [SimpleType]
+ [CCode (
+ cname="CameraAbilities",
+ destroy_function="",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h"
+ )]
+ public struct CameraAbilities {
+ public string model;
+ public int status;
+ public PortType port;
+ public string speed;
+ public CameraOperation operations;
+ public CameraFileOperation file_operations;
+ public CameraFolderOperation folder_operations;
+ public int usb_vendor;
+ public int usb_product;
+ public int usb_class;
+ public int usb_protocol;
+ }
+
+ [Compact]
+ [CCode (
+ cname="CameraAbilitiesList",
+ cprefix="gp_abilities_list_",
+ free_function="gp_abilities_list_free",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h"
+ )]
+ public class CameraAbilitiesList {
+ [CCode (cname="gp_abilities_list_new")]
+ public static Result create(out CameraAbilitiesList abilitiesList);
+ public Result load(Context context);
+ public Result reset();
+ public Result detect(PortInfoList portList, CameraList cameraList, Context context);
+ public int count();
+ public int lookup_model(string model);
+ public Result get_abilities(int index, out CameraAbilities abilities);
+ }
+
+ [Compact]
+ [CCode (
+ cname="Camera",
+ ref_function="GPHOTO_REF_CAMERA",
+ unref_function="gp_camera_unref",
+ free_function="gp_camera_free",
+ cheader_filename="gphoto2/gphoto2-camera.h,gphoto.h"
+ )]
+ public class Camera {
+ [CCode (cname="gp_camera_new")]
+ public static Result create(out Camera camera);
+ public Result init(Context context);
+ public Result exit(Context context);
+ public Result get_port_info(out PortInfo info);
+ public Result set_port_info(PortInfo info);
+ public Result get_abilities(out CameraAbilities abilities);
+ public Result set_abilities(CameraAbilities abilities);
+ public Result get_storageinfo(CameraStorageInformation **sifs, out int count, Context context);
+
+ // Folders
+ [CCode (cname="gp_camera_folder_list_folders")]
+ public Result list_folders(string folder, CameraList list, Context context);
+ [CCode (cname="gp_camera_folder_list_files")]
+ public Result list_files(string folder, CameraList list, Context context);
+ [CCode (cname="gp_camera_folder_delete_all")]
+ public Result delete_all_files(string folder, Context context);
+ [CCode (cname="gp_camera_folder_put_file")]
+ public Result put_file(string folder, CameraFile file, Context context);
+ [CCode (cname="gp_camera_folder_make_dir")]
+ public Result make_dir(string folder, string name, Context context);
+ [CCode (cname="gp_camera_folder_remove_dir")]
+ public Result remove_dir(string folder, string name, Context context);
+
+ // Files
+ [CCode (cname="gp_camera_file_get_info")]
+ public Result get_file_info(string folder, string file, out CameraFileInfo info, Context context);
+ [CCode (cname="gp_camera_file_set_info")]
+ public Result set_file_info(string folder, string file, CameraFileInfo info, Context context);
+ [CCode (cname="gp_camera_file_get")]
+ public Result get_file(string folder, string filename, CameraFileType type, CameraFile file,
+ Context context);
+ [CCode (cname="gp_camera_file_delete")]
+ public Result delete_file(string folder, string filename, Context context);
+ }
+
+ [Compact]
+ [CCode (
+ cname="CameraFile",
+ cprefix="gp_file_",
+ ref_function="GPHOTO_REF_FILE",
+ unref_function="gp_file_unref",
+ free_function="gp_file_free",
+ cheader_filename="gphoto2/gphoto2-file.h,gphoto.h"
+ )]
+ public class CameraFile {
+ [CCode (cname="gp_file_new")]
+ public static Result create(out CameraFile file);
+ public Result get_data_and_size(out uint8 *data, out ulong data_len);
+ public Result save(string filename);
+ public Result slurp(uint8[] data, out size_t readlen);
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfo",
+ destroy_function="",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfo {
+ public CameraFileInfoPreview preview;
+ public CameraFileInfoFile file;
+ public CameraFileInfoAudio audio;
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfoAudio",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfoAudio {
+ }
+
+ [CCode (
+ cname="CameraFileInfoFields",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_FILE_INFO_"
+ )]
+ [Flags]
+ public enum CameraFileInfoFields {
+ NONE,
+ TYPE,
+ NAME,
+ SIZE,
+ WIDTH,
+ HEIGHT,
+ PERMISSIONS,
+ STATUS,
+ MTIME,
+ ALL
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfoFile",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfoFile {
+ public CameraFileInfoFields fields;
+ public CameraFileStatus status;
+ public ulong size;
+ public string type;
+ public uint width;
+ public uint height;
+ public string name;
+ public CameraFilePermissions permissions;
+ public time_t mtime;
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraFileInfoPreview",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraFileInfoPreview {
+ public CameraFileInfoFields fields;
+ public CameraFileStatus status;
+ public ulong size;
+ public string type;
+ public uint width;
+ public uint height;
+ public string name;
+ public CameraFilePermissions permissions;
+ public time_t mtime;
+ }
+
+ [CCode (
+ cname="CameraFileOperation",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h",
+ cprefix="GP_FILE_OPERATION_"
+ )]
+ [Flags]
+ public enum CameraFileOperation {
+ NONE,
+ DELETE,
+ PREVIEW,
+ RAW,
+ AUDIO,
+ EXIF
+ }
+
+ [CCode (
+ cname="CameraFilePermissions",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_FILE_PERM_"
+ )]
+ [Flags]
+ public enum CameraFilePermissions {
+ NONE,
+ READ,
+ DELETE,
+ ALL
+ }
+
+ [CCode (
+ cname="CameraFileStatus",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_FILE_STATUS_"
+ )]
+ public enum CameraFileStatus {
+ NOT_DOWNLOADED,
+ DOWNLOADED
+ }
+
+ [CCode (
+ cname="CameraFileType",
+ cheader_filename="gphoto2/gphoto2-file.h",
+ cprefix="GP_FILE_TYPE_"
+ )]
+ public enum CameraFileType {
+ PREVIEW,
+ NORMAL,
+ RAW,
+ AUDIO,
+ EXIF,
+ METADATA
+ }
+
+ [CCode (
+ cname="CameraFolderOperation",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h",
+ cprefix="GP_FOLDER_OPERATION_"
+ )]
+ [Flags]
+ public enum CameraFolderOperation {
+ NONE,
+ DELETE_ALL,
+ PUT_FILE,
+ MAKE_DIR,
+ REMOVE_DIR
+ }
+
+ [Compact]
+ [CCode (
+ cname="CameraList",
+ cprefix="gp_list_",
+ ref_function="GPHOTO_REF_LIST",
+ unref_function="gp_list_unref",
+ free_function="gp_list_free",
+ cheader_filename="gphoto2/gphoto2-list.h,gphoto.h"
+ )]
+ public class CameraList {
+ [CCode (cname="gp_list_new")]
+ public static Result create(out CameraList list);
+ public int count();
+ public Result append(string name, string value);
+ public Result reset();
+ public Result sort();
+ public Result find_by_name(out int? index, string name);
+ public Result get_name(int index, out unowned string name);
+ public Result get_value(int index, out unowned string value);
+ public Result set_name(int index, string name);
+ public Result set_value(int index, string value);
+ public Result populate(string format, int count);
+ }
+
+ [CCode (
+ cname="CameraOperation",
+ cheader_filename="gphoto2/gphoto2-abilities-list.h",
+ cprefix="GP_OPERATION_"
+ )]
+ [Flags]
+ public enum CameraOperation {
+ NONE,
+ CAPTURE_IMAGE,
+ CAPTURE_VIDEO,
+ CAPTURE_AUDIO,
+ CAPTURE_PREVIEW,
+ CONFIG
+ }
+
+ [CCode (
+ cname="CameraStorageInfoFields",
+ cheader_filename="gphoto2/gphoto2-filesys.h",
+ cprefix="GP_STORAGEINFO_"
+ )]
+ [Flags]
+ public enum CameraStorageInfoFields {
+ BASE,
+ LABEL,
+ DESCRIPTION,
+ ACCESS,
+ STORAGETYPE,
+ FILESYSTEMTYPE,
+ MAXCAPACITY,
+ FREESPACEKBYTES,
+ FREESPACEIMAGES
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="CameraStorageInformation",
+ cheader_filename="gphoto2/gphoto2-filesys.h"
+ )]
+ public struct CameraStorageInformation {
+ public CameraStorageInfoFields fields;
+ public string basedir;
+ public string label;
+ public string description;
+ public int type;
+ public int fstype;
+ public int access;
+ public ulong capacitykbytes;
+ public ulong freekbytes;
+ public ulong freeimages;
+ }
+
+ [Compact]
+ [CCode (
+ ref_function="GPHOTO_REF_CONTEXT",
+ unref_function="gp_context_unref",
+ cheader_filename="gphoto2/gphoto2-context.h,gphoto.h"
+ )]
+ public class Context {
+ [CCode (cname="gp_context_new")]
+ public Context();
+ public void set_idle_func(ContextIdleFunc func);
+ public void set_progress_funcs(
+ [CCode (delegate_target_pos=3.1)] ContextProgressStartFunc startFunc,
+ [CCode (delegate_target_pos=3.1)] ContextProgressUpdateFunc updateFunc,
+ [CCode (delegate_target_pos=3.1)] ContextProgressStopFunc stopFunc);
+ public void set_error_func([CCode (delegate_target_pos=3.1)] ContextErrorFunc errorFunc);
+ public void set_status_func([CCode (delegate_target_pos=3.1)] ContextStatusFunc statusFunc);
+ public void set_message_func([CCode (delegate_target_pos=3.1)] ContextMessageFunc messageFunc);
+ }
+
+ public delegate void ContextIdleFunc(Context context);
+
+ public delegate void ContextErrorFunc(Context context, string text);
+
+ public delegate void ContextStatusFunc(Context context, string text);
+
+ public delegate void ContextMessageFunc(Context context, string text);
+
+ // TODO: Support for va_args in Vala, esp. for delegates?
+ public delegate uint ContextProgressStartFunc(Context context, float target, string text);
+
+ public delegate void ContextProgressUpdateFunc(Context context, uint id, float current);
+
+ public delegate void ContextProgressStopFunc(Context context, uint id);
+
+ [CCode (
+ cheader_filename="gphoto2/gphoto2-file.h",
+ cprefix="GP_MIME_"
+ )]
+ namespace MIME {
+ public const string WAV;
+ public const string RAW;
+ public const string PNG;
+ public const string PGM;
+ public const string PPM;
+ public const string PNM;
+ public const string JPEG;
+ public const string TIFF;
+ public const string BMP;
+ public const string QUICKTIME;
+ public const string AVI;
+ public const string CRW;
+ public const string UNKNOWN;
+ public const string EXIF;
+ public const string MP3;
+ public const string OGG;
+ public const string WMA;
+ public const string ASF;
+ public const string MPEG;
+ }
+
+ [SimpleType]
+ [CCode (
+ destroy_function="",
+ cheader_filename="gphoto2/gphoto2-port-info-list.h"
+ )]
+ public struct PortInfo {
+ [CCode (cname="gp_port_info_get_path")]
+ public int get_path(out unowned string path);
+ [CCode (cname="gp_port_info_set_path")]
+ public int set_path(string path);
+ [CCode (cname="gp_port_info_get_name")]
+ public int get_name(out unowned string name);
+ [CCode (cname="gp_port_info_set_name")]
+ public int set_name(string path);
+ [CCode (cname="gp_port_info_get_library_filename")]
+ public int get_library_filename(out unowned string lib);
+ [CCode (cname="gp_port_info_set_library_filename")]
+ public int set_library_filename(string lib);
+ }
+
+ [Compact]
+ [CCode (
+ free_function="gp_port_info_list_free",
+ cheader_filename="gphoto2/gphoto2-port-info-list.h"
+ )]
+ public class PortInfoList {
+ [CCode (cname="gp_port_info_list_new")]
+ public static Result create(out PortInfoList list);
+ public Result load();
+ public int count();
+ public int lookup_name(string name);
+ public int lookup_path(string name);
+ public Result get_info(int index, out PortInfo info);
+ }
+
+ [CCode (
+ cheader_filename="gphoto2/gphoto2-port-info-list.h",
+ cprefix="GP_PORT_"
+ )]
+ [Flags]
+ public enum PortType {
+ NONE,
+ SERIAL,
+ USB,
+ DISK,
+ PTPIP
+ }
+
+ [CCode (
+ cname="int",
+ cheader_filename="gphoto2/gphoto2-result.h,gphoto2/gphoto2-port-result.h",
+ cprefix="GP_ERROR_"
+ )]
+ public enum Result {
+ [CCode (cname="GP_OK")]
+ OK,
+ [CCode (cname="GP_ERROR")]
+ ERROR,
+ BAD_PARAMETERS,
+ NO_MEMORY,
+ LIBRARY,
+ UNKNOWN_PORT,
+ NOT_SUPPORTED,
+ IO,
+ FIXED_LIMIT_EXCEEDED,
+ TIMEOUT,
+ IO_SUPPORTED_SERIAL,
+ IO_SUPPORTED_USB,
+ IO_INIT,
+ IO_READ,
+ IO_WRITE,
+ IO_UPDATE,
+ IO_SERIAL_SPEED,
+ IO_USB_CLEAR_HALT,
+ IO_USB_FIND,
+ IO_USB_CLAIM,
+ IO_LOCK,
+ HAL,
+ CORRUPTED_DATA,
+ FILE_EXISTS,
+ MODEL_NOT_FOUND,
+ DIRECTORY_NOT_FOUND,
+ FILE_NOT_FOUND,
+ DIRECTORY_EXISTS,
+ CAMERA_BUSY,
+ PATH_NOT_ABSOLUTE,
+ CANCEL,
+ CAMERA_ERROR,
+ OS_FAILURE;
+
+ [CCode (cname="gp_port_result_as_string")]
+ public unowned string as_string();
+
+ public string to_full_string() {
+ return "%s (%d)".printf(as_string(), this);
+ }
+ }
+
+ [CCode (
+ cheader_filename="gphoto2/gphoto2-version.h",
+ cprefix="GP_VERSION"
+ )]
+ public enum VersionVerbosity {
+ SHORT,
+ VERBOSE
+ }
+
+ public unowned string library_version(VersionVerbosity verbosity);
+}
+
diff --git a/vapi/gphoto.h b/vapi/gphoto.h
new file mode 100644
index 0000000..f40b84c
--- /dev/null
+++ b/vapi/gphoto.h
@@ -0,0 +1,18 @@
+/* Copyright 2009-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+#ifndef GPHOTO_H
+#define GPHOTO_H
+
+#define GPHOTO_REF_CAMERA(c) (gp_camera_ref(c) == GP_OK ? c : NULL)
+
+#define GPHOTO_REF_FILE(c) (gp_file_ref(c) == GP_OK ? c : NULL)
+
+#define GPHOTO_REF_LIST(c) (gp_list_ref(c) == GP_OK ? c : NULL)
+
+#define GPHOTO_REF_CONTEXT(c) (gp_context_ref(c) == GP_OK ? c : NULL)
+
+#endif /* GPHOTO_H */
diff --git a/vapi/libexif.vapi b/vapi/libexif.vapi
new file mode 100644
index 0000000..ff29a76
--- /dev/null
+++ b/vapi/libexif.vapi
@@ -0,0 +1,340 @@
+/* Copyright 2009-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+[CCode (
+ cprefix = "Exif",
+ lower_case_cprefix="exif_"
+)]
+namespace Exif {
+ [CCode (
+ cname="ExifByteOrder",
+ cheader_filename="libexif/exif-byte-order.h",
+ cprefix="EXIF_BYTE_ORDER_"
+ )]
+ public enum ByteOrder {
+ INTEL,
+ MOTOROLA;
+
+ public unowned string get_name();
+ }
+
+ [Compact]
+ [CCode (
+ cname="ExifContent",
+ cheader_filename="libexif/exif-content.h",
+ ref_function="exif_content_ref",
+ ref_function_void=true,
+ unref_function="exif_content_unref",
+ free_function="exif_content_free"
+ )]
+ public class Content {
+ [CCode (cname="exif_content_new")]
+ public Content();
+ public void add_entry(Entry entry);
+ public void remove_entry(Entry entry);
+ public void dump(uint indent = 4);
+ public void foreach_entry(ForeachEntryFunc cb, void *user);
+ public unowned Entry get_entry(Tag tag);
+ public void fix();
+ public Ifd get_ifd();
+
+ public Entry **entries;
+ public int count;
+ public Data parent;
+ }
+
+ [CCode (
+ cheader_filename="libexif/exif-utils.h",
+ cprefix="exif_",
+ lower_case_cprefix="exif_"
+ )]
+ namespace Convert {
+ public static uint16 get_short(uchar *buffer, ByteOrder byteOrder);
+ public static int16 get_sshort(uchar *buffer, ByteOrder byteOrder);
+ public static uint32 get_long(uchar *buffer, ByteOrder byteOrder);
+ public static int32 get_slong(uchar *buffer, ByteOrder byteOrder);
+ public static Rational get_rational(uchar *buffer, ByteOrder byteOrder);
+ public static void set_short(uchar *buffer, ByteOrder byteOrder, uint16 val);
+ public static void set_sshort(uchar *buffer, ByteOrder byteOrder, int16 val);
+ public static void set_long(uchar *buffer, ByteOrder byteOrder, uint32 val);
+ public static void set_slong(uchar *buffer, ByteOrder byteOrder, int32 val);
+ }
+
+ [CCode (cheader_filename="libexif/exif-content.h", has_target=false)]
+ public delegate void ForeachEntryFunc(Entry e, void *user);
+
+ [Compact]
+ [CCode (
+ cname="ExifData",
+ cheader_filename="libexif/exif-data.h",
+ ref_function="exif_data_ref",
+ ref_function_void=true,
+ unref_function="exif_data_unref",
+ free_function="exif_data_free"
+ )]
+ public class Data {
+ [CCode (cname="exif_data_new")]
+ public Data();
+ public static Data? new_from_file(string path);
+ public static Data? new_from_data(uint8 *data, size_t count);
+ public void dump();
+ public void fix();
+ public void foreach_content(ForeachContentFunc cb, void *user = null);
+ public ByteOrder get_byte_order();
+ public DataType get_data_type();
+ public void load_data(uchar *buffer, uint size);
+ public void set_option(DataOption option);
+ public void unset_option(DataOption option);
+ public void save_data(uchar **buffer, uint *size);
+ public void set_data_type(DataType data_type);
+
+ // length is Exif.IFD_COUNT
+ public Content[] ifd;
+ public uchar *data;
+ public uint size;
+ }
+
+ [CCode (cheader_filename="libexif/exif-data.h", has_target=false)]
+ public delegate void ForeachContentFunc(Content c, void *user);
+
+ [CCode (
+ cname="ExifDataOption",
+ cheader_filename="libexif/exif-data.h",
+ cprefix="EXIF_DATA_OPTION_"
+ )]
+ public enum DataOption {
+ IGNORE_UNKNOWN_TAGS,
+ FOLLOW_SPECIFICATION,
+ DONT_CHANGE_MAKER_NOTE;
+
+ public unowned string get_name();
+ public unowned string get_description();
+ }
+
+ [CCode (
+ cname="ExifDataType",
+ cheader_filename="libexif/exif-data-type.h",
+ cprefix="EXIF_DATA_TYPE_"
+ )]
+ public enum DataType {
+ UNCOMPRESSED_CHUNKY,
+ UNCOMPRESSED_PLANAR,
+ UNCOMPRESSED_YCC,
+ COMPRESSED;
+
+ public bool is_valid() {
+ switch (this) {
+ case UNCOMPRESSED_CHUNKY:
+ case UNCOMPRESSED_PLANAR:
+ case UNCOMPRESSED_YCC:
+ case COMPRESSED:
+ return true;
+
+ default:
+ return false;
+ }
+ }
+ }
+
+ [CCode (cname="EXIF_DATA_TYPE_COUNT")]
+ public const int DATA_TYPE_COUNT;
+
+ [Compact]
+ [CCode (
+ cname="ExifEntry",
+ cheader_filename="libexif/exif-entry.h",
+ ref_function="exif_entry_ref",
+ ref_function_void=true,
+ unref_function="exif_entry_unref"
+ )]
+ public class Entry {
+ [CCode (cname="exif_entry_new")]
+ public Entry();
+ public void dump(uint indent = 4);
+ public void initialize(Tag tag);
+ public void fix();
+ public unowned char* get_value(char *val, uint maxlen);
+ public string get_string() {
+ char[] buffer = new char[256];
+ get_value(buffer, 256);
+
+ GLib.StringBuilder builder = new GLib.StringBuilder();
+ foreach (char c in buffer)
+ builder.append_c(c);
+
+ return builder.str;
+ }
+
+ public Tag tag;
+ public Format format;
+ public ulong components;
+ public uchar *data;
+ public uint size;
+ public Content *parent;
+ }
+
+ [CCode (
+ cname="ExifFormat",
+ cheader_filename="libexif/exif-format.h",
+ cprefix="EXIF_FORMAT_"
+ )]
+ public enum Format {
+ BYTE,
+ ASCII,
+ SHORT,
+ LONG,
+ RATIONAL,
+ SBYTE,
+ UNDEFINED,
+ SSHORT,
+ SLONG,
+ SRATIONAL,
+ FLOAT,
+ DOUBLE;
+
+ public unowned string get_name();
+ public unowned uchar get_size();
+ }
+
+ [CCode (
+ cname="ExifIfd",
+ cheader_filename="libexif/exif-ifd.h",
+ cprefix="EXIF_IFD_"
+ )]
+ public enum Ifd {
+ [CCode (cname="EXIF_IFD_0")]
+ ZERO,
+ [CCode (cname="EXIF_IFD_1")]
+ ONE,
+ EXIF,
+ GPS,
+ INTEROPERABILITY;
+
+ public unowned string get_name();
+ }
+
+ [CCode (cname="EXIF_IFD_COUNT")]
+ public const int IFD_COUNT;
+
+ [Compact]
+ [CCode (
+ cname="ExifLoader",
+ cheader_filename="libexif/exif-loader.h",
+ ref_function="exif_loader_ref",
+ ref_function_void=true,
+ unref_function="exif_loader_unref",
+ free_function="exif_loader_free"
+ )]
+ public class Loader {
+ [CCode (cname="exif_loader_new")]
+ public Loader();
+ public void write_file(string fname);
+ public void reset();
+ public Data get_data();
+ }
+
+ // TODO: Flesh out Log functionality
+ [Compact]
+ [CCode (
+ cname="ExifLog",
+ cheader_filename="libexif/exif-loader.h",
+ ref_function="exif_log_ref",
+ ref_function_void=true,
+ unref_function="exif_log_unref",
+ free_function="exif_log_free"
+ )]
+ public class Log {
+ [CCode (cname="exif_log_new")]
+ public Log();
+ }
+
+ [CCode (
+ cname="ExifLogCode",
+ cheader_filename="libexif/exif-log.h",
+ cprefix="EXIF_LOG_CODE_"
+ )]
+ public enum LogCode {
+ NONE,
+ DEBUG,
+ NO_MEMORY,
+ CORRUPT_DATA;
+
+ public unowned string get_title();
+ public unowned string get_message();
+ }
+
+ [Compact]
+ [CCode (
+ cname="ExifMem",
+ cheader_filename="libexif/exif-mem.h",
+ ref_function="exif_mem_ref",
+ ref_function_void=true,
+ unref_function="exif_mem_unref"
+ )]
+ public class Mem {
+ public void *alloc(uint32 size);
+ public void *realloc(void *ptr, uint32 size);
+ public void free(void *ptr);
+ public static Mem new_default();
+ }
+
+ [SimpleType]
+ [CCode (
+ cname="ExifRational",
+ cheader_filename="libexif/exif-utils.h"
+ )]
+ public struct Rational {
+ uint32 numerator;
+ uint32 denominator;
+ }
+
+ [CCode (
+ cname="ExifSupportLevel",
+ cheader_filename="libexif/exif-tag.h",
+ cprefix="EXIF_SUPPORT_LEVEL_"
+ )]
+ public enum SupportLevel {
+ UNKNOWN,
+ NOT_RECORDED,
+ MANDATORY,
+ OPTIONAL
+ }
+
+ [CCode (
+ cname="ExifTag",
+ cheader_filename="libexif/exif-tag.h",
+ cprefix="EXIF_TAG_"
+ )]
+ public enum Tag {
+ PIXEL_X_DIMENSION,
+ PIXEL_Y_DIMENSION,
+ BITS_PER_SAMPLE,
+ DATE_TIME_ORIGINAL,
+ ORIENTATION,
+ RELATED_IMAGE_WIDTH,
+ RELATED_IMAGE_LENGTH,
+ EXPOSURE_TIME,
+ FNUMBER,
+ ISO_SPEED_RATINGS,
+ MAKE,
+ MODEL,
+ FLASH,
+ FOCAL_LENGTH,
+ GPS_LATITUDE,
+ GPS_LATITUDE_REF,
+ GPS_LONGITUDE,
+ GPS_LONGITUDE_REF,
+ ARTIST,
+ COPYRIGHT,
+ SOFTWARE,
+ IMAGE_DESCRIPTION;
+
+ public unowned string get_name_in_ifd(Ifd ifd);
+ public unowned string get_title_in_ifd(Ifd ifd);
+ public unowned string get_description_in_ifd(Ifd ifd);
+ public SupportLevel get_support_level_in_ifd(Ifd ifd, DataType data_type);
+ }
+}
diff --git a/vapi/libraw.vapi b/vapi/libraw.vapi
new file mode 100644
index 0000000..53f2461
--- /dev/null
+++ b/vapi/libraw.vapi
@@ -0,0 +1,268 @@
+/* Copyright 2010-2014 Yorba Foundation
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+[CCode (cprefix="libraw_", cheader_filename="libraw/libraw.h")]
+namespace LibRaw {
+
+[CCode (cname="LIBRAW_CHECK_VERSION")]
+public bool check_version(int major, int minor, int patch);
+
+public unowned string version();
+
+public unowned string versionNumber();
+
+[SimpleType]
+[CCode (cname="libraw_imgother_t")]
+public struct ImageOther {
+ public float iso_speed;
+ public float shutter;
+ public float aperture;
+ public float focal_len;
+ public time_t timestamp;
+ public uint shot_order;
+ public uint gpsdata[32];
+ public char desc[512];
+ public char artist[64];
+}
+
+[SimpleType]
+[CCode (cname="libraw_iparams_t")]
+public struct ImageParams {
+ public uint raw_count;
+ public uint dng_version;
+ public bool is_foveon;
+ public int colors;
+ public uint filters;
+
+ private char *make;
+ private char *model;
+ private char *cdesc;
+
+ public string get_make() {
+ return build_string(make, 64);
+ }
+
+ public string get_model() {
+ return build_string(model, 64);
+ }
+
+ public string get_cdesc() {
+ return build_string(cdesc, 5);
+ }
+
+ private static string build_string(char *array, int len) {
+ GLib.StringBuilder builder = new GLib.StringBuilder();
+ for (int ctr = 0; ctr < len; ctr++) {
+ if (array[ctr] != '\0')
+ builder.append_c(array[ctr]);
+ else
+ break;
+ }
+
+ return builder.str;
+ }
+}
+
+[SimpleType]
+[CCode (cname="libraw_image_sizes_t")]
+public struct ImageSizes {
+ public ushort raw_height;
+ public ushort raw_width;
+ public ushort height;
+ public ushort width;
+ public ushort top_margin;
+ public ushort left_margin;
+ public ushort iheight;
+ public ushort iwidth;
+ public double pixel_aspect;
+ public int flip;
+ public ushort right_margin;
+ public ushort bottom_margin;
+}
+
+[CCode (cname="enum LibRaw_constructor_flags", cprefix="LIBRAW_OPIONS_")]
+public enum Options {
+ [CCode (cname="LIBRAW_OPTIONS_NONE")]
+ NONE,
+ NO_MEMERR_CALLBACK,
+ NO_DATAERR_CALLBACK
+}
+
+[SimpleType]
+[CCode (cname="libraw_output_params_t")]
+public struct OutputParams {
+ public uint greybox[4];
+ public double aber[4];
+ public double gamm[6];
+ public float user_mul[4];
+ public uint shot_select;
+ public uint multi_out;
+ public float bright;
+ public float threshold;
+ public bool half_size;
+ public bool four_color_rgb;
+ public int highlight;
+ public bool use_auto_wb;
+ public bool use_camera_wb;
+ public bool use_camera_matrix;
+ public int output_color;
+ public int output_bps;
+ public bool output_tiff;
+ public int user_flip;
+ public int user_qual;
+ public int user_black;
+ public int user_sat;
+ public int med_passes;
+ public bool no_auto_bright;
+ public float auto_bright_thr;
+ public int use_fuji_rotate;
+ public int green_matching;
+
+ /* DCB parameters */
+ public int dcb_iterations;
+ public int dcb_enhance_fl;
+ public int fbdd_noiserd;
+
+ /* VCD parameters */
+ public int eeci_refine;
+ public int es_med_passes;
+ /* AMaZE*/
+ public int ca_correc;
+ public float cared;
+ public float cablue;
+ public int cfaline;
+ public float linenoise;
+ public int cfa_clean;
+ public float lclean;
+ public float cclean;
+ public int cfa_green;
+ public float green_thresh;
+ public int exp_correc;
+ public float exp_shift;
+ public float exp_preser;
+
+ public void set_chromatic_aberrations(double red_multiplier, double green_multiplier) {
+ aber[0] = red_multiplier;
+ aber[2] = green_multiplier;
+ }
+
+ public void set_gamma_curve(double power, double slope) {
+ gamm[0] = power;
+ gamm[1] = slope;
+ }
+}
+
+[Compact]
+[CCode (cname="libraw_processed_image_t", free_function="free")]
+public class ProcessedImage {
+ public ushort height;
+ public ushort width;
+ public ushort colors;
+ public ushort bits;
+ public uint data_size;
+ [CCode (array_length=false)]
+ public uint8[] data;
+}
+
+[Compact]
+[CCode (cname="libraw_data_t", cprefix="libraw_", free_function="libraw_close")]
+public class Processor {
+ public OutputParams params;
+
+ private Progress progress_flags;
+ private Warnings process_warnings;
+ private ImageParams idata;
+ private ImageSizes sizes;
+ private ImageOther other;
+ private Thumbnail thumbnail;
+
+ [CCode (cname="libraw_init")]
+ public Processor(Options flags = Options.NONE);
+
+ public Result adjust_sizes_info_only();
+ [CCode (cname="libraw_dcraw_document_mode_processing")]
+ public Result document_mode_processing();
+ public unowned ImageOther get_image_other() { return other; }
+ public unowned ImageParams get_image_params() { return idata; }
+ public Progress get_progress_flags() { return progress_flags; }
+ public Warnings get_process_warnings() { return process_warnings; }
+ public unowned ImageSizes get_sizes() { return sizes; }
+ public unowned Thumbnail get_thumbnail() { return thumbnail; }
+ [CCode (cname="libraw_dcraw_make_mem_image")]
+ public ProcessedImage make_mem_image(ref Result result);
+ [CCode (cname="libraw_dcraw_make_mem_thumb")]
+ public ProcessedImage make_mem_thumb(ref Result result);
+ public Result open_buffer(uint8[] buffer);
+ public Result open_file(string filename);
+ [CCode (cname="libraw_dcraw_process")]
+ public Result process();
+ [CCode (cname="libraw_dcraw_ppm_tiff_writer")]
+ public Result ppm_tiff_writer(string outfile);
+ public void recycle();
+ public Result rotate_fuji_raw();
+ [CCode (cname="libraw_dcraw_thumb_writer")]
+ public Result thumb_writer(string outfile);
+ public Result unpack();
+ public Result unpack_thumb();
+}
+
+[CCode (cname="enum LibRaw_progress", cprefix="LIBRAW_PROGRESS_")]
+public enum Progress {
+ START;
+
+ [CCode (cname="libraw_strprogress")]
+ public unowned string to_string();
+}
+
+[CCode (cname="enum LibRaw_errors", cprefix="LIBRAW_")]
+public enum Result {
+ SUCCESS,
+ UNSPECIFIED_ERROR,
+ FILE_UNSUPPORTED,
+ REQUEST_FOR_NONEXISTENT_IMAGE,
+ OUT_OF_ORDER_CALL,
+ NO_THUMBNAIL,
+ UNSUPPORTED_THUMBNAIL,
+ UNSUFFICIENT_MEMORY,
+ DATA_ERROR,
+ IO_ERROR,
+ CANCELLED_BY_CALLBACK,
+ BAD_CROP;
+
+ [CCode (cname="LIBRAW_FATAL_ERROR")]
+ public bool is_fatal_error();
+
+ [CCode (cname="libraw_strerror")]
+ public unowned string to_string();
+}
+
+[SimpleType]
+[CCode (cname="libraw_thumbnail_t")]
+public struct Thumbnail {
+ public ThumbnailFormat tformat;
+ public ushort twidth;
+ public ushort theight;
+ public uint tlength;
+ public int tcolors;
+ public int8 *thumb;
+}
+
+[CCode (cname="enum LibRaw_thumbnail_formats", cprefix="LIBRAW_THUMBNAIL_")]
+public enum ThumbnailFormat {
+ UNKNOWN,
+ JPEG,
+ BITMAP,
+ LAYER,
+ ROLLEI;
+}
+
+[CCode (cname="enum LibRaw_warnings", cprefix="LIBRAW_WARN_")]
+public enum Warnings {
+ NONE
+}
+
+}
+
diff --git a/vapi/unique-3.0.deps b/vapi/unique-3.0.deps
new file mode 100644
index 0000000..e762c58
--- /dev/null
+++ b/vapi/unique-3.0.deps
@@ -0,0 +1,8 @@
+gio-2.0
+cairo
+atk
+pango
+gdk-3.0
+gdk-pixbuf-2.0
+gtk+-3.0
+
diff --git a/vapi/unique-3.0.vapi b/vapi/unique-3.0.vapi
new file mode 100644
index 0000000..79f67c5
--- /dev/null
+++ b/vapi/unique-3.0.vapi
@@ -0,0 +1,94 @@
+/* unique-3.0.vapi generated by vapigen, do not modify. */
+/* Pulled from http://permalink.gmane.org/gmane.linux.redhat.fedora.devel/147876 */
+
+[CCode (cprefix = "Unique", lower_case_cprefix = "unique_")]
+namespace Unique {
+ [CCode (cheader_filename = "unique/uniqueapp.h")]
+ public class App : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public App (string name, string? startup_id);
+ public void add_command (string command_name, int command_id);
+ public bool is_running ();
+ public Unique.Response send_message (int command_id, Unique.MessageData? message_data);
+ public void watch_window (Gtk.Window window);
+ [CCode (has_construct_function = false)]
+ public App.with_commands (string name, string startup_id, ...);
+ [NoAccessorMethod]
+ public string name { owned get; construct; }
+ [NoAccessorMethod]
+ public Gdk.Screen screen { owned get; set construct; }
+ [NoAccessorMethod]
+ public string startup_id { owned get; construct; }
+ public virtual signal Unique.Response message_received (int command, Unique.MessageData message_data, uint time_);
+ }
+ [CCode (cheader_filename = "unique/uniquebackend.h")]
+ public class Backend : GLib.Object {
+ public weak string name;
+ public weak Unique.App parent;
+ public weak Gdk.Screen screen;
+ public weak string startup_id;
+ public uint workspace;
+ [CCode (has_construct_function = false)]
+ protected Backend ();
+ public static unowned Unique.Backend create ();
+ public unowned string get_name ();
+ public unowned Gdk.Screen get_screen ();
+ public unowned string get_startup_id ();
+ public uint get_workspace ();
+ public virtual bool request_name ();
+ public virtual Unique.Response send_message (int command_id, Unique.MessageData message_data, uint time_);
+ public void set_name (string name);
+ public void set_screen (Gdk.Screen screen);
+ public void set_startup_id (string startup_id);
+ }
+ [Compact]
+ [CCode (copy_function = "unique_message_data_copy", type_id = "UNIQUE_TYPE_MESSAGE_DATA", cheader_filename = "unique/uniquemessage.h")]
+ public class MessageData {
+ [CCode (has_construct_function = false)]
+ public MessageData ();
+ public unowned Unique.MessageData copy ();
+ public unowned uchar[] @get (size_t length);
+ public unowned string get_filename ();
+ public unowned Gdk.Screen get_screen ();
+ public unowned string get_startup_id ();
+ public unowned string get_text ();
+ public unowned string get_uris ();
+ public uint get_workspace ();
+ public void @set (uchar[] data, ssize_t length);
+ public void set_filename (string filename);
+ public bool set_text (string str, ssize_t length);
+ public bool set_uris (string uris);
+ }
+ [CCode (cprefix = "UNIQUE_", cheader_filename = "unique/uniqueenumtypes.h")]
+ public enum Command {
+ INVALID,
+ ACTIVATE,
+ NEW,
+ OPEN,
+ CLOSE
+ }
+ [CCode (cprefix = "UNIQUE_RESPONSE_", cheader_filename = "unique/uniqueenumtypes.h")]
+ public enum Response {
+ INVALID,
+ OK,
+ CANCEL,
+ FAIL,
+ PASSTHROUGH
+ }
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string API_VERSION_S;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string DEFAULT_BACKEND_S;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int MAJOR_VERSION;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int MICRO_VERSION;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int MINOR_VERSION;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string PROTOCOL_VERSION_S;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int VERSION_HEX;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string VERSION_S;
+}
diff --git a/vapi/unity.deps b/vapi/unity.deps
new file mode 100644
index 0000000..82127ef
--- /dev/null
+++ b/vapi/unity.deps
@@ -0,0 +1,6 @@
+glib-2.0
+gobject-2.0
+gio-2.0
+gio-unix-2.0
+dee-1.0
+Dbusmenu-0.4
diff --git a/vapi/unity.vapi b/vapi/unity.vapi
new file mode 100644
index 0000000..45147fb
--- /dev/null
+++ b/vapi/unity.vapi
@@ -0,0 +1,438 @@
+/* unity.vapi generated by valac 0.18.0, do not modify. */
+
+namespace Unity {
+ namespace IO {
+ [CCode (cheader_filename = "unity.h")]
+ public static string[] get_system_data_dirs ();
+ [CCode (cheader_filename = "unity.h")]
+ public static async GLib.FileInputStream? open_from_data_dirs (string filename) throws GLib.Error;
+ [CCode (cheader_filename = "unity.h")]
+ public static async GLib.FileInputStream? open_from_dirs (string filename, string[] dirs) throws GLib.Error;
+ [CCode (cheader_filename = "unity.h")]
+ public static async void read_stream_async (GLib.InputStream input, int io_priority = GLib.Priority.LOW, GLib.Cancellable? cancellable = null, out uint8[] data, out size_t size) throws GLib.IOError;
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class ActivationResponse : GLib.InitiallyUnowned {
+ public ActivationResponse (Unity.HandledType handled, string goto_uri = "");
+ public ActivationResponse.with_preview (Unity.Preview preview);
+ public string goto_uri { get; set construct; }
+ public Unity.HandledType handled { get; construct; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class AnnotatedIcon : GLib.Object {
+ public AnnotatedIcon (GLib.Icon base_icon);
+ public string to_string ();
+ public Unity.CategoryType category { get; set; }
+ public GLib.Icon icon { get; set; }
+ public string ribbon { get; set; }
+ public Unity.IconSizeHint size_hint { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class AppInfoManager : GLib.Object {
+ public void clear ();
+ public unowned string[]? get_categories (string id);
+ public static Unity.AppInfoManager get_default ();
+ [Deprecated (replacement = "AppInfoManager.get_default")]
+ public static Unity.AppInfoManager get_instance ();
+ public unowned string[]? get_keywords (string id);
+ public string? get_path (string id);
+ public GLib.AppInfo? lookup (string id);
+ public async GLib.AppInfo? lookup_async (string id) throws GLib.Error;
+ public signal void changed (string id, GLib.AppInfo? new_appinfo);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class ApplicationPreview : Unity.Preview {
+ public ApplicationPreview (string title, string subtitle, string description, GLib.Icon? icon, GLib.Icon? screenshot);
+ public void set_rating (float rating, uint num_ratings);
+ public GLib.Icon app_icon { get; set; }
+ public string copyright { get; set; }
+ public string last_update { get; set; }
+ public string license { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class AsyncPreview : Unity.Preview {
+ public AsyncPreview ();
+ [CCode (name = "unity_async_preview_preview_ready")]
+ public void emit_preview_ready (Unity.Preview? preview);
+ public AsyncPreview.with_cancellable (GLib.Cancellable cancellable);
+ public GLib.Cancellable cancellable { get; set construct; }
+ public signal void preview_ready (Unity.Preview? preview);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class Category : GLib.Object {
+ public Category (string name, GLib.Icon icon_hint, Unity.CategoryRenderer renderer = CategoryRenderer.VERTICAL_TILE);
+ public Unity.CategoryRenderer default_renderer { get; construct; }
+ public GLib.Icon? icon_hint { get; construct; }
+ public string name { get; construct; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class CheckOptionFilter : Unity.OptionsFilter {
+ public CheckOptionFilter (string id, string display_name, GLib.Icon? icon_hint = null, bool collapsed = false);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class CheckOptionFilterCompact : Unity.OptionsFilter {
+ public CheckOptionFilterCompact (string id, string display_name, GLib.Icon? icon_hint = null, bool collapsed = false);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public abstract class Filter : GLib.Object {
+ public Filter ();
+ public bool collapsed { get; construct; }
+ public string display_name { get; internal set construct; }
+ public bool filtering { get; internal set construct; }
+ public GLib.Icon? icon_hint { get; construct; }
+ public string id { get; construct; }
+ public Unity.FilterRenderer renderer { get; construct; }
+ public bool visible { get; set construct; }
+ public signal void changed ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class FilterOption : GLib.Object {
+ public FilterOption (string id, string display_name, GLib.Icon? icon_hint = null, bool active = false);
+ public bool active { get; internal set construct; }
+ public string display_name { get; construct; }
+ public GLib.Icon icon_hint { get; construct; }
+ public string id { get; construct; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class GenericPreview : Unity.Preview {
+ public GenericPreview (string title, string description, GLib.Icon? image);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class InfoHint : GLib.InitiallyUnowned {
+ public InfoHint (string id, string display_name, GLib.Icon? icon_hint, string data);
+ public InfoHint.with_variant (string id, string display_name, GLib.Icon? icon_hint, GLib.Variant data);
+ public GLib.Variant data { get; construct; }
+ public string display_name { get; construct; }
+ public GLib.Icon? icon_hint { get; construct; }
+ public string id { get; construct; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class Inspector : GLib.Object {
+ public static unowned Unity.Inspector get_default ();
+ public string? unity_bus_name { get; }
+ public bool unity_running { get; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class LauncherEntry : Dee.Serializable, GLib.Object {
+ public static Unity.LauncherEntry get_for_app_uri (string app_uri);
+ public static Unity.LauncherEntry get_for_desktop_file (string desktop_file);
+ public static Unity.LauncherEntry get_for_desktop_id (string desktop_id);
+ public string app_uri { get; set construct; }
+ public int64 count { get; set; }
+ public bool count_visible { get; set; }
+ public double progress { get; set; }
+ public bool progress_visible { get; set; }
+ public Dbusmenu.Menuitem? quicklist { get; set; }
+ public bool urgent { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class LauncherFavorites : GLib.Object {
+ public GLib.AppInfo[] enumerate_app_infos ();
+ public string[] enumerate_ids ();
+ public static unowned Unity.LauncherFavorites get_default ();
+ public bool has_app_id (string app_id);
+ public bool has_app_info (GLib.AppInfo appinfo);
+ public GLib.AppInfo? lookup (string app_id);
+ public signal void changed ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class Lens : GLib.Object {
+ public Lens (string dbus_path_, string id_);
+ public void add_local_scope (Unity.Scope scope);
+ public void export () throws GLib.IOError;
+ public bool active { get; private set; }
+ public GLib.List<Unity.Category> categories { get; set; }
+ public string dbus_path { get; construct; }
+ public bool exported { get; private set; }
+ public GLib.List<Unity.Filter> filters { get; set; }
+ public Unity.MergeStrategy global_merge_strategy { get; set; }
+ public string home_lens_default_name { get; set; }
+ public string id { get; construct; }
+ public Unity.MergeStrategy merge_strategy { get; set; }
+ public string search_hint { get; set; }
+ public bool search_in_global { get; set; }
+ public bool searching { get; private set; }
+ public string sources_display_name { get; set construct; }
+ public bool visible { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class LensSearch : GLib.InitiallyUnowned {
+ public LensSearch (string search_string, GLib.HashTable<string,GLib.Variant> hints, Dee.SerializableModel results_model);
+ [CCode (cname = "unity_lens_search_finished")]
+ public void emit_finished ();
+ public bool equals (Unity.LensSearch? other);
+ public void set_reply_hint (string key, GLib.Variant variant);
+ public GLib.HashTable<string,GLib.Variant> hints { get; construct; }
+ public Dee.SerializableModel results_model { get; construct; }
+ public string search_string { get; construct; }
+ [Signal (action = true)]
+ public signal void finished ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class MoviePreview : Unity.Preview {
+ public MoviePreview (string title, string subtitle, string description, GLib.Icon? image);
+ public void set_rating (float rating, uint num_ratings);
+ public string year { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class MultiRangeFilter : Unity.OptionsFilter {
+ public MultiRangeFilter (string id, string display_name, GLib.Icon? icon_hint = null, bool collapsed = false);
+ public Unity.FilterOption? get_first_active ();
+ public Unity.FilterOption? get_last_active ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class MusicPlayer : GLib.Object {
+ public MusicPlayer (string desktop);
+ public bool add_playlist (Unity.Playlist p);
+ public void edit_playlist_name (string id, string name);
+ public void export ();
+ public Unity.Playlist[] get_playlists ();
+ public bool remove_playlist (Unity.Playlist p);
+ public void unexport ();
+ public GLib.AppInfo app_info { get; construct; }
+ public bool can_go_next { get; set; }
+ public bool can_go_previous { get; set; }
+ public bool can_pause { get; set; }
+ public bool can_play { get; set; }
+ public Unity.Playlist current_playlist { get; set; }
+ public Unity.TrackMetadata current_track { get; set; }
+ public string desktop_file_name { get; construct; }
+ public bool is_blacklisted { get; set; }
+ public Unity.PlaybackState playback_state { get; set; }
+ public Dbusmenu.Menuitem? player_menu { get; set; }
+ public string title { get; set; }
+ public Dbusmenu.Menuitem? track_menu { get; set; }
+ public signal void activate_playlist (GLib.ObjectPath playlist_id);
+ public signal void next ();
+ public signal void play_pause ();
+ public signal void previous ();
+ public signal void raise ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class MusicPreview : Unity.Preview {
+ public enum TrackState {
+ STOPPED,
+ PLAYING,
+ PAUSED
+ }
+ public MusicPreview (string title, string subtitle, GLib.Icon? image);
+ public void add_track (Unity.TrackMetadata track);
+ public float current_progress { get; set; }
+ public Unity.MusicPreview.TrackState current_track_state { get; set; }
+ public string current_track_uri { get; set; }
+ public signal void pause (string uri);
+ public signal void play (string uri);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class OptionsFilter : Unity.Filter {
+ public enum SortType {
+ MANUAL,
+ DISPLAY_NAME,
+ ID
+ }
+ public GLib.List<Unity.FilterOption> options;
+ public OptionsFilter ();
+ public Unity.FilterOption add_option (string id, string display_name, GLib.Icon? icon_hint = null);
+ public Unity.FilterOption? get_option (string id);
+ public bool remove_option (string id);
+ public Unity.OptionsFilter.SortType sort_type { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class Playlist : GLib.Object {
+ public Playlist (string id);
+ public GLib.DateTime creation_date { get; set; }
+ public GLib.Icon icon { get; set; }
+ public string id { get; construct; }
+ public GLib.DateTime last_play_date { get; set; }
+ public GLib.DateTime modification_date { get; set; }
+ public string name { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class PreferencesManager : GLib.Object {
+ public enum RemoteContent {
+ ALL,
+ NONE
+ }
+ public static Unity.PreferencesManager get_default ();
+ public Unity.PreferencesManager.RemoteContent remote_content_search { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public abstract class Preview : GLib.Object, Dee.Serializable {
+ public Preview ();
+ public void add_action (Unity.PreviewAction action);
+ public void add_info (Unity.InfoHint info_hint);
+ public string description_markup { get; set; }
+ public GLib.Icon? image { get; set; }
+ public string image_source_uri { get; set; }
+ public string subtitle { get; set; }
+ public string title { get; set; }
+ public signal void closed ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class PreviewAction : GLib.Object, Dee.Serializable {
+ public PreviewAction (string id, string display_name, GLib.Icon? icon_hint);
+ public PreviewAction.with_layout_hint (string id, string display_name, GLib.Icon? icon_hint, Unity.LayoutHint layout);
+ public string display_name { get; construct; }
+ public string extra_text { get; set; }
+ public GLib.HashTable<string,GLib.Variant>? hints { get; }
+ public GLib.Icon? icon_hint { get; construct; }
+ public string id { get; construct; }
+ public Unity.LayoutHint layout_hint { get; construct; }
+ public signal Unity.ActivationResponse activated (string uri);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class RadioOptionFilter : Unity.OptionsFilter {
+ public RadioOptionFilter (string id, string display_name, GLib.Icon? icon_hint = null, bool collapsed = false);
+ public Unity.FilterOption? get_active_option ();
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class RatingsFilter : Unity.Filter {
+ public RatingsFilter (string id, string display_name, GLib.Icon? icon_hint = null, bool collapsed = false);
+ public float rating { get; internal set construct; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class Scope : GLib.Object {
+ public Scope (string dbus_path_);
+ public void export () throws GLib.IOError;
+ public Unity.Filter? get_filter (string id);
+ public void invalidate_search (Unity.SearchType search_type);
+ public void queue_search_changed (Unity.SearchType search_type);
+ public bool active { get; set; }
+ public string dbus_path { get; construct; }
+ public bool exported { get; private set; }
+ public GLib.List<Unity.Filter> filters { get; }
+ public Dee.SerializableModel global_results_model { get; }
+ public bool provides_personal_content { get; set; }
+ public Dee.SerializableModel results_model { get; }
+ public bool search_in_global { get; set; }
+ public Unity.OptionsFilter sources { get; internal set; }
+ public signal Unity.ActivationResponse? activate_uri (string uri);
+ public signal void active_sources_changed (string[] active_ids);
+ public signal void filters_changed ();
+ [Signal (detailed = true)]
+ public signal string generate_search_key (Unity.LensSearch search);
+ public signal Unity.Preview? preview_uri (string uri);
+ public signal void search_changed (Unity.LensSearch search, Unity.SearchType search_type, GLib.Cancellable cancellable);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class SocialPreview : Unity.Preview {
+ public class Comment : GLib.InitiallyUnowned {
+ public Comment (string id, string name, string text, string time);
+ public string id { get; construct; }
+ public string name { get; construct; }
+ public string text { get; construct; }
+ public string time { get; construct; }
+ }
+ public SocialPreview (string sender, string subtitle, string content, GLib.Icon? avatar);
+ public void add_comment (Unity.SocialPreview.Comment comment);
+ public GLib.Icon avatar { get; set; }
+ public string content { get; set; }
+ public string sender { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public class TrackMetadata : GLib.Object {
+ public TrackMetadata ();
+ public TrackMetadata.full (string uri, int track_no, string title, string artist, string album, uint length);
+ public string album { get; set; }
+ public GLib.Icon art_icon { get; set; }
+ public GLib.File art_location { get; set; }
+ public string artist { get; set; }
+ public uint length { get; set; }
+ public string title { get; set; }
+ public int track_no { get; set; }
+ public string uri { get; set; }
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public interface MergeStrategy : GLib.Object {
+ public abstract unowned Dee.ModelIter? merge_result (Dee.Model target, GLib.Variant[] row);
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public struct ActivePlaylistContainer {
+ public bool valid;
+ public Unity.PlaylistDetails details;
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public struct PlaylistDetails {
+ public GLib.ObjectPath id;
+ public string name;
+ public string icon_name;
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum CategoryRenderer {
+ VERTICAL_TILE,
+ HORIZONTAL_TILE,
+ LIST_TILE,
+ FLOW
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum CategoryType {
+ NONE,
+ APPLICATION,
+ BOOK,
+ MUSIC,
+ MOVIE,
+ GAMES,
+ ELECTRONICS,
+ COMPUTERS,
+ OFFICE,
+ HOME,
+ GARDEN,
+ PETS,
+ TOYS,
+ CHILDREN,
+ BABY,
+ CLOTHES,
+ SHOES,
+ WATCHES,
+ SPORTS,
+ OUTDOORS,
+ GROCERY,
+ HEALTH,
+ BEAUTY,
+ DIY,
+ TOOLS,
+ CAR,
+ N_CATEGORIES
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum FilterRenderer {
+ CHECK_OPTIONS,
+ RADIO_OPTIONS,
+ MULTIRANGE,
+ RATINGS,
+ CHECK_OPTIONS_COMPACT
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum HandledType {
+ NOT_HANDLED,
+ SHOW_DASH,
+ HIDE_DASH,
+ GOTO_DASH_URI,
+ SHOW_PREVIEW
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum IconSizeHint {
+ DEFAULT,
+ SMALL,
+ LARGE
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum LayoutHint {
+ NONE,
+ LEFT,
+ RIGHT,
+ TOP,
+ BOTTOM
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum PlaybackState {
+ PLAYING,
+ PAUSED
+ }
+ [CCode (cheader_filename = "unity.h")]
+ public enum SearchType {
+ DEFAULT,
+ GLOBAL,
+ N_TYPES
+ }
+}
diff --git a/vapi/webkitgtk-3.0.deps b/vapi/webkitgtk-3.0.deps
new file mode 100644
index 0000000..91b1dfe
--- /dev/null
+++ b/vapi/webkitgtk-3.0.deps
@@ -0,0 +1,8 @@
+atk
+gio-2.0
+cairo
+pango
+gdk-pixbuf-2.0
+gdk-3.0
+gtk+-3.0
+libsoup-2.4
diff --git a/vapi/webkitgtk-3.0.vapi b/vapi/webkitgtk-3.0.vapi
new file mode 100644
index 0000000..9e0d347
--- /dev/null
+++ b/vapi/webkitgtk-3.0.vapi
@@ -0,0 +1,653 @@
+/* webkit-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "WebKit", lower_case_cprefix = "webkit_")]
+namespace WebKit {
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class Download : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public Download (WebKit.NetworkRequest request);
+ public void cancel ();
+ public uint64 get_current_size ();
+ public unowned string get_destination_uri ();
+ public double get_elapsed_time ();
+ public unowned WebKit.NetworkRequest get_network_request ();
+ public unowned WebKit.NetworkResponse get_network_response ();
+ public double get_progress ();
+ public WebKit.DownloadStatus get_status ();
+ public unowned string get_suggested_filename ();
+ public uint64 get_total_size ();
+ public unowned string get_uri ();
+ public void set_destination_uri (string destination_uri);
+ public void start ();
+ public uint64 current_size { get; }
+ public string destination_uri { get; set; }
+ public WebKit.NetworkRequest network_request { get; construct; }
+ public WebKit.NetworkResponse network_response { get; construct; }
+ public double progress { get; }
+ public WebKit.DownloadStatus status { get; }
+ public string suggested_filename { get; }
+ public uint64 total_size { get; }
+ public virtual signal bool error (int p0, int p1, string p2);
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class GeolocationPolicyDecision : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected GeolocationPolicyDecision ();
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class HitTestResult : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected HitTestResult ();
+ [NoAccessorMethod]
+ public WebKit.HitTestResultContext context { get; construct; }
+ [NoAccessorMethod]
+ public string image_uri { owned get; construct; }
+ [NoAccessorMethod]
+ public string link_uri { owned get; construct; }
+ [NoAccessorMethod]
+ public string media_uri { owned get; construct; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class NetworkRequest : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public NetworkRequest (string uri);
+ public unowned Soup.Message get_message ();
+ public unowned string get_uri ();
+ public void set_uri (string uri);
+ public Soup.Message message { get; construct; }
+ public string uri { get; set; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class NetworkResponse : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public NetworkResponse (string uri);
+ public unowned Soup.Message get_message ();
+ public unowned string get_uri ();
+ public void set_uri (string uri);
+ public Soup.Message message { get; construct; }
+ public string uri { get; set; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class SecurityOrigin : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected SecurityOrigin ();
+ public unowned GLib.List<WebKit.WebDatabase> get_all_web_databases ();
+ public unowned string get_host ();
+ public uint get_port ();
+ public unowned string get_protocol ();
+ public uint64 get_web_database_quota ();
+ public uint64 get_web_database_usage ();
+ public void set_web_database_quota (uint64 quota);
+ public string host { get; }
+ public uint port { get; }
+ public string protocol { get; }
+ public uint64 web_database_quota { get; set; }
+ public uint64 web_database_usage { get; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class SoupAuthDialog : GLib.Object, Soup.SessionFeature {
+ [CCode (has_construct_function = false)]
+ protected SoupAuthDialog ();
+ public virtual signal unowned Gtk.Widget current_toplevel (Soup.Message message);
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebBackForwardList : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected WebBackForwardList ();
+ public void add_item (WebKit.WebHistoryItem history_item);
+ public void clear ();
+ public bool contains_item (WebKit.WebHistoryItem history_item);
+ public unowned WebKit.WebHistoryItem get_back_item ();
+ public int get_back_length ();
+ public unowned GLib.List<WebKit.WebHistoryItem> get_back_list_with_limit (int limit);
+ public unowned WebKit.WebHistoryItem get_current_item ();
+ public unowned WebKit.WebHistoryItem get_forward_item ();
+ public int get_forward_length ();
+ public unowned GLib.List<WebKit.WebHistoryItem> get_forward_list_with_limit (int limit);
+ public int get_limit ();
+ public unowned WebKit.WebHistoryItem get_nth_item (int index);
+ public void go_back ();
+ public void go_forward ();
+ public void go_to_item (WebKit.WebHistoryItem history_item);
+ public void set_limit (int limit);
+ [CCode (has_construct_function = false)]
+ public WebBackForwardList.with_web_view (WebKit.WebView web_view);
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebDataSource : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public WebDataSource ();
+ public unowned GLib.StringBuilder get_data ();
+ public unowned string get_encoding ();
+ public unowned WebKit.NetworkRequest get_initial_request ();
+ public unowned WebKit.WebResource get_main_resource ();
+ public unowned WebKit.NetworkRequest get_request ();
+ public unowned GLib.List<WebKit.WebResource> get_subresources ();
+ public unowned string get_unreachable_uri ();
+ public unowned WebKit.WebFrame get_web_frame ();
+ public bool is_loading ();
+ [CCode (has_construct_function = false)]
+ public WebDataSource.with_request (WebKit.NetworkRequest request);
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebDatabase : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected WebDatabase ();
+ public unowned string get_display_name ();
+ public uint64 get_expected_size ();
+ public unowned string get_filename ();
+ public unowned string get_name ();
+ public unowned WebKit.SecurityOrigin get_security_origin ();
+ public uint64 get_size ();
+ public void remove ();
+ public string display_name { get; }
+ public uint64 expected_size { get; }
+ public string filename { get; }
+ public string name { get; construct; }
+ public WebKit.SecurityOrigin security_origin { get; construct; }
+ public uint64 size { get; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebFrame : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public WebFrame (WebKit.WebView web_view);
+ public unowned WebKit.WebFrame find_frame (string name);
+ public unowned WebKit.WebDataSource get_data_source ();
+ public Gtk.PolicyType get_horizontal_scrollbar_policy ();
+ public WebKit.LoadStatus get_load_status ();
+ public unowned string get_name ();
+ public unowned WebKit.NetworkResponse get_network_response ();
+ public unowned WebKit.WebFrame get_parent ();
+ public unowned WebKit.WebDataSource get_provisional_data_source ();
+ public unowned WebKit.SecurityOrigin get_security_origin ();
+ public unowned string get_title ();
+ public unowned string get_uri ();
+ public Gtk.PolicyType get_vertical_scrollbar_policy ();
+ public unowned WebKit.WebView get_web_view ();
+ public void load_alternate_string (string content, string base_url, string unreachable_url);
+ public void load_request (WebKit.NetworkRequest request);
+ public void load_string (string content, string mime_type, string encoding, string base_uri);
+ public void load_uri (string uri);
+ public void print ();
+ public Gtk.PrintOperationResult print_full (Gtk.PrintOperation operation, Gtk.PrintOperationAction action) throws GLib.Error;
+ public void reload ();
+ public void stop_loading ();
+ public Gtk.PolicyType horizontal_scrollbar_policy { get; }
+ public WebKit.LoadStatus load_status { get; }
+ public string name { get; }
+ public string title { get; }
+ public string uri { get; }
+ public Gtk.PolicyType vertical_scrollbar_policy { get; }
+ public virtual signal void cleared ();
+ public virtual signal void hovering_over_link (string p0, string p1);
+ public virtual signal void load_committed ();
+ public virtual signal void load_done (bool p0);
+ public virtual signal bool scrollbars_policy_changed ();
+ public virtual signal void title_changed (string p0);
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebHistoryItem : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public WebHistoryItem ();
+ public unowned WebKit.WebHistoryItem copy ();
+ public unowned string get_alternate_title ();
+ public double get_last_visited_time ();
+ public unowned string get_original_uri ();
+ public unowned string get_title ();
+ public unowned string get_uri ();
+ public void set_alternate_title (string title);
+ [CCode (has_construct_function = false)]
+ public WebHistoryItem.with_data (string uri, string title);
+ public string alternate_title { get; set; }
+ public double last_visited_time { get; }
+ public string original_uri { get; }
+ public string title { get; }
+ public string uri { get; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebInspector : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected WebInspector ();
+ public void close ();
+ public unowned string get_inspected_uri ();
+ public unowned WebKit.WebView get_web_view ();
+ public void inspect_coordinates (double x, double y);
+ public void show ();
+ public string inspected_uri { get; }
+ [NoAccessorMethod]
+ public bool javascript_profiling_enabled { get; set; }
+ [NoAccessorMethod]
+ public bool timeline_profiling_enabled { get; set; }
+ public WebKit.WebView web_view { get; }
+ public virtual signal bool attach_window ();
+ public virtual signal bool close_window ();
+ public virtual signal bool detach_window ();
+ public virtual signal void finished ();
+ public virtual signal unowned WebKit.WebView inspect_web_view (WebKit.WebView p0);
+ public virtual signal bool show_window ();
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebNavigationAction : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected WebNavigationAction ();
+ public int get_button ();
+ public int get_modifier_state ();
+ public unowned string get_original_uri ();
+ public WebKit.WebNavigationReason get_reason ();
+ public unowned string get_target_frame ();
+ public void set_original_uri (string originalUri);
+ public void set_reason (WebKit.WebNavigationReason reason);
+ public int button { get; construct; }
+ public int modifier_state { get; construct; }
+ public string original_uri { get; set construct; }
+ public WebKit.WebNavigationReason reason { get; set construct; }
+ public string target_frame { get; construct; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebPolicyDecision : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected WebPolicyDecision ();
+ public void download ();
+ public void ignore ();
+ public void use ();
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebResource : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public WebResource (string data, ssize_t size, string uri, string mime_type, string encoding, string frame_name);
+ public unowned GLib.StringBuilder get_data ();
+ public unowned string get_encoding ();
+ public unowned string get_frame_name ();
+ public unowned string get_mime_type ();
+ public unowned string get_uri ();
+ public string encoding { get; }
+ public string frame_name { get; }
+ public string mime_type { get; }
+ public string uri { get; construct; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebSettings : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public WebSettings ();
+ public WebKit.WebSettings copy ();
+ public unowned string get_user_agent ();
+ [NoAccessorMethod]
+ public bool auto_load_images { get; set construct; }
+ [NoAccessorMethod]
+ public bool auto_resize_window { get; set construct; }
+ [NoAccessorMethod]
+ public bool auto_shrink_images { get; set construct; }
+ [NoAccessorMethod]
+ public string cursive_font_family { owned get; set construct; }
+ [NoAccessorMethod]
+ public string default_encoding { owned get; set construct; }
+ [NoAccessorMethod]
+ public string default_font_family { owned get; set construct; }
+ [NoAccessorMethod]
+ public int default_font_size { get; set construct; }
+ [NoAccessorMethod]
+ public int default_monospace_font_size { get; set construct; }
+ [NoAccessorMethod]
+ public WebKit.EditingBehavior editing_behavior { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_caret_browsing { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_default_context_menu { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_developer_extras { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_dom_paste { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_file_access_from_file_uris { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_html5_database { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_html5_local_storage { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_java_applet { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_offline_web_application_cache { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_page_cache { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_plugins { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_private_browsing { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_scripts { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_site_specific_quirks { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_spatial_navigation { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_spell_checking { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_universal_access_from_file_uris { get; set construct; }
+ [NoAccessorMethod]
+ public bool enable_xss_auditor { get; set construct; }
+ [NoAccessorMethod]
+ public bool enforce_96_dpi { get; set construct; }
+ [NoAccessorMethod]
+ public string fantasy_font_family { owned get; set construct; }
+ [NoAccessorMethod]
+ public bool javascript_can_access_clipboard { get; set construct; }
+ [NoAccessorMethod]
+ public bool javascript_can_open_windows_automatically { get; set construct; }
+ [NoAccessorMethod]
+ public int minimum_font_size { get; set construct; }
+ [NoAccessorMethod]
+ public int minimum_logical_font_size { get; set construct; }
+ [NoAccessorMethod]
+ public string monospace_font_family { owned get; set construct; }
+ [NoAccessorMethod]
+ public bool print_backgrounds { get; set construct; }
+ [NoAccessorMethod]
+ public bool resizable_text_areas { get; set construct; }
+ [NoAccessorMethod]
+ public string sans_serif_font_family { owned get; set construct; }
+ [NoAccessorMethod]
+ public string serif_font_family { owned get; set construct; }
+ [NoAccessorMethod]
+ public string spell_checking_languages { owned get; set construct; }
+ [NoAccessorMethod]
+ public bool tab_key_cycles_through_elements { get; set construct; }
+ [NoAccessorMethod]
+ public string user_agent { owned get; set construct; }
+ [NoAccessorMethod]
+ public string user_stylesheet_uri { owned get; set construct; }
+ [NoAccessorMethod]
+ public float zoom_step { get; set construct; }
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebView : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+ [CCode (type = "GtkWidget*", has_construct_function = false)]
+ public WebView ();
+ public bool can_copy_clipboard ();
+ public bool can_cut_clipboard ();
+ public bool can_go_back ();
+ public bool can_go_back_or_forward (int steps);
+ public bool can_go_forward ();
+ public bool can_paste_clipboard ();
+ public bool can_redo ();
+ public bool can_show_mime_type (string mime_type);
+ public bool can_undo ();
+ [NoWrapper]
+ public virtual unowned string choose_file (WebKit.WebFrame frame, string old_file);
+ public void delete_selection ();
+ public void execute_script (string script);
+ public unowned WebKit.WebBackForwardList get_back_forward_list ();
+ public unowned Gtk.TargetList get_copy_target_list ();
+ public unowned string get_custom_encoding ();
+ public bool get_editable ();
+ public unowned string get_encoding ();
+ public unowned WebKit.WebFrame get_focused_frame ();
+ public bool get_full_content_zoom ();
+ public unowned WebKit.HitTestResult get_hit_test_result (Gdk.EventButton event);
+ public unowned string get_icon_uri ();
+ public unowned WebKit.WebInspector get_inspector ();
+ public WebKit.LoadStatus get_load_status ();
+ public unowned WebKit.WebFrame get_main_frame ();
+ public unowned Gtk.TargetList get_paste_target_list ();
+ public double get_progress ();
+ public unowned WebKit.WebSettings get_settings ();
+ public unowned string get_title ();
+ public bool get_transparent ();
+ public unowned string get_uri ();
+ public bool get_view_source_mode ();
+ public unowned WebKit.WebWindowFeatures get_window_features ();
+ public float get_zoom_level ();
+ public void go_back ();
+ public void go_back_or_forward (int steps);
+ public void go_forward ();
+ public bool go_to_back_forward_item (WebKit.WebHistoryItem item);
+ public bool has_selection ();
+ public void load_html_string (string content, string base_uri);
+ public void load_request (WebKit.NetworkRequest request);
+ public void load_string (string content, string mime_type, string encoding, string base_uri);
+ public void load_uri (string uri);
+ public uint mark_text_matches (string str, bool case_sensitive, uint limit);
+ public void open (string uri);
+ public void reload ();
+ public void reload_bypass_cache ();
+ public bool search_text (string text, bool case_sensitive, bool forward, bool wrap);
+ public void set_custom_encoding (string encoding);
+ public void set_editable (bool flag);
+ public void set_full_content_zoom (bool full_content_zoom);
+ public void set_highlight_text_matches (bool highlight);
+ public void set_maintains_back_forward_list (bool flag);
+ public void set_settings (WebKit.WebSettings settings);
+ public void set_transparent (bool flag);
+ public void set_view_source_mode (bool view_source_mode);
+ public void set_zoom_level (float zoom_level);
+ public void stop_loading ();
+ public void unmark_text_matches ();
+ public void zoom_in ();
+ public void zoom_out ();
+ public Gtk.TargetList copy_target_list { get; }
+ public string custom_encoding { get; set; }
+ public bool editable { get; set; }
+ public string encoding { get; }
+ public bool full_content_zoom { get; set; }
+ public string icon_uri { get; }
+ [NoAccessorMethod]
+ public Gtk.IMContext im_context { owned get; }
+ public WebKit.LoadStatus load_status { get; }
+ public Gtk.TargetList paste_target_list { get; }
+ public double progress { get; }
+ public WebKit.WebSettings settings { get; set; }
+ public string title { get; }
+ public bool transparent { get; set; }
+ public string uri { get; }
+ [NoAccessorMethod]
+ public WebKit.WebInspector web_inspector { owned get; }
+ [NoAccessorMethod]
+ public WebKit.WebWindowFeatures window_features { owned get; set; }
+ public float zoom_level { get; set; }
+ public virtual signal bool close_web_view ();
+ public virtual signal bool console_message (string message, int line_number, string source_id);
+ [HasEmitter]
+ public virtual signal void copy_clipboard ();
+ public virtual signal unowned Gtk.Widget create_plugin_widget (string p0, string p1, GLib.HashTable p2);
+ public virtual signal WebKit.WebView create_web_view (WebKit.WebFrame web_frame);
+ [HasEmitter]
+ public virtual signal void cut_clipboard ();
+ public virtual signal void database_quota_exceeded (GLib.Object p0, GLib.Object p1);
+ public virtual signal void document_load_finished (WebKit.WebFrame p0);
+ public virtual signal bool download_requested (GLib.Object p0);
+ public virtual signal void geolocation_policy_decision_cancelled (WebKit.WebFrame p0);
+ public virtual signal bool geolocation_policy_decision_requested (WebKit.WebFrame p0, WebKit.GeolocationPolicyDecision p1);
+ public virtual signal void hovering_over_link (string? p0, string p1);
+ public virtual signal void icon_loaded (string p0);
+ public virtual signal void load_committed (WebKit.WebFrame p0);
+ public virtual signal bool load_error (WebKit.WebFrame p0, string p1, GLib.Error p2);
+ public virtual signal void load_finished (WebKit.WebFrame p0);
+ public virtual signal void load_progress_changed (int p0);
+ public virtual signal void load_started (WebKit.WebFrame p0);
+ public virtual signal bool mime_type_policy_decision_requested (WebKit.WebFrame p0, WebKit.NetworkRequest p1, string p2, WebKit.WebPolicyDecision p3);
+ [HasEmitter]
+ public virtual signal bool move_cursor (Gtk.MovementStep step, int count);
+ public virtual signal bool navigation_policy_decision_requested (WebKit.WebFrame p0, WebKit.NetworkRequest p1, WebKit.WebNavigationAction p2, WebKit.WebPolicyDecision p3);
+ public virtual signal WebKit.NavigationResponse navigation_requested (WebKit.WebFrame frame, WebKit.NetworkRequest request);
+ public virtual signal bool new_window_policy_decision_requested (WebKit.WebFrame p0, WebKit.NetworkRequest p1, WebKit.WebNavigationAction p2, WebKit.WebPolicyDecision p3);
+ [HasEmitter]
+ public virtual signal void paste_clipboard ();
+ public virtual signal void populate_popup (Gtk.Menu p0);
+ public virtual signal bool print_requested (WebKit.WebFrame p0);
+ [HasEmitter]
+ public virtual signal void redo ();
+ public virtual signal void resource_request_starting (WebKit.WebFrame p0, WebKit.WebResource p1, WebKit.NetworkRequest p2, WebKit.NetworkResponse p3);
+ public virtual signal bool script_alert (WebKit.WebFrame frame, string alert_message);
+ public virtual signal bool script_confirm (WebKit.WebFrame frame, string confirm_message, void* did_confirm);
+ public virtual signal bool script_prompt (WebKit.WebFrame frame, string message, string default_value, void* value);
+ [HasEmitter]
+ public virtual signal void select_all ();
+ public virtual signal void selection_changed ();
+ public virtual signal void set_scroll_adjustments (Gtk.Adjustment hadjustment, Gtk.Adjustment vadjustment);
+ public virtual signal void status_bar_text_changed (string p0);
+ public virtual signal void title_changed (WebKit.WebFrame p0, string p1);
+ [HasEmitter]
+ public virtual signal void undo ();
+ public virtual signal bool web_view_ready ();
+ public virtual signal void window_object_cleared (WebKit.WebFrame frame, void* context, void* window_object);
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public class WebWindowFeatures : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public WebWindowFeatures ();
+ public bool equal (WebKit.WebWindowFeatures features2);
+ [NoAccessorMethod]
+ public bool fullscreen { get; set construct; }
+ [NoAccessorMethod]
+ public int height { get; set construct; }
+ [NoAccessorMethod]
+ public bool locationbar_visible { get; set construct; }
+ [NoAccessorMethod]
+ public bool menubar_visible { get; set construct; }
+ [NoAccessorMethod]
+ public bool scrollbar_visible { get; set construct; }
+ [NoAccessorMethod]
+ public bool statusbar_visible { get; set construct; }
+ [NoAccessorMethod]
+ public bool toolbar_visible { get; set construct; }
+ [NoAccessorMethod]
+ public int width { get; set construct; }
+ [NoAccessorMethod]
+ public int x { get; set construct; }
+ [NoAccessorMethod]
+ public int y { get; set construct; }
+ }
+ [CCode (cprefix = "WEBKIT_CACHE_MODEL_", cheader_filename = "webkit/webkit.h")]
+ public enum CacheModel {
+ DOCUMENT_VIEWER,
+ WEB_BROWSER
+ }
+ [CCode (cprefix = "WEBKIT_DOWNLOAD_ERROR_", cheader_filename = "webkit/webkit.h")]
+ public enum DownloadError {
+ CANCELLED_BY_USER,
+ DESTINATION,
+ NETWORK
+ }
+ [CCode (cprefix = "WEBKIT_DOWNLOAD_STATUS_", cheader_filename = "webkit/webkit.h")]
+ public enum DownloadStatus {
+ ERROR,
+ CREATED,
+ STARTED,
+ CANCELLED,
+ FINISHED
+ }
+ [CCode (cprefix = "WEBKIT_EDITING_BEHAVIOR_", cheader_filename = "webkit/webkit.h")]
+ public enum EditingBehavior {
+ MAC,
+ WINDOWS
+ }
+ [CCode (cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", cheader_filename = "webkit/webkit.h")]
+ [Flags]
+ public enum HitTestResultContext {
+ DOCUMENT,
+ LINK,
+ IMAGE,
+ MEDIA,
+ SELECTION,
+ EDITABLE
+ }
+ [CCode (cprefix = "WEBKIT_LOAD_", cheader_filename = "webkit/webkit.h")]
+ public enum LoadStatus {
+ PROVISIONAL,
+ COMMITTED,
+ FINISHED,
+ FIRST_VISUALLY_NON_EMPTY_LAYOUT,
+ FAILED
+ }
+ [CCode (cprefix = "WEBKIT_NAVIGATION_RESPONSE_", cheader_filename = "webkit/webkit.h")]
+ public enum NavigationResponse {
+ ACCEPT,
+ IGNORE,
+ DOWNLOAD
+ }
+ [CCode (cprefix = "WEBKIT_NETWORK_ERROR_", cheader_filename = "webkit/webkit.h")]
+ public enum NetworkError {
+ FAILED,
+ TRANSPORT,
+ UNKNOWN_PROTOCOL,
+ CANCELLED,
+ FILE_DOES_NOT_EXIST
+ }
+ [CCode (cprefix = "WEBKIT_PLUGIN_ERROR_", cheader_filename = "webkit/webkit.h")]
+ public enum PluginError {
+ FAILED,
+ CANNOT_FIND_PLUGIN,
+ CANNOT_LOAD_PLUGIN,
+ JAVA_UNAVAILABLE,
+ CONNECTION_CANCELLED,
+ WILL_HANDLE_LOAD
+ }
+ [CCode (cprefix = "WEBKIT_POLICY_ERROR_", cheader_filename = "webkit/webkit.h")]
+ public enum PolicyError {
+ FAILED,
+ CANNOT_SHOW_MIME_TYPE,
+ CANNOT_SHOW_URL,
+ FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
+ CANNOT_USE_RESTRICTED_PORT
+ }
+ [CCode (cprefix = "WEBKIT_WEB_NAVIGATION_REASON_", cheader_filename = "webkit/webkit.h")]
+ public enum WebNavigationReason {
+ LINK_CLICKED,
+ FORM_SUBMITTED,
+ BACK_FORWARD,
+ RELOAD,
+ FORM_RESUBMITTED,
+ OTHER
+ }
+ [CCode (cprefix = "WEBKIT_WEB_VIEW_TARGET_INFO_", cheader_filename = "webkit/webkit.h")]
+ public enum WebViewTargetInfo {
+ HTML,
+ TEXT,
+ IMAGE,
+ URI_LIST,
+ NETSCAPE_URL
+ }
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public const int MAJOR_VERSION;
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public const int MICRO_VERSION;
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public const int MINOR_VERSION;
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public const int USER_AGENT_MAJOR_VERSION;
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public const int USER_AGENT_MINOR_VERSION;
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static bool check_version (uint major, uint minor, uint micro);
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static void geolocation_policy_allow (WebKit.GeolocationPolicyDecision decision);
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static void geolocation_policy_deny (WebKit.GeolocationPolicyDecision decision);
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static WebKit.CacheModel get_cache_model ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static unowned Soup.Session get_default_session ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static uint64 get_default_web_database_quota ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static unowned string get_web_database_directory_path ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static uint major_version ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static uint micro_version ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static uint minor_version ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static GLib.Quark network_error_quark ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static GLib.Quark plugin_error_quark ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static GLib.Quark policy_error_quark ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static void remove_all_web_databases ();
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static void set_cache_model (WebKit.CacheModel cache_model);
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static void set_default_web_database_quota (uint64 defaultQuota);
+ [CCode (cheader_filename = "webkit/webkit.h")]
+ public static void set_web_database_directory_path (string path);
+}