1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034
|
/* gio-2.0.vapi generated by lt-vapigen, do not modify. */
[CCode (cprefix = "G", lower_case_cprefix = "g_")]
namespace GLib {
[CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
public enum DataStreamByteOrder {
BIG_ENDIAN,
LITTLE_ENDIAN,
HOST_ENDIAN
}
[CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
public enum DataStreamNewlineType {
LF,
CR,
CR_LF,
ANY
}
[CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
public enum FileAttributeStatus {
UNSET,
SET,
ERROR_SETTING
}
[CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
public enum FileAttributeType {
INVALID,
STRING,
BYTE_STRING,
BOOLEAN,
UINT32,
INT32,
UINT64,
INT64,
OBJECT
}
[CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
public enum FileMonitorEvent {
CHANGED,
CHANGES_DONE_HINT,
DELETED,
CREATED,
ATTRIBUTE_CHANGED,
PRE_UNMOUNT,
UNMOUNTED
}
[CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
public enum FileType {
UNKNOWN,
REGULAR,
DIRECTORY,
SYMBOLIC_LINK,
SPECIAL,
SHORTCUT,
MOUNTABLE
}
[CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
public enum FilesystemPreviewType {
IF_ALWAYS,
IF_LOCAL,
NEVER
}
[CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
public enum MountMountFlags {
NONE
}
[CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
public enum MountOperationResult {
HANDLED,
ABORTED,
UNHANDLED
}
[CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
public enum PasswordSave {
NEVER,
FOR_SESSION,
PERMANENTLY
}
[CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
[Flags]
public enum AppInfoCreateFlags {
NONE,
NEEDS_TERMINAL,
SUPPORTS_URIS
}
[CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
[Flags]
public enum AskPasswordFlags {
NEED_PASSWORD,
NEED_USERNAME,
NEED_DOMAIN,
SAVING_SUPPORTED,
ANONYMOUS_SUPPORTED
}
[CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
[Flags]
public enum FileAttributeInfoFlags {
NONE,
COPY_WITH_FILE,
COPY_WHEN_MOVED
}
[CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
[Flags]
public enum FileCopyFlags {
NONE,
OVERWRITE,
BACKUP,
NOFOLLOW_SYMLINKS,
ALL_METADATA,
NO_FALLBACK_FOR_MOVE
}
[CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
[Flags]
public enum FileCreateFlags {
NONE,
PRIVATE
}
[CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
[Flags]
public enum FileMonitorFlags {
NONE,
WATCH_MOUNTS
}
[CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
[Flags]
public enum FileQueryInfoFlags {
NONE,
NOFOLLOW_SYMLINKS
}
[CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
[Flags]
public enum MountUnmountFlags {
NONE,
FORCE
}
[CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
[Flags]
public enum OutputStreamSpliceFlags {
NONE,
CLOSE_SOURCE,
CLOSE_TARGET
}
[CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
public errordomain IOError {
FAILED,
NOT_FOUND,
EXISTS,
IS_DIRECTORY,
NOT_DIRECTORY,
NOT_EMPTY,
NOT_REGULAR_FILE,
NOT_SYMBOLIC_LINK,
NOT_MOUNTABLE_FILE,
FILENAME_TOO_LONG,
INVALID_FILENAME,
TOO_MANY_LINKS,
NO_SPACE,
INVALID_ARGUMENT,
PERMISSION_DENIED,
NOT_SUPPORTED,
NOT_MOUNTED,
ALREADY_MOUNTED,
CLOSED,
CANCELLED,
PENDING,
READ_ONLY,
CANT_CREATE_BACKUP,
WRONG_ETAG,
TIMED_OUT,
WOULD_RECURSE,
BUSY,
WOULD_BLOCK,
HOST_NOT_FOUND,
WOULD_MERGE,
FAILED_HANDLED,
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class FileAttributeInfo {
public weak string name;
public GLib.FileAttributeType type;
public GLib.FileAttributeInfoFlags flags;
}
[Compact]
[CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", cheader_filename = "gio/gio.h")]
public class FileAttributeInfoList {
public weak GLib.FileAttributeInfo infos;
public int n_infos;
public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
public weak GLib.FileAttributeInfoList dup ();
public weak GLib.FileAttributeInfo lookup (string name);
public FileAttributeInfoList ();
}
[Compact]
[CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", cheader_filename = "gio/gio.h")]
public class FileAttributeMatcher {
public bool enumerate_namespace (string ns);
public weak string enumerate_next ();
public bool matches (string attribute);
public bool matches_only (string attribute);
public FileAttributeMatcher (string attributes);
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class FileIconClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class FileInfoClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOExtension {
public weak string get_name ();
public int get_priority ();
public weak GLib.TypeClass ref_class ();
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOExtensionPoint {
public weak GLib.IOExtension get_extension_by_name (string name);
public weak GLib.List get_extensions ();
public GLib.Type get_required_type ();
public static weak GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
public static weak GLib.IOExtensionPoint lookup (string name);
public static weak GLib.IOExtensionPoint register (string name);
public void set_required_type (GLib.Type type);
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOModuleClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOSchedulerJob {
public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify notify);
public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify notify);
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class SimpleAsyncResultClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class ThemedIconClass {
}
[CCode (cheader_filename = "gio/gio.h")]
public class AppLaunchContext : GLib.Object {
public AppLaunchContext ();
public virtual weak string get_display (GLib.AppInfo info, GLib.List files);
public virtual weak string get_startup_notify_id (GLib.AppInfo info, GLib.List files);
public virtual void launch_failed (string startup_notify_id);
}
[CCode (cheader_filename = "gio/gio.h")]
public class BufferedInputStream : GLib.FilterInputStream {
public ulong get_available ();
public ulong get_buffer_size ();
public BufferedInputStream (GLib.InputStream base_stream);
public BufferedInputStream.sized (GLib.InputStream base_stream, ulong size);
public ulong peek (void* buffer, ulong offset, ulong count);
public void* peek_buffer (ulong count);
public int read_byte (GLib.Cancellable? cancellable) throws GLib.Error;
public void set_buffer_size (ulong size);
public virtual long fill (long count, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void fill_async (long count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual long fill_finish (GLib.AsyncResult _result) throws GLib.Error;
public uint buffer_size { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class BufferedOutputStream : GLib.FilterOutputStream {
public bool get_auto_grow ();
public ulong get_buffer_size ();
public BufferedOutputStream (GLib.OutputStream base_stream);
public BufferedOutputStream.sized (GLib.OutputStream base_stream, ulong size);
public void set_auto_grow (bool auto_grow);
public void set_buffer_size (ulong size);
public bool auto_grow { get; set; }
public uint buffer_size { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class Cancellable : GLib.Object {
public void cancel ();
public static weak GLib.Cancellable get_current ();
public int get_fd ();
public bool is_cancelled ();
public Cancellable ();
public void pop_current ();
public void push_current ();
public void reset ();
public bool set_error_if_cancelled () throws GLib.Error;
public virtual signal void cancelled ();
}
[CCode (cheader_filename = "gio/gio.h")]
public class DataInputStream : GLib.BufferedInputStream {
public GLib.DataStreamByteOrder get_byte_order ();
public GLib.DataStreamNewlineType get_newline_type ();
public DataInputStream (GLib.InputStream base_stream);
public uchar read_byte (GLib.Cancellable? cancellable) throws GLib.Error;
public short read_int16 (GLib.Cancellable? cancellable) throws GLib.Error;
public int read_int32 (GLib.Cancellable? cancellable) throws GLib.Error;
public int64 read_int64 (GLib.Cancellable? cancellable) throws GLib.Error;
public weak string read_line (out ulong length, GLib.Cancellable? cancellable) throws GLib.Error;
public ushort read_uint16 (GLib.Cancellable? cancellable) throws GLib.Error;
public uint read_uint32 (GLib.Cancellable? cancellable) throws GLib.Error;
public uint64 read_uint64 (GLib.Cancellable? cancellable) throws GLib.Error;
public weak string read_until (string stop_chars, out ulong length, GLib.Cancellable? cancellable) throws GLib.Error;
public void set_byte_order (GLib.DataStreamByteOrder order);
public void set_newline_type (GLib.DataStreamNewlineType type);
public GLib.DataStreamByteOrder byte_order { get; set; }
public GLib.DataStreamNewlineType newline_type { get; set; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class DataOutputStream : GLib.FilterOutputStream {
public GLib.DataStreamByteOrder get_byte_order ();
public DataOutputStream (GLib.OutputStream base_stream);
public bool put_byte (uchar data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_int16 (short data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_int32 (int data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_int64 (int64 data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_string (string str, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_uint16 (ushort data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_uint32 (uint data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable) throws GLib.Error;
public void set_byte_order (GLib.DataStreamByteOrder order);
public GLib.DataStreamByteOrder byte_order { get; set; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileEnumerator : GLib.Object {
public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
public bool has_pending ();
public bool is_closed ();
public void set_pending (bool pending);
public virtual void close_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void next_files_async (int num_files, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual GLib.List<GLib.FileInfo> next_files_finish (GLib.AsyncResult _result) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
public weak GLib.File get_file ();
public FileIcon (GLib.File file);
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileInfo : GLib.Object {
public void clear_status ();
public void copy_into (GLib.FileInfo dest_info);
public weak GLib.FileInfo dup ();
public weak string get_attribute_as_string (string attribute);
public bool get_attribute_boolean (string attribute);
public weak string get_attribute_byte_string (string attribute);
public bool get_attribute_data (string attribute, GLib.FileAttributeType type, void* value_pp, GLib.FileAttributeStatus status);
public int get_attribute_int32 (string attribute);
public int64 get_attribute_int64 (string attribute);
public weak GLib.Object get_attribute_object (string attribute);
public GLib.FileAttributeStatus get_attribute_status (string attribute);
public weak string get_attribute_string (string attribute);
public GLib.FileAttributeType get_attribute_type (string attribute);
public uint get_attribute_uint32 (string attribute);
public uint64 get_attribute_uint64 (string attribute);
public weak string get_content_type ();
public weak string get_display_name ();
public weak string get_edit_name ();
public weak string get_etag ();
public GLib.FileType get_file_type ();
public weak GLib.Icon get_icon ();
public bool get_is_backup ();
public bool get_is_hidden ();
public bool get_is_symlink ();
public void get_modification_time (GLib.TimeVal _result);
public weak string get_name ();
public int64 get_size ();
public int get_sort_order ();
public weak string get_symlink_target ();
public bool has_attribute (string attribute);
public weak string list_attributes (string name_space);
public FileInfo ();
public void remove_attribute (string attribute);
public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
public void set_attribute_boolean (string attribute, bool attr_value);
public void set_attribute_byte_string (string attribute, string attr_value);
public void set_attribute_int32 (string attribute, int attr_value);
public void set_attribute_int64 (string attribute, int64 attr_value);
public void set_attribute_mask (GLib.FileAttributeMatcher mask);
public void set_attribute_object (string attribute, GLib.Object attr_value);
public void set_attribute_string (string attribute, string attr_value);
public void set_attribute_uint32 (string attribute, uint attr_value);
public void set_attribute_uint64 (string attribute, uint64 attr_value);
public void set_content_type (string content_type);
public void set_display_name (string display_name);
public void set_edit_name (string edit_name);
public void set_file_type (GLib.FileType type);
public void set_icon (GLib.Icon icon);
public void set_is_hidden (bool is_hidden);
public void set_is_symlink (bool is_symlink);
public void set_modification_time (GLib.TimeVal mtime);
public void set_name (string name);
public void set_size (int64 size);
public void set_sort_order (int sort_order);
public void set_symlink_target (string symlink_target);
public void unset_attribute_mask ();
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileInputStream : GLib.InputStream, GLib.Seekable {
[NoWrapper]
public virtual bool can_seek ();
public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
[NoWrapper]
public virtual int64 tell ();
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileMonitor : GLib.Object {
public static weak GLib.FileMonitor directory (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
public static weak GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool is_cancelled ();
public void set_rate_limit (int limit_msecs);
public virtual bool cancel ();
[NoAccessorMethod]
public bool cancelled { get; }
[NoAccessorMethod]
public int rate_limit { get; set; }
public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
[NoWrapper]
public virtual bool can_seek ();
[NoWrapper]
public virtual bool can_truncate ();
public virtual weak string get_etag ();
public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
[NoWrapper]
public virtual int64 tell ();
[NoWrapper]
public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public class FilenameCompleter : GLib.Object {
public weak string get_completion_suffix (string initial_text);
public weak string get_completions (string initial_text);
public FilenameCompleter ();
public void set_dirs_only (bool dirs_only);
public virtual signal void got_completion_data ();
}
[CCode (cheader_filename = "gio/gio.h")]
public class FilterInputStream : GLib.InputStream {
public weak GLib.InputStream get_base_stream ();
[NoAccessorMethod]
public GLib.InputStream base_stream { get; construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class FilterOutputStream : GLib.OutputStream {
public weak GLib.OutputStream get_base_stream ();
[NoAccessorMethod]
public GLib.OutputStream base_stream { get; construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class IOModule : GLib.TypeModule, GLib.TypePlugin {
public void load ();
public IOModule (string filename);
public void unload ();
}
[CCode (cheader_filename = "gio/gio.h")]
public class InputStream : GLib.Object {
public void clear_pending ();
public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
public bool has_pending ();
public bool is_closed ();
public long read (void* buffer, ulong count, GLib.Cancellable? cancellable) throws GLib.Error;
public bool read_all (void* buffer, ulong count, out ulong bytes_read, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_pending () throws GLib.Error;
public virtual void close_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void read_async (void* buffer, ulong count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual long read_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual long read_fn (void* buffer, ulong count, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual long skip (ulong count, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void skip_async (ulong count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual long skip_finish (GLib.AsyncResult _result) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
public void add_data (void* data, long len, GLib.DestroyNotify destroy);
public MemoryInputStream ();
public MemoryInputStream.from_data (void* data, long len, GLib.DestroyNotify destroy);
}
[CCode (cheader_filename = "gio/gio.h")]
public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
public void* get_data ();
public ulong get_data_size ();
public ulong get_size ();
public MemoryOutputStream (void* data, ulong len, GLib.ReallocFunc realloc_fn, GLib.DestroyNotify destroy);
}
[CCode (cheader_filename = "gio/gio.h")]
public class MountOperation : GLib.Object {
public bool get_anonymous ();
public int get_choice ();
public weak string get_domain ();
public weak string get_password ();
public GLib.PasswordSave get_password_save ();
public weak string get_username ();
public MountOperation ();
public void set_anonymous (bool anonymous);
public void set_choice (int choice);
public void set_domain (string domain);
public void set_password (string password);
public void set_password_save (GLib.PasswordSave save);
public void set_username (string username);
public bool anonymous { get; set; }
public int choice { get; set; }
public string domain { get; set; }
public string password { get; set; }
public GLib.PasswordSave password_save { get; set; }
public string username { get; set; }
public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
public virtual signal void ask_question (string message, string[] choices);
[HasEmitter]
public virtual signal void reply (GLib.MountOperationResult result);
}
[CCode (cheader_filename = "gio/gio.h")]
public class NativeVolumeMonitor : GLib.VolumeMonitor {
[NoWrapper]
public virtual weak GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable);
}
[CCode (cheader_filename = "gio/gio.h")]
public class OutputStream : GLib.Object {
public void clear_pending ();
public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
public bool has_pending ();
public bool is_closed ();
public bool set_pending () throws GLib.Error;
public long write (void* buffer, ulong count, GLib.Cancellable? cancellable) throws GLib.Error;
public bool write_all (void* buffer, ulong count, out ulong bytes_written, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void close_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
public virtual bool flush (GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void flush_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual bool flush_finish (GLib.AsyncResult _result) throws GLib.Error;
public virtual long splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual long splice_finish (GLib.AsyncResult _result) throws GLib.Error;
public virtual void write_async (void* buffer, ulong count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual long write_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public virtual long write_fn (void* buffer, ulong count, GLib.Cancellable? cancellable) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
public void complete ();
public void complete_in_idle ();
public bool get_op_res_gboolean ();
public void* get_op_res_gpointer ();
public long get_op_res_gssize ();
public void* get_source_tag ();
public SimpleAsyncResult (GLib.Object source_object, GLib.AsyncReadyCallback callback, void* source_tag);
public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
public bool propagate_error () throws GLib.Error;
public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable? cancellable);
public void set_error (GLib.Quark domain, int code, string format);
public void set_error_va (GLib.Quark domain, int code, string format, void* args);
public void set_from_error (GLib.Error error);
public void set_handle_cancellation (bool handle_cancellation);
public void set_op_res_gboolean (bool op_res);
public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
public void set_op_res_gssize (long op_res);
}
[CCode (cheader_filename = "gio/gio.h")]
public class ThemedIcon : GLib.Object, GLib.Icon {
public void append_name (string iconname);
public weak string get_names ();
public ThemedIcon (string iconname);
public ThemedIcon.from_names (string[] iconnames, int len);
public ThemedIcon.with_default_fallbacks (string iconname);
public void prepend_name (string iconname);
[NoAccessorMethod]
public string name { construct; }
[NoAccessorMethod]
public string[] names { get; construct; }
[NoAccessorMethod]
public bool use_default_fallbacks { construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class Vfs : GLib.Object {
public static weak GLib.Vfs get_default ();
public static weak GLib.Vfs get_local ();
public virtual weak GLib.File get_file_for_path (string path);
public virtual weak GLib.File get_file_for_uri (string uri);
public virtual weak string get_supported_uri_schemes ();
public virtual bool is_active ();
public virtual weak GLib.File parse_name (string parse_name);
}
[CCode (cheader_filename = "gio/gio.h")]
public class VolumeMonitor : GLib.Object {
public static weak GLib.VolumeMonitor get ();
public virtual weak GLib.Volume adopt_orphan_mount (GLib.Mount mount);
public virtual weak GLib.List get_connected_drives ();
public virtual weak GLib.Mount get_mount_for_uuid (string uuid);
public virtual weak GLib.List get_mounts ();
public virtual weak GLib.Volume get_volume_for_uuid (string uuid);
public virtual weak GLib.List get_volumes ();
[NoWrapper]
public virtual bool is_supported ();
public virtual signal void drive_changed (GLib.Drive drive);
public virtual signal void drive_connected (GLib.Drive drive);
public virtual signal void drive_disconnected (GLib.Drive drive);
public virtual signal void mount_added (GLib.Mount mount);
public virtual signal void mount_changed (GLib.Mount mount);
public virtual signal void mount_pre_unmount (GLib.Mount mount);
public virtual signal void mount_removed (GLib.Mount mount);
public virtual signal void volume_added (GLib.Volume volume);
public virtual signal void volume_changed (GLib.Volume volume);
public virtual signal void volume_removed (GLib.Volume volume);
}
[CCode (cheader_filename = "gio/gio.h")]
public interface AppInfo : GLib.Object {
public static weak GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
public static weak GLib.List get_all ();
public static weak GLib.List get_all_for_type (string content_type);
public static weak GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
public static weak GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
public abstract bool add_supports_type (string content_type) throws GLib.Error;
public abstract bool can_remove_supports_type ();
public abstract weak GLib.AppInfo dup ();
public abstract bool equal (GLib.AppInfo appinfo2);
public abstract weak string get_description ();
public abstract weak string get_executable ();
public abstract weak GLib.Icon get_icon ();
public abstract weak string get_id ();
public abstract weak string get_name ();
public abstract bool launch (GLib.List files, GLib.AppLaunchContext launch_context) throws GLib.Error;
public abstract bool launch_uris (GLib.List uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
public abstract bool remove_supports_type (string content_type) throws GLib.Error;
public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
public abstract bool should_show ();
public abstract bool supports_files ();
public abstract bool supports_uris ();
}
[CCode (cheader_filename = "gio/gio.h")]
public interface AsyncResult : GLib.Object {
public abstract weak GLib.Object get_source_object ();
public abstract void* get_user_data ();
}
[CCode (cheader_filename = "gio/gio.h")]
public interface Drive : GLib.Object {
public abstract bool can_eject ();
public abstract bool can_poll_for_media ();
public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract weak string enumerate_identifiers ();
public abstract weak GLib.Icon get_icon ();
public abstract weak string get_identifier (string kind);
public abstract weak string get_name ();
public abstract weak GLib.List get_volumes ();
public abstract bool has_media ();
public abstract bool has_volumes ();
public abstract bool is_media_check_automatic ();
public abstract bool is_media_removable ();
public abstract void poll_for_media (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool poll_for_media_finish (GLib.AsyncResult _result) throws GLib.Error;
public virtual signal void changed ();
public virtual signal void disconnected ();
public virtual signal void eject_button ();
}
[CCode (cheader_filename = "gio/gio.h")]
public interface File : GLib.Object {
public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool @delete (GLib.Cancellable? cancellable) throws GLib.Error;
public GLib.File get_child (string name);
public bool has_prefix (GLib.File prefix);
public bool load_contents (GLib.Cancellable? cancellable, out weak string contents, out ulong length, out weak string etag_out) throws GLib.Error;
public void load_contents_async (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public bool load_contents_finish (GLib.AsyncResult res, out weak string contents, out ulong length, out weak string etag_out) throws GLib.Error;
public void load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, GLib.AsyncReadyCallback callback);
public bool load_partial_contents_finish (GLib.AsyncResult res, out weak string contents, ulong length, out weak string etag_out) throws GLib.Error;
public bool make_directory_with_parents (GLib.Cancellable? cancellable) throws GLib.Error;
public static GLib.File new_for_commandline_arg (string arg);
public static GLib.File new_for_path (string path);
public static GLib.File new_for_uri (string uri);
public static weak GLib.File parse_name (string parse_name);
public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable) throws GLib.Error;
public bool query_exists (GLib.Cancellable? cancellable);
public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable);
public GLib.FileInputStream read (GLib.Cancellable? cancellable) throws GLib.Error;
public bool replace_contents (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, out weak string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
public void replace_contents_async (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public bool replace_contents_finish (GLib.AsyncResult res, out weak string new_etag) throws GLib.Error;
public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_attribute_int32 (string attribute, int value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_attribute_uint32 (string attribute, uint value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable, GLib.FileProgressCallback progress_callback) throws GLib.Error;
public abstract void copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.FileProgressCallback progress_callback, GLib.AsyncReadyCallback callback);
public abstract bool copy_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract GLib.FileOutputStream create_finish (GLib.AsyncResult res) throws GLib.Error;
[NoWrapper]
public abstract bool delete_file (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract weak GLib.File dup ();
public abstract void eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool eject_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract GLib.FileEnumerator enumerate_children_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract bool equal (GLib.File file2);
public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void find_enclosing_mount_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract GLib.Mount find_enclosing_mount_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract string get_basename ();
public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
public abstract GLib.File get_parent ();
public abstract string get_parse_name ();
public abstract string get_path ();
public abstract string get_relative_path (GLib.File descendant);
public abstract string get_uri ();
public abstract string get_uri_scheme ();
public abstract bool has_uri_scheme (string uri_scheme);
public abstract uint hash (void* file);
public abstract bool is_native ();
public abstract bool make_directory (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable) throws GLib.Error;
[NoWrapper]
public abstract weak GLib.FileMonitor monitor_dir (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
[NoWrapper]
public abstract weak GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool mount_enclosing_volume_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract void mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract weak GLib.File mount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable, GLib.FileProgressCallback progress_callback) throws GLib.Error;
[NoWrapper]
public abstract bool prefix_matches (GLib.File file);
public abstract weak GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void query_filesystem_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract weak GLib.FileInfo query_filesystem_info_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract weak GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void read_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract GLib.FileInputStream read_finish (GLib.AsyncResult res) throws GLib.Error;
[NoWrapper]
public abstract weak GLib.FileInputStream read_fn (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract GLib.File resolve_relative_path (string relative_path);
public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool set_attributes_finish (GLib.AsyncResult _result, out weak GLib.FileInfo info) throws GLib.Error;
public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract weak GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void set_display_name_async (string display_name, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract weak GLib.File set_display_name_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract bool trash (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool unmount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public interface Icon : GLib.Object {
public abstract bool equal (GLib.Icon icon2);
public abstract uint hash (void* icon);
}
[CCode (cheader_filename = "gio/gio.h")]
public interface LoadableIcon : GLib.Icon, GLib.Object {
public abstract weak GLib.InputStream load (int size, out weak string type, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void load_async (int size, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract weak GLib.InputStream load_finish (GLib.AsyncResult res, out weak string type) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public interface Mount : GLib.Object {
public abstract bool can_eject ();
public abstract bool can_unmount ();
public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract weak GLib.Drive get_drive ();
public abstract weak GLib.Icon get_icon ();
public abstract weak string get_name ();
public abstract weak GLib.File get_root ();
public abstract weak string get_uuid ();
public abstract weak GLib.Volume get_volume ();
public abstract void remount (GLib.MountMountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool remount_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract void unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool unmount_finish (GLib.AsyncResult _result) throws GLib.Error;
public virtual signal void changed ();
public virtual signal void unmounted ();
}
[CCode (cheader_filename = "gio/gio.h")]
public interface Seekable : GLib.Object {
public bool truncate (int64 offset, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract bool can_seek ();
public abstract bool can_truncate ();
public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract int64 tell ();
[NoWrapper]
public abstract bool truncate_fn (int64 offset, GLib.Cancellable? cancellable) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gio.h")]
public interface Volume : GLib.Object {
public void mount (GLib.MountMountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool can_eject ();
public abstract bool can_mount ();
public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
public abstract weak string enumerate_identifiers ();
public abstract weak GLib.Drive get_drive ();
public abstract weak GLib.Icon get_icon ();
public abstract weak string get_identifier (string kind);
public abstract weak GLib.Mount get_mount ();
public abstract weak string get_name ();
public abstract weak string get_uuid ();
public abstract bool mount_finish (GLib.AsyncResult _result) throws GLib.Error;
[NoWrapper]
public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public abstract bool should_automount ();
public virtual signal void changed ();
public virtual signal void removed ();
}
[CCode (cheader_filename = "gio/gio.h")]
public delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res);
[CCode (cheader_filename = "gio/gio.h")]
public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
[CCode (cheader_filename = "gio/gio.h")]
public static delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
[CCode (cheader_filename = "gio/gio.h")]
public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
[CCode (cheader_filename = "gio/gio.h")]
public static delegate void* ReallocFunc (void* data, ulong size);
[CCode (cheader_filename = "gio/gio.h")]
public static delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ETAG_VALUE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_GVFS_BACKEND;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ID_FILE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_OWNER_GROUP;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_OWNER_USER;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_ICON;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_NAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_SIZE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_STANDARD_TYPE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_ACCESS;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_CHANGED;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_CREATED;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_MODIFIED;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_DEVICE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_GID;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_INODE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_MODE;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_NLINK;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_RDEV;
[CCode (cheader_filename = "gio/gio.h")]
public const string FILE_ATTRIBUTE_UNIX_UID;
[CCode (cheader_filename = "gio/gio.h")]
public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string VFS_EXTENSION_POINT_NAME;
[CCode (cheader_filename = "gio/gio.h")]
public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
[CCode (cheader_filename = "gio/gio.h")]
public const string VOLUME_IDENTIFIER_KIND_LABEL;
[CCode (cheader_filename = "gio/gio.h")]
public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
[CCode (cheader_filename = "gio/gio.h")]
public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
[CCode (cheader_filename = "gio/gio.h")]
public const string VOLUME_IDENTIFIER_KIND_UUID;
[CCode (cheader_filename = "gio/gio.h")]
public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
[CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
public static bool g_content_type_can_be_executable (string type);
[CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
public static bool g_content_type_equals (string type1, string type2);
[CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
public static weak string g_content_type_from_mime_type (string mime_type);
[CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
public static weak string g_content_type_get_description (string type);
[CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
public static weak GLib.Icon g_content_type_get_icon (string type);
[CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
public static weak string g_content_type_get_mime_type (string type);
[CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
public static weak string g_content_type_guess (string filename, uchar[] data, ulong data_size, bool result_uncertain);
[CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
public static bool g_content_type_is_a (string type, string supertype);
[CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
public static bool g_content_type_is_unknown (string type);
[CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
public static weak GLib.List g_content_types_get_registered ();
[CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
public static weak GLib.IOError g_io_error_from_errno (int err_no);
[CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
public static GLib.Quark g_io_error_quark ();
[CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
public static weak GLib.List g_io_modules_load_all_in_directory (string dirname);
[CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
public static void g_io_scheduler_cancel_all_jobs ();
[CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify notify, int io_priority, GLib.Cancellable? cancellable);
[CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
[CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
}
|