Blame gio/gioenums.h

Packit ae235b
/* GIO - GLib Input, Output and Streaming Library
Packit ae235b
 *
Packit ae235b
 * Copyright (C) 2006-2007 Red Hat, Inc.
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General
Packit ae235b
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 *
Packit ae235b
 * Author: Alexander Larsson <alexl@redhat.com>
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __GIO_ENUMS_H__
Packit ae235b
#define __GIO_ENUMS_H__
Packit ae235b
Packit ae235b
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
Packit ae235b
#error "Only <gio/gio.h> can be included directly."
Packit ae235b
#endif
Packit ae235b
Packit ae235b
#include <glib-object.h>
Packit ae235b
Packit ae235b
G_BEGIN_DECLS
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GAppInfoCreateFlags:
Packit ae235b
 * @G_APP_INFO_CREATE_NONE: No flags.
Packit ae235b
 * @G_APP_INFO_CREATE_NEEDS_TERMINAL: Application opens in a terminal window.
Packit ae235b
 * @G_APP_INFO_CREATE_SUPPORTS_URIS: Application supports URI arguments.
Packit ae235b
 * @G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: Application supports startup notification. Since 2.26
Packit ae235b
 *
Packit ae235b
 * Flags used when creating a #GAppInfo.
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_APP_INFO_CREATE_NONE                           = 0,         /*< nick=none >*/
Packit ae235b
  G_APP_INFO_CREATE_NEEDS_TERMINAL                 = (1 << 0),  /*< nick=needs-terminal >*/
Packit ae235b
  G_APP_INFO_CREATE_SUPPORTS_URIS                  = (1 << 1),  /*< nick=supports-uris >*/
Packit ae235b
  G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION  = (1 << 2)   /*< nick=supports-startup-notification >*/
Packit ae235b
} GAppInfoCreateFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GConverterFlags:
Packit ae235b
 * @G_CONVERTER_NO_FLAGS: No flags.
Packit ae235b
 * @G_CONVERTER_INPUT_AT_END: At end of input data
Packit ae235b
 * @G_CONVERTER_FLUSH: Flush data
Packit ae235b
 *
Packit ae235b
 * Flags used when calling a g_converter_convert().
Packit ae235b
 *
Packit ae235b
 * Since: 2.24
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_CONVERTER_NO_FLAGS     = 0,         /*< nick=none >*/
Packit ae235b
  G_CONVERTER_INPUT_AT_END = (1 << 0),  /*< nick=input-at-end >*/
Packit ae235b
  G_CONVERTER_FLUSH        = (1 << 1)   /*< nick=flush >*/
Packit ae235b
} GConverterFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GConverterResult:
Packit ae235b
 * @G_CONVERTER_ERROR: There was an error during conversion.
Packit ae235b
 * @G_CONVERTER_CONVERTED: Some data was consumed or produced
Packit ae235b
 * @G_CONVERTER_FINISHED: The conversion is finished
Packit ae235b
 * @G_CONVERTER_FLUSHED: Flushing is finished
Packit ae235b
 *
Packit ae235b
 * Results returned from g_converter_convert().
Packit ae235b
 *
Packit ae235b
 * Since: 2.24
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_CONVERTER_ERROR     = 0,  /*< nick=error >*/
Packit ae235b
  G_CONVERTER_CONVERTED = 1,  /*< nick=converted >*/
Packit ae235b
  G_CONVERTER_FINISHED  = 2,  /*< nick=finished >*/
Packit ae235b
  G_CONVERTER_FLUSHED   = 3   /*< nick=flushed >*/
Packit ae235b
} GConverterResult;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDataStreamByteOrder:
Packit ae235b
 * @G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: Selects Big Endian byte order.
Packit ae235b
 * @G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: Selects Little Endian byte order.
Packit ae235b
 * @G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: Selects endianness based on host machine's architecture.
Packit ae235b
 *
Packit ae235b
 * #GDataStreamByteOrder is used to ensure proper endianness of streaming data sources
Packit ae235b
 * across various machine architectures.
Packit ae235b
 *
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN,
Packit ae235b
  G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN,
Packit ae235b
  G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN
Packit ae235b
} GDataStreamByteOrder;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDataStreamNewlineType:
Packit ae235b
 * @G_DATA_STREAM_NEWLINE_TYPE_LF: Selects "LF" line endings, common on most modern UNIX platforms.
Packit ae235b
 * @G_DATA_STREAM_NEWLINE_TYPE_CR: Selects "CR" line endings.
Packit ae235b
 * @G_DATA_STREAM_NEWLINE_TYPE_CR_LF: Selects "CR, LF" line ending, common on Microsoft Windows.
Packit ae235b
 * @G_DATA_STREAM_NEWLINE_TYPE_ANY: Automatically try to handle any line ending type.
Packit ae235b
 *
Packit ae235b
 * #GDataStreamNewlineType is used when checking for or setting the line endings for a given file.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_DATA_STREAM_NEWLINE_TYPE_LF,
Packit ae235b
  G_DATA_STREAM_NEWLINE_TYPE_CR,
Packit ae235b
  G_DATA_STREAM_NEWLINE_TYPE_CR_LF,
Packit ae235b
  G_DATA_STREAM_NEWLINE_TYPE_ANY
Packit ae235b
} GDataStreamNewlineType;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileAttributeType:
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_INVALID: indicates an invalid or uninitalized type.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_STRING: a null terminated UTF8 string.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: a zero terminated string of non-zero bytes.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_BOOLEAN: a boolean value.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_UINT32: an unsigned 4-byte/32-bit integer.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_INT32: a signed 4-byte/32-bit integer.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_UINT64: an unsigned 8-byte/64-bit integer.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_INT64: a signed 8-byte/64-bit integer.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_OBJECT: a #GObject.
Packit ae235b
 * @G_FILE_ATTRIBUTE_TYPE_STRINGV: a %NULL terminated char **. Since 2.22
Packit ae235b
 *
Packit ae235b
 * The data types for file attributes.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_INVALID = 0,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_STRING,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_BYTE_STRING, /* zero terminated string of non-zero bytes */
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_BOOLEAN,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_UINT32,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_INT32,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_UINT64,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_INT64,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_OBJECT,
Packit ae235b
  G_FILE_ATTRIBUTE_TYPE_STRINGV
Packit ae235b
} GFileAttributeType;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileAttributeInfoFlags:
Packit ae235b
 * @G_FILE_ATTRIBUTE_INFO_NONE: no flags set.
Packit ae235b
 * @G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: copy the attribute values when the file is copied.
Packit ae235b
 * @G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: copy the attribute values when the file is moved.
Packit ae235b
 *
Packit ae235b
 * Flags specifying the behaviour of an attribute.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_ATTRIBUTE_INFO_NONE            = 0,
Packit ae235b
  G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE  = (1 << 0),
Packit ae235b
  G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED = (1 << 1)
Packit ae235b
} GFileAttributeInfoFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileAttributeStatus:
Packit ae235b
 * @G_FILE_ATTRIBUTE_STATUS_UNSET: Attribute value is unset (empty).
Packit ae235b
 * @G_FILE_ATTRIBUTE_STATUS_SET: Attribute value is set.
Packit ae235b
 * @G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: Indicates an error in setting the value.
Packit ae235b
 *
Packit ae235b
 * Used by g_file_set_attributes_from_info() when setting file attributes.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_ATTRIBUTE_STATUS_UNSET = 0,
Packit ae235b
  G_FILE_ATTRIBUTE_STATUS_SET,
Packit ae235b
  G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING
Packit ae235b
} GFileAttributeStatus;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileQueryInfoFlags:
Packit ae235b
 * @G_FILE_QUERY_INFO_NONE: No flags set.
Packit ae235b
 * @G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: Don't follow symlinks.
Packit ae235b
 *
Packit ae235b
 * Flags used when querying a #GFileInfo.
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_QUERY_INFO_NONE              = 0,
Packit ae235b
  G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS = (1 << 0)   /*< nick=nofollow-symlinks >*/
Packit ae235b
} GFileQueryInfoFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileCreateFlags:
Packit ae235b
 * @G_FILE_CREATE_NONE: No flags set.
Packit ae235b
 * @G_FILE_CREATE_PRIVATE: Create a file that can only be
Packit ae235b
 *    accessed by the current user.
Packit ae235b
 * @G_FILE_CREATE_REPLACE_DESTINATION: Replace the destination
Packit ae235b
 *    as if it didn't exist before. Don't try to keep any old
Packit ae235b
 *    permissions, replace instead of following links. This
Packit ae235b
 *    is generally useful if you're doing a "copy over"
Packit ae235b
 *    rather than a "save new version of" replace operation.
Packit ae235b
 *    You can think of it as "unlink destination" before
Packit ae235b
 *    writing to it, although the implementation may not
Packit ae235b
 *    be exactly like that. Since 2.20
Packit ae235b
 *
Packit ae235b
 * Flags used when an operation may create a file.
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_CREATE_NONE    = 0,
Packit ae235b
  G_FILE_CREATE_PRIVATE = (1 << 0),
Packit ae235b
  G_FILE_CREATE_REPLACE_DESTINATION = (1 << 1)
Packit ae235b
} GFileCreateFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileMeasureFlags:
Packit ae235b
 * @G_FILE_MEASURE_NONE: No flags set.
Packit ae235b
 * @G_FILE_MEASURE_REPORT_ANY_ERROR: Report any error encountered
Packit ae235b
 *   while traversing the directory tree.  Normally errors are only
Packit ae235b
 *   reported for the toplevel file.
Packit ae235b
 * @G_FILE_MEASURE_APPARENT_SIZE: Tally usage based on apparent file
Packit ae235b
 *   sizes.  Normally, the block-size is used, if available, as this is a
Packit ae235b
 *   more accurate representation of disk space used.
Packit ae235b
 *   Compare with `du --apparent-size`.
Packit ae235b
 * @G_FILE_MEASURE_NO_XDEV: Do not cross mount point boundaries.
Packit ae235b
 *   Compare with `du -x`.
Packit ae235b
 *
Packit ae235b
 * Flags that can be used with g_file_measure_disk_usage().
Packit ae235b
 *
Packit ae235b
 * Since: 2.38
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_MEASURE_NONE                 = 0,
Packit ae235b
  G_FILE_MEASURE_REPORT_ANY_ERROR     = (1 << 1),
Packit ae235b
  G_FILE_MEASURE_APPARENT_SIZE        = (1 << 2),
Packit ae235b
  G_FILE_MEASURE_NO_XDEV              = (1 << 3)
Packit ae235b
} GFileMeasureFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GMountMountFlags:
Packit ae235b
 * @G_MOUNT_MOUNT_NONE: No flags set.
Packit ae235b
 *
Packit ae235b
 * Flags used when mounting a mount.
Packit ae235b
 */
Packit ae235b
typedef enum /*< flags >*/ {
Packit ae235b
  G_MOUNT_MOUNT_NONE = 0
Packit ae235b
} GMountMountFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GMountUnmountFlags:
Packit ae235b
 * @G_MOUNT_UNMOUNT_NONE: No flags set.
Packit ae235b
 * @G_MOUNT_UNMOUNT_FORCE: Unmount even if there are outstanding
Packit ae235b
 *  file operations on the mount.
Packit ae235b
 *
Packit ae235b
 * Flags used when an unmounting a mount.
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_MOUNT_UNMOUNT_NONE  = 0,
Packit ae235b
  G_MOUNT_UNMOUNT_FORCE = (1 << 0)
Packit ae235b
} GMountUnmountFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDriveStartFlags:
Packit ae235b
 * @G_DRIVE_START_NONE: No flags set.
Packit ae235b
 *
Packit ae235b
 * Flags used when starting a drive.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum /*< flags >*/ {
Packit ae235b
  G_DRIVE_START_NONE = 0
Packit ae235b
} GDriveStartFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDriveStartStopType:
Packit ae235b
 * @G_DRIVE_START_STOP_TYPE_UNKNOWN: Unknown or drive doesn't support
Packit ae235b
 *    start/stop.
Packit ae235b
 * @G_DRIVE_START_STOP_TYPE_SHUTDOWN: The stop method will physically
Packit ae235b
 *    shut down the drive and e.g. power down the port the drive is
Packit ae235b
 *    attached to.
Packit ae235b
 * @G_DRIVE_START_STOP_TYPE_NETWORK: The start/stop methods are used
Packit ae235b
 *    for connecting/disconnect to the drive over the network.
Packit ae235b
 * @G_DRIVE_START_STOP_TYPE_MULTIDISK: The start/stop methods will
Packit ae235b
 *    assemble/disassemble a virtual drive from several physical
Packit ae235b
 *    drives.
Packit ae235b
 * @G_DRIVE_START_STOP_TYPE_PASSWORD: The start/stop methods will
Packit ae235b
 *    unlock/lock the disk (for example using the ATA <quote>SECURITY
Packit ae235b
 *    UNLOCK DEVICE</quote> command)
Packit ae235b
 *
Packit ae235b
 * Enumeration describing how a drive can be started/stopped.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DRIVE_START_STOP_TYPE_UNKNOWN,
Packit ae235b
  G_DRIVE_START_STOP_TYPE_SHUTDOWN,
Packit ae235b
  G_DRIVE_START_STOP_TYPE_NETWORK,
Packit ae235b
  G_DRIVE_START_STOP_TYPE_MULTIDISK,
Packit ae235b
  G_DRIVE_START_STOP_TYPE_PASSWORD
Packit ae235b
} GDriveStartStopType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileCopyFlags:
Packit ae235b
 * @G_FILE_COPY_NONE: No flags set.
Packit ae235b
 * @G_FILE_COPY_OVERWRITE: Overwrite any existing files
Packit ae235b
 * @G_FILE_COPY_BACKUP: Make a backup of any existing files.
Packit ae235b
 * @G_FILE_COPY_NOFOLLOW_SYMLINKS: Don't follow symlinks.
Packit ae235b
 * @G_FILE_COPY_ALL_METADATA: Copy all file metadata instead of just default set used for copy (see #GFileInfo).
Packit ae235b
 * @G_FILE_COPY_NO_FALLBACK_FOR_MOVE: Don't use copy and delete fallback if native move not supported.
Packit ae235b
 * @G_FILE_COPY_TARGET_DEFAULT_PERMS: Leaves target file with default perms, instead of setting the source file perms.
Packit ae235b
 *
Packit ae235b
 * Flags used when copying or moving files.
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_COPY_NONE                 = 0,          /*< nick=none >*/
Packit ae235b
  G_FILE_COPY_OVERWRITE            = (1 << 0),
Packit ae235b
  G_FILE_COPY_BACKUP               = (1 << 1),
Packit ae235b
  G_FILE_COPY_NOFOLLOW_SYMLINKS    = (1 << 2),
Packit ae235b
  G_FILE_COPY_ALL_METADATA         = (1 << 3),
Packit ae235b
  G_FILE_COPY_NO_FALLBACK_FOR_MOVE = (1 << 4),
Packit ae235b
  G_FILE_COPY_TARGET_DEFAULT_PERMS = (1 << 5)
Packit ae235b
} GFileCopyFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileMonitorFlags:
Packit ae235b
 * @G_FILE_MONITOR_NONE: No flags set.
Packit ae235b
 * @G_FILE_MONITOR_WATCH_MOUNTS: Watch for mount events.
Packit ae235b
 * @G_FILE_MONITOR_SEND_MOVED: Pair DELETED and CREATED events caused
Packit ae235b
 *   by file renames (moves) and send a single G_FILE_MONITOR_EVENT_MOVED
Packit ae235b
 *   event instead (NB: not supported on all backends; the default
Packit ae235b
 *   behaviour -without specifying this flag- is to send single DELETED
Packit ae235b
 *   and CREATED events).  Deprecated since 2.46: use
Packit ae235b
 *   %G_FILE_MONITOR_WATCH_MOVES instead.
Packit ae235b
 * @G_FILE_MONITOR_WATCH_HARD_LINKS: Watch for changes to the file made
Packit ae235b
 *   via another hard link. Since 2.36.
Packit ae235b
 * @G_FILE_MONITOR_WATCH_MOVES: Watch for rename operations on a
Packit ae235b
 *   monitored directory.  This causes %G_FILE_MONITOR_EVENT_RENAMED,
Packit ae235b
 *   %G_FILE_MONITOR_EVENT_MOVED_IN and %G_FILE_MONITOR_EVENT_MOVED_OUT
Packit ae235b
 *   events to be emitted when possible.  Since: 2.46.
Packit ae235b
 *
Packit ae235b
 * Flags used to set what a #GFileMonitor will watch for.
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_MONITOR_NONE             = 0,
Packit ae235b
  G_FILE_MONITOR_WATCH_MOUNTS     = (1 << 0),
Packit ae235b
  G_FILE_MONITOR_SEND_MOVED       = (1 << 1),
Packit ae235b
  G_FILE_MONITOR_WATCH_HARD_LINKS = (1 << 2),
Packit ae235b
  G_FILE_MONITOR_WATCH_MOVES      = (1 << 3)
Packit ae235b
} GFileMonitorFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileType:
Packit ae235b
 * @G_FILE_TYPE_UNKNOWN: File's type is unknown.
Packit ae235b
 * @G_FILE_TYPE_REGULAR: File handle represents a regular file.
Packit ae235b
 * @G_FILE_TYPE_DIRECTORY: File handle represents a directory.
Packit ae235b
 * @G_FILE_TYPE_SYMBOLIC_LINK: File handle represents a symbolic link
Packit ae235b
 *    (Unix systems).
Packit ae235b
 * @G_FILE_TYPE_SPECIAL: File is a "special" file, such as a socket, fifo,
Packit ae235b
 *    block device, or character device.
Packit ae235b
 * @G_FILE_TYPE_SHORTCUT: File is a shortcut (Windows systems).
Packit ae235b
 * @G_FILE_TYPE_MOUNTABLE: File is a mountable location.
Packit ae235b
 *
Packit ae235b
 * Indicates the file's on-disk type.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_TYPE_UNKNOWN = 0,
Packit ae235b
  G_FILE_TYPE_REGULAR,
Packit ae235b
  G_FILE_TYPE_DIRECTORY,
Packit ae235b
  G_FILE_TYPE_SYMBOLIC_LINK,
Packit ae235b
  G_FILE_TYPE_SPECIAL, /* socket, fifo, blockdev, chardev */
Packit ae235b
  G_FILE_TYPE_SHORTCUT,
Packit ae235b
  G_FILE_TYPE_MOUNTABLE
Packit ae235b
} GFileType;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFilesystemPreviewType:
Packit ae235b
 * @G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: Only preview files if user has explicitly requested it.
Packit ae235b
 * @G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: Preview files if user has requested preview of "local" files.
Packit ae235b
 * @G_FILESYSTEM_PREVIEW_TYPE_NEVER: Never preview files.
Packit ae235b
 *
Packit ae235b
 * Indicates a hint from the file system whether files should be
Packit ae235b
 * previewed in a file manager. Returned as the value of the key
Packit ae235b
 * #G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS = 0,
Packit ae235b
  G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL,
Packit ae235b
  G_FILESYSTEM_PREVIEW_TYPE_NEVER
Packit ae235b
} GFilesystemPreviewType;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileMonitorEvent:
Packit ae235b
 * @G_FILE_MONITOR_EVENT_CHANGED: a file changed.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: a hint that this was probably the last change in a set of changes.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_DELETED: a file was deleted.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_CREATED: a file was created.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: a file attribute was changed.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_PRE_UNMOUNT: the file location will soon be unmounted.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_UNMOUNTED: the file location was unmounted.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_MOVED: the file was moved -- only sent if the
Packit ae235b
 *   (deprecated) %G_FILE_MONITOR_SEND_MOVED flag is set
Packit ae235b
 * @G_FILE_MONITOR_EVENT_RENAMED: the file was renamed within the
Packit ae235b
 *   current directory -- only sent if the %G_FILE_MONITOR_WATCH_MOVES
Packit ae235b
 *   flag is set.  Since: 2.46.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_MOVED_IN: the file was moved into the
Packit ae235b
 *   monitored directory from another location -- only sent if the
Packit ae235b
 *   %G_FILE_MONITOR_WATCH_MOVES flag is set.  Since: 2.46.
Packit ae235b
 * @G_FILE_MONITOR_EVENT_MOVED_OUT: the file was moved out of the
Packit ae235b
 *   monitored directory to another location -- only sent if the
Packit ae235b
 *   %G_FILE_MONITOR_WATCH_MOVES flag is set.  Since: 2.46
Packit ae235b
 *
Packit ae235b
 * Specifies what type of event a monitor event is.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_FILE_MONITOR_EVENT_CHANGED,
Packit ae235b
  G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT,
Packit ae235b
  G_FILE_MONITOR_EVENT_DELETED,
Packit ae235b
  G_FILE_MONITOR_EVENT_CREATED,
Packit ae235b
  G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED,
Packit ae235b
  G_FILE_MONITOR_EVENT_PRE_UNMOUNT,
Packit ae235b
  G_FILE_MONITOR_EVENT_UNMOUNTED,
Packit ae235b
  G_FILE_MONITOR_EVENT_MOVED,
Packit ae235b
  G_FILE_MONITOR_EVENT_RENAMED,
Packit ae235b
  G_FILE_MONITOR_EVENT_MOVED_IN,
Packit ae235b
  G_FILE_MONITOR_EVENT_MOVED_OUT
Packit ae235b
} GFileMonitorEvent;
Packit ae235b
Packit ae235b
Packit ae235b
/* This enumeration conflicts with GIOError in giochannel.h. However,
Packit ae235b
 * that is only used as a return value in some deprecated functions.
Packit ae235b
 * So, we reuse the same prefix for the enumeration values, but call
Packit ae235b
 * the actual enumeration (which is rarely used) GIOErrorEnum.
Packit ae235b
 */
Packit ae235b
/**
Packit ae235b
 * GIOErrorEnum:
Packit ae235b
 * @G_IO_ERROR_FAILED: Generic error condition for when an operation fails
Packit ae235b
 *     and no more specific #GIOErrorEnum value is defined.
Packit ae235b
 * @G_IO_ERROR_NOT_FOUND: File not found.
Packit ae235b
 * @G_IO_ERROR_EXISTS: File already exists.
Packit ae235b
 * @G_IO_ERROR_IS_DIRECTORY: File is a directory.
Packit ae235b
 * @G_IO_ERROR_NOT_DIRECTORY: File is not a directory.
Packit ae235b
 * @G_IO_ERROR_NOT_EMPTY: File is a directory that isn't empty.
Packit ae235b
 * @G_IO_ERROR_NOT_REGULAR_FILE: File is not a regular file.
Packit ae235b
 * @G_IO_ERROR_NOT_SYMBOLIC_LINK: File is not a symbolic link.
Packit ae235b
 * @G_IO_ERROR_NOT_MOUNTABLE_FILE: File cannot be mounted.
Packit ae235b
 * @G_IO_ERROR_FILENAME_TOO_LONG: Filename is too many characters.
Packit ae235b
 * @G_IO_ERROR_INVALID_FILENAME: Filename is invalid or contains invalid characters.
Packit ae235b
 * @G_IO_ERROR_TOO_MANY_LINKS: File contains too many symbolic links.
Packit ae235b
 * @G_IO_ERROR_NO_SPACE: No space left on drive.
Packit ae235b
 * @G_IO_ERROR_INVALID_ARGUMENT: Invalid argument.
Packit ae235b
 * @G_IO_ERROR_PERMISSION_DENIED: Permission denied.
Packit ae235b
 * @G_IO_ERROR_NOT_SUPPORTED: Operation (or one of its parameters) not supported
Packit ae235b
 * @G_IO_ERROR_NOT_MOUNTED: File isn't mounted.
Packit ae235b
 * @G_IO_ERROR_ALREADY_MOUNTED: File is already mounted.
Packit ae235b
 * @G_IO_ERROR_CLOSED: File was closed.
Packit ae235b
 * @G_IO_ERROR_CANCELLED: Operation was cancelled. See #GCancellable.
Packit ae235b
 * @G_IO_ERROR_PENDING: Operations are still pending.
Packit ae235b
 * @G_IO_ERROR_READ_ONLY: File is read only.
Packit ae235b
 * @G_IO_ERROR_CANT_CREATE_BACKUP: Backup couldn't be created.
Packit ae235b
 * @G_IO_ERROR_WRONG_ETAG: File's Entity Tag was incorrect.
Packit ae235b
 * @G_IO_ERROR_TIMED_OUT: Operation timed out.
Packit ae235b
 * @G_IO_ERROR_WOULD_RECURSE: Operation would be recursive.
Packit ae235b
 * @G_IO_ERROR_BUSY: File is busy.
Packit ae235b
 * @G_IO_ERROR_WOULD_BLOCK: Operation would block.
Packit ae235b
 * @G_IO_ERROR_HOST_NOT_FOUND: Host couldn't be found (remote operations).
Packit ae235b
 * @G_IO_ERROR_WOULD_MERGE: Operation would merge files.
Packit ae235b
 * @G_IO_ERROR_FAILED_HANDLED: Operation failed and a helper program has
Packit ae235b
 *     already interacted with the user. Do not display any error dialog.
Packit ae235b
 * @G_IO_ERROR_TOO_MANY_OPEN_FILES: The current process has too many files
Packit ae235b
 *     open and can't open any more. Duplicate descriptors do count toward
Packit ae235b
 *     this limit. Since 2.20
Packit ae235b
 * @G_IO_ERROR_NOT_INITIALIZED: The object has not been initialized. Since 2.22
Packit ae235b
 * @G_IO_ERROR_ADDRESS_IN_USE: The requested address is already in use. Since 2.22
Packit ae235b
 * @G_IO_ERROR_PARTIAL_INPUT: Need more input to finish operation. Since 2.24
Packit ae235b
 * @G_IO_ERROR_INVALID_DATA: The input data was invalid. Since 2.24
Packit ae235b
 * @G_IO_ERROR_DBUS_ERROR: A remote object generated an error that
Packit ae235b
 *     doesn't correspond to a locally registered #GError error
Packit ae235b
 *     domain. Use g_dbus_error_get_remote_error() to extract the D-Bus
Packit ae235b
 *     error name and g_dbus_error_strip_remote_error() to fix up the
Packit ae235b
 *     message so it matches what was received on the wire. Since 2.26.
Packit ae235b
 * @G_IO_ERROR_HOST_UNREACHABLE: Host unreachable. Since 2.26
Packit ae235b
 * @G_IO_ERROR_NETWORK_UNREACHABLE: Network unreachable. Since 2.26
Packit ae235b
 * @G_IO_ERROR_CONNECTION_REFUSED: Connection refused. Since 2.26
Packit ae235b
 * @G_IO_ERROR_PROXY_FAILED: Connection to proxy server failed. Since 2.26
Packit ae235b
 * @G_IO_ERROR_PROXY_AUTH_FAILED: Proxy authentication failed. Since 2.26
Packit ae235b
 * @G_IO_ERROR_PROXY_NEED_AUTH: Proxy server needs authentication. Since 2.26
Packit ae235b
 * @G_IO_ERROR_PROXY_NOT_ALLOWED: Proxy connection is not allowed by ruleset.
Packit ae235b
 *     Since 2.26
Packit ae235b
 * @G_IO_ERROR_BROKEN_PIPE: Broken pipe. Since 2.36
Packit ae235b
 * @G_IO_ERROR_CONNECTION_CLOSED: Connection closed by peer. Note that this
Packit ae235b
 *     is the same code as %G_IO_ERROR_BROKEN_PIPE; before 2.44 some
Packit ae235b
 *     "connection closed" errors returned %G_IO_ERROR_BROKEN_PIPE, but others
Packit ae235b
 *     returned %G_IO_ERROR_FAILED. Now they should all return the same
Packit ae235b
 *     value, which has this more logical name. Since 2.44.
Packit ae235b
 * @G_IO_ERROR_NOT_CONNECTED: Transport endpoint is not connected. Since 2.44
Packit ae235b
 * @G_IO_ERROR_MESSAGE_TOO_LARGE: Message too large. Since 2.48.
Packit ae235b
 *
Packit ae235b
 * Error codes returned by GIO functions.
Packit ae235b
 *
Packit ae235b
 * Note that this domain may be extended in future GLib releases. In
Packit ae235b
 * general, new error codes either only apply to new APIs, or else
Packit ae235b
 * replace %G_IO_ERROR_FAILED in cases that were not explicitly
Packit ae235b
 * distinguished before. You should therefore avoid writing code like
Packit ae235b
 * |[
Packit ae235b
 * if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED))
Packit ae235b
 *   {
Packit ae235b
 *     // Assume that this is EPRINTERONFIRE
Packit ae235b
 *     ...
Packit ae235b
 *   }
Packit ae235b
 * ]|
Packit ae235b
 * but should instead treat all unrecognized error codes the same as
Packit ae235b
 * #G_IO_ERROR_FAILED.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_IO_ERROR_FAILED,
Packit ae235b
  G_IO_ERROR_NOT_FOUND,
Packit ae235b
  G_IO_ERROR_EXISTS,
Packit ae235b
  G_IO_ERROR_IS_DIRECTORY,
Packit ae235b
  G_IO_ERROR_NOT_DIRECTORY,
Packit ae235b
  G_IO_ERROR_NOT_EMPTY,
Packit ae235b
  G_IO_ERROR_NOT_REGULAR_FILE,
Packit ae235b
  G_IO_ERROR_NOT_SYMBOLIC_LINK,
Packit ae235b
  G_IO_ERROR_NOT_MOUNTABLE_FILE,
Packit ae235b
  G_IO_ERROR_FILENAME_TOO_LONG,
Packit ae235b
  G_IO_ERROR_INVALID_FILENAME,
Packit ae235b
  G_IO_ERROR_TOO_MANY_LINKS,
Packit ae235b
  G_IO_ERROR_NO_SPACE,
Packit ae235b
  G_IO_ERROR_INVALID_ARGUMENT,
Packit ae235b
  G_IO_ERROR_PERMISSION_DENIED,
Packit ae235b
  G_IO_ERROR_NOT_SUPPORTED,
Packit ae235b
  G_IO_ERROR_NOT_MOUNTED,
Packit ae235b
  G_IO_ERROR_ALREADY_MOUNTED,
Packit ae235b
  G_IO_ERROR_CLOSED,
Packit ae235b
  G_IO_ERROR_CANCELLED,
Packit ae235b
  G_IO_ERROR_PENDING,
Packit ae235b
  G_IO_ERROR_READ_ONLY,
Packit ae235b
  G_IO_ERROR_CANT_CREATE_BACKUP,
Packit ae235b
  G_IO_ERROR_WRONG_ETAG,
Packit ae235b
  G_IO_ERROR_TIMED_OUT,
Packit ae235b
  G_IO_ERROR_WOULD_RECURSE,
Packit ae235b
  G_IO_ERROR_BUSY,
Packit ae235b
  G_IO_ERROR_WOULD_BLOCK,
Packit ae235b
  G_IO_ERROR_HOST_NOT_FOUND,
Packit ae235b
  G_IO_ERROR_WOULD_MERGE,
Packit ae235b
  G_IO_ERROR_FAILED_HANDLED,
Packit ae235b
  G_IO_ERROR_TOO_MANY_OPEN_FILES,
Packit ae235b
  G_IO_ERROR_NOT_INITIALIZED,
Packit ae235b
  G_IO_ERROR_ADDRESS_IN_USE,
Packit ae235b
  G_IO_ERROR_PARTIAL_INPUT,
Packit ae235b
  G_IO_ERROR_INVALID_DATA,
Packit ae235b
  G_IO_ERROR_DBUS_ERROR,
Packit ae235b
  G_IO_ERROR_HOST_UNREACHABLE,
Packit ae235b
  G_IO_ERROR_NETWORK_UNREACHABLE,
Packit ae235b
  G_IO_ERROR_CONNECTION_REFUSED,
Packit ae235b
  G_IO_ERROR_PROXY_FAILED,
Packit ae235b
  G_IO_ERROR_PROXY_AUTH_FAILED,
Packit ae235b
  G_IO_ERROR_PROXY_NEED_AUTH,
Packit ae235b
  G_IO_ERROR_PROXY_NOT_ALLOWED,
Packit ae235b
  G_IO_ERROR_BROKEN_PIPE,
Packit ae235b
  G_IO_ERROR_CONNECTION_CLOSED = G_IO_ERROR_BROKEN_PIPE,
Packit ae235b
  G_IO_ERROR_NOT_CONNECTED,
Packit ae235b
  G_IO_ERROR_MESSAGE_TOO_LARGE
Packit ae235b
} GIOErrorEnum;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GAskPasswordFlags:
Packit ae235b
 * @G_ASK_PASSWORD_NEED_PASSWORD: operation requires a password.
Packit ae235b
 * @G_ASK_PASSWORD_NEED_USERNAME: operation requires a username.
Packit ae235b
 * @G_ASK_PASSWORD_NEED_DOMAIN: operation requires a domain.
Packit ae235b
 * @G_ASK_PASSWORD_SAVING_SUPPORTED: operation supports saving settings.
Packit ae235b
 * @G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: operation supports anonymous users.
Packit ae235b
 *
Packit ae235b
 * #GAskPasswordFlags are used to request specific information from the
Packit ae235b
 * user, or to notify the user of their choices in an authentication
Packit ae235b
 * situation.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_ASK_PASSWORD_NEED_PASSWORD       = (1 << 0),
Packit ae235b
  G_ASK_PASSWORD_NEED_USERNAME       = (1 << 1),
Packit ae235b
  G_ASK_PASSWORD_NEED_DOMAIN         = (1 << 2),
Packit ae235b
  G_ASK_PASSWORD_SAVING_SUPPORTED    = (1 << 3),
Packit ae235b
  G_ASK_PASSWORD_ANONYMOUS_SUPPORTED = (1 << 4)
Packit ae235b
} GAskPasswordFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GPasswordSave:
Packit ae235b
 * @G_PASSWORD_SAVE_NEVER: never save a password.
Packit ae235b
 * @G_PASSWORD_SAVE_FOR_SESSION: save a password for the session.
Packit ae235b
 * @G_PASSWORD_SAVE_PERMANENTLY: save a password permanently.
Packit ae235b
 *
Packit ae235b
 * #GPasswordSave is used to indicate the lifespan of a saved password.
Packit ae235b
 *
Packit ae235b
 * #Gvfs stores passwords in the Gnome keyring when this flag allows it
Packit ae235b
 * to, and later retrieves it again from there.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_PASSWORD_SAVE_NEVER,
Packit ae235b
  G_PASSWORD_SAVE_FOR_SESSION,
Packit ae235b
  G_PASSWORD_SAVE_PERMANENTLY
Packit ae235b
} GPasswordSave;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GMountOperationResult:
Packit ae235b
 * @G_MOUNT_OPERATION_HANDLED: The request was fulfilled and the
Packit ae235b
 *     user specified data is now available
Packit ae235b
 * @G_MOUNT_OPERATION_ABORTED: The user requested the mount operation
Packit ae235b
 *     to be aborted
Packit ae235b
 * @G_MOUNT_OPERATION_UNHANDLED: The request was unhandled (i.e. not
Packit ae235b
 *     implemented)
Packit ae235b
 *
Packit ae235b
 * #GMountOperationResult is returned as a result when a request for
Packit ae235b
 * information is send by the mounting operation.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_MOUNT_OPERATION_HANDLED,
Packit ae235b
  G_MOUNT_OPERATION_ABORTED,
Packit ae235b
  G_MOUNT_OPERATION_UNHANDLED
Packit ae235b
} GMountOperationResult;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GOutputStreamSpliceFlags:
Packit ae235b
 * @G_OUTPUT_STREAM_SPLICE_NONE: Do not close either stream.
Packit ae235b
 * @G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: Close the source stream after
Packit ae235b
 *     the splice.
Packit ae235b
 * @G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: Close the target stream after
Packit ae235b
 *     the splice.
Packit ae235b
 *
Packit ae235b
 * GOutputStreamSpliceFlags determine how streams should be spliced.
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_OUTPUT_STREAM_SPLICE_NONE         = 0,
Packit ae235b
  G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE = (1 << 0),
Packit ae235b
  G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET = (1 << 1)
Packit ae235b
} GOutputStreamSpliceFlags;
Packit ae235b
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GIOStreamSpliceFlags:
Packit ae235b
 * @G_IO_STREAM_SPLICE_NONE: Do not close either stream.
Packit ae235b
 * @G_IO_STREAM_SPLICE_CLOSE_STREAM1: Close the first stream after
Packit ae235b
 *     the splice.
Packit ae235b
 * @G_IO_STREAM_SPLICE_CLOSE_STREAM2: Close the second stream after
Packit ae235b
 *     the splice.
Packit ae235b
 * @G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: Wait for both splice operations to finish
Packit ae235b
 *     before calling the callback.
Packit ae235b
 *
Packit ae235b
 * GIOStreamSpliceFlags determine how streams should be spliced.
Packit ae235b
 *
Packit ae235b
 * Since: 2.28
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_IO_STREAM_SPLICE_NONE          = 0,
Packit ae235b
  G_IO_STREAM_SPLICE_CLOSE_STREAM1 = (1 << 0),
Packit ae235b
  G_IO_STREAM_SPLICE_CLOSE_STREAM2 = (1 << 1),
Packit ae235b
  G_IO_STREAM_SPLICE_WAIT_FOR_BOTH = (1 << 2)
Packit ae235b
} GIOStreamSpliceFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GEmblemOrigin:
Packit ae235b
 * @G_EMBLEM_ORIGIN_UNKNOWN: Emblem of unknown origin
Packit ae235b
 * @G_EMBLEM_ORIGIN_DEVICE: Emblem adds device-specific information
Packit ae235b
 * @G_EMBLEM_ORIGIN_LIVEMETADATA: Emblem depicts live metadata, such as "readonly"
Packit ae235b
 * @G_EMBLEM_ORIGIN_TAG: Emblem comes from a user-defined tag, e.g. set by nautilus (in the future)
Packit ae235b
 *
Packit ae235b
 * GEmblemOrigin is used to add information about the origin of the emblem
Packit ae235b
 * to #GEmblem.
Packit ae235b
 *
Packit ae235b
 * Since: 2.18
Packit ae235b
 */
Packit ae235b
typedef enum  {
Packit ae235b
  G_EMBLEM_ORIGIN_UNKNOWN,
Packit ae235b
  G_EMBLEM_ORIGIN_DEVICE,
Packit ae235b
  G_EMBLEM_ORIGIN_LIVEMETADATA,
Packit ae235b
  G_EMBLEM_ORIGIN_TAG
Packit ae235b
} GEmblemOrigin;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GResolverError:
Packit ae235b
 * @G_RESOLVER_ERROR_NOT_FOUND: the requested name/address/service was not
Packit ae235b
 *     found
Packit ae235b
 * @G_RESOLVER_ERROR_TEMPORARY_FAILURE: the requested information could not
Packit ae235b
 *     be looked up due to a network error or similar problem
Packit ae235b
 * @G_RESOLVER_ERROR_INTERNAL: unknown error
Packit ae235b
 *
Packit ae235b
 * An error code used with %G_RESOLVER_ERROR in a #GError returned
Packit ae235b
 * from a #GResolver routine.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_RESOLVER_ERROR_NOT_FOUND,
Packit ae235b
  G_RESOLVER_ERROR_TEMPORARY_FAILURE,
Packit ae235b
  G_RESOLVER_ERROR_INTERNAL
Packit ae235b
} GResolverError;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GResolverRecordType:
Packit ae235b
 * @G_RESOLVER_RECORD_SRV: lookup DNS SRV records for a domain
Packit ae235b
 * @G_RESOLVER_RECORD_MX: lookup DNS MX records for a domain
Packit ae235b
 * @G_RESOLVER_RECORD_TXT: lookup DNS TXT records for a name
Packit ae235b
 * @G_RESOLVER_RECORD_SOA: lookup DNS SOA records for a zone
Packit ae235b
 * @G_RESOLVER_RECORD_NS: lookup DNS NS records for a domain
Packit ae235b
 *
Packit ae235b
 * The type of record that g_resolver_lookup_records() or
Packit ae235b
 * g_resolver_lookup_records_async() should retrieve. The records are returned
Packit ae235b
 * as lists of #GVariant tuples. Each record type has different values in
Packit ae235b
 * the variant tuples returned.
Packit ae235b
 *
Packit ae235b
 * %G_RESOLVER_RECORD_SRV records are returned as variants with the signature
Packit ae235b
 * '(qqqs)', containing a guint16 with the priority, a guint16 with the
Packit ae235b
 * weight, a guint16 with the port, and a string of the hostname.
Packit ae235b
 *
Packit ae235b
 * %G_RESOLVER_RECORD_MX records are returned as variants with the signature
Packit ae235b
 * '(qs)', representing a guint16 with the preference, and a string containing
Packit ae235b
 * the mail exchanger hostname.
Packit ae235b
 *
Packit ae235b
 * %G_RESOLVER_RECORD_TXT records are returned as variants with the signature
Packit ae235b
 * '(as)', representing an array of the strings in the text record.
Packit ae235b
 *
Packit ae235b
 * %G_RESOLVER_RECORD_SOA records are returned as variants with the signature
Packit ae235b
 * '(ssuuuuu)', representing a string containing the primary name server, a
Packit ae235b
 * string containing the administrator, the serial as a guint32, the refresh
Packit ae235b
 * interval as guint32, the retry interval as a guint32, the expire timeout
Packit ae235b
 * as a guint32, and the ttl as a guint32.
Packit ae235b
 *
Packit ae235b
 * %G_RESOLVER_RECORD_NS records are returned as variants with the signature
Packit ae235b
 * '(s)', representing a string of the hostname of the name server.
Packit ae235b
 *
Packit ae235b
 * Since: 2.34
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_RESOLVER_RECORD_SRV = 1,
Packit ae235b
  G_RESOLVER_RECORD_MX,
Packit ae235b
  G_RESOLVER_RECORD_TXT,
Packit ae235b
  G_RESOLVER_RECORD_SOA,
Packit ae235b
  G_RESOLVER_RECORD_NS
Packit ae235b
} GResolverRecordType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GResourceError:
Packit ae235b
 * @G_RESOURCE_ERROR_NOT_FOUND: no file was found at the requested path
Packit ae235b
 * @G_RESOURCE_ERROR_INTERNAL: unknown error
Packit ae235b
 *
Packit ae235b
 * An error code used with %G_RESOURCE_ERROR in a #GError returned
Packit ae235b
 * from a #GResource routine.
Packit ae235b
 *
Packit ae235b
 * Since: 2.32
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_RESOURCE_ERROR_NOT_FOUND,
Packit ae235b
  G_RESOURCE_ERROR_INTERNAL
Packit ae235b
} GResourceError;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GResourceFlags:
Packit ae235b
 * @G_RESOURCE_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_RESOURCE_FLAGS_COMPRESSED: The file is compressed.
Packit ae235b
 *
Packit ae235b
 * GResourceFlags give information about a particular file inside a resource
Packit ae235b
 * bundle.
Packit ae235b
 * 
Packit ae235b
 * Since: 2.32
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_RESOURCE_FLAGS_NONE       = 0,
Packit ae235b
  G_RESOURCE_FLAGS_COMPRESSED = (1<<0)
Packit ae235b
} GResourceFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GResourceLookupFlags:
Packit ae235b
 * @G_RESOURCE_LOOKUP_FLAGS_NONE: No flags set.
Packit ae235b
 *
Packit ae235b
 * GResourceLookupFlags determine how resource path lookups are handled.
Packit ae235b
 * 
Packit ae235b
 * Since: 2.32
Packit ae235b
 **/
Packit ae235b
typedef enum /*< flags >*/ {
Packit ae235b
  G_RESOURCE_LOOKUP_FLAGS_NONE       = 0
Packit ae235b
} GResourceLookupFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSocketFamily:
Packit ae235b
 * @G_SOCKET_FAMILY_INVALID: no address family
Packit ae235b
 * @G_SOCKET_FAMILY_IPV4: the IPv4 family
Packit ae235b
 * @G_SOCKET_FAMILY_IPV6: the IPv6 family
Packit ae235b
 * @G_SOCKET_FAMILY_UNIX: the UNIX domain family
Packit ae235b
 *
Packit ae235b
 * The protocol family of a #GSocketAddress. (These values are
Packit ae235b
 * identical to the system defines %AF_INET, %AF_INET6 and %AF_UNIX,
Packit ae235b
 * if available.)
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_SOCKET_FAMILY_INVALID,
Packit ae235b
  G_SOCKET_FAMILY_UNIX = GLIB_SYSDEF_AF_UNIX,
Packit ae235b
  G_SOCKET_FAMILY_IPV4 = GLIB_SYSDEF_AF_INET,
Packit ae235b
  G_SOCKET_FAMILY_IPV6 = GLIB_SYSDEF_AF_INET6
Packit ae235b
} GSocketFamily;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSocketType:
Packit ae235b
 * @G_SOCKET_TYPE_INVALID: Type unknown or wrong
Packit ae235b
 * @G_SOCKET_TYPE_STREAM: Reliable connection-based byte streams (e.g. TCP).
Packit ae235b
 * @G_SOCKET_TYPE_DATAGRAM: Connectionless, unreliable datagram passing.
Packit ae235b
 *     (e.g. UDP)
Packit ae235b
 * @G_SOCKET_TYPE_SEQPACKET: Reliable connection-based passing of datagrams
Packit ae235b
 *     of fixed maximum length (e.g. SCTP).
Packit ae235b
 *
Packit ae235b
 * Flags used when creating a #GSocket. Some protocols may not implement
Packit ae235b
 * all the socket types.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_SOCKET_TYPE_INVALID,
Packit ae235b
  G_SOCKET_TYPE_STREAM,
Packit ae235b
  G_SOCKET_TYPE_DATAGRAM,
Packit ae235b
  G_SOCKET_TYPE_SEQPACKET
Packit ae235b
} GSocketType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSocketMsgFlags:
Packit ae235b
 * @G_SOCKET_MSG_NONE: No flags.
Packit ae235b
 * @G_SOCKET_MSG_OOB: Request to send/receive out of band data.
Packit ae235b
 * @G_SOCKET_MSG_PEEK: Read data from the socket without removing it from
Packit ae235b
 *     the queue.
Packit ae235b
 * @G_SOCKET_MSG_DONTROUTE: Don't use a gateway to send out the packet,
Packit ae235b
 *     only send to hosts on directly connected networks.
Packit ae235b
 *
Packit ae235b
 * Flags used in g_socket_receive_message() and g_socket_send_message().
Packit ae235b
 * The flags listed in the enum are some commonly available flags, but the
Packit ae235b
 * values used for them are the same as on the platform, and any other flags
Packit ae235b
 * are passed in/out as is. So to use a platform specific flag, just include
Packit ae235b
 * the right system header and pass in the flag.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum /*< flags >*/
Packit ae235b
{
Packit ae235b
  G_SOCKET_MSG_NONE,
Packit ae235b
  G_SOCKET_MSG_OOB = GLIB_SYSDEF_MSG_OOB,
Packit ae235b
  G_SOCKET_MSG_PEEK = GLIB_SYSDEF_MSG_PEEK,
Packit ae235b
  G_SOCKET_MSG_DONTROUTE = GLIB_SYSDEF_MSG_DONTROUTE
Packit ae235b
} GSocketMsgFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSocketProtocol:
Packit ae235b
 * @G_SOCKET_PROTOCOL_UNKNOWN: The protocol type is unknown
Packit ae235b
 * @G_SOCKET_PROTOCOL_DEFAULT: The default protocol for the family/type
Packit ae235b
 * @G_SOCKET_PROTOCOL_TCP: TCP over IP
Packit ae235b
 * @G_SOCKET_PROTOCOL_UDP: UDP over IP
Packit ae235b
 * @G_SOCKET_PROTOCOL_SCTP: SCTP over IP
Packit ae235b
 *
Packit ae235b
 * A protocol identifier is specified when creating a #GSocket, which is a
Packit ae235b
 * family/type specific identifier, where 0 means the default protocol for
Packit ae235b
 * the particular family/type.
Packit ae235b
 *
Packit ae235b
 * This enum contains a set of commonly available and used protocols. You
Packit ae235b
 * can also pass any other identifiers handled by the platform in order to
Packit ae235b
 * use protocols not listed here.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_SOCKET_PROTOCOL_UNKNOWN = -1,
Packit ae235b
  G_SOCKET_PROTOCOL_DEFAULT = 0,
Packit ae235b
  G_SOCKET_PROTOCOL_TCP     = 6,
Packit ae235b
  G_SOCKET_PROTOCOL_UDP     = 17,
Packit ae235b
  G_SOCKET_PROTOCOL_SCTP    = 132
Packit ae235b
} GSocketProtocol;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GZlibCompressorFormat:
Packit ae235b
 * @G_ZLIB_COMPRESSOR_FORMAT_ZLIB: deflate compression with zlib header
Packit ae235b
 * @G_ZLIB_COMPRESSOR_FORMAT_GZIP: gzip file format
Packit ae235b
 * @G_ZLIB_COMPRESSOR_FORMAT_RAW: deflate compression with no header
Packit ae235b
 *
Packit ae235b
 * Used to select the type of data format to use for #GZlibDecompressor
Packit ae235b
 * and #GZlibCompressor.
Packit ae235b
 *
Packit ae235b
 * Since: 2.24
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_ZLIB_COMPRESSOR_FORMAT_ZLIB,
Packit ae235b
  G_ZLIB_COMPRESSOR_FORMAT_GZIP,
Packit ae235b
  G_ZLIB_COMPRESSOR_FORMAT_RAW
Packit ae235b
} GZlibCompressorFormat;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GUnixSocketAddressType:
Packit ae235b
 * @G_UNIX_SOCKET_ADDRESS_INVALID: invalid
Packit ae235b
 * @G_UNIX_SOCKET_ADDRESS_ANONYMOUS: anonymous
Packit ae235b
 * @G_UNIX_SOCKET_ADDRESS_PATH: a filesystem path
Packit ae235b
 * @G_UNIX_SOCKET_ADDRESS_ABSTRACT: an abstract name
Packit ae235b
 * @G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: an abstract name, 0-padded
Packit ae235b
 *   to the full length of a unix socket name
Packit ae235b
 *
Packit ae235b
 * The type of name used by a #GUnixSocketAddress.
Packit ae235b
 * %G_UNIX_SOCKET_ADDRESS_PATH indicates a traditional unix domain
Packit ae235b
 * socket bound to a filesystem path. %G_UNIX_SOCKET_ADDRESS_ANONYMOUS
Packit ae235b
 * indicates a socket not bound to any name (eg, a client-side socket,
Packit ae235b
 * or a socket created with socketpair()).
Packit ae235b
 *
Packit ae235b
 * For abstract sockets, there are two incompatible ways of naming
Packit ae235b
 * them; the man pages suggest using the entire `struct sockaddr_un`
Packit ae235b
 * as the name, padding the unused parts of the %sun_path field with
Packit ae235b
 * zeroes; this corresponds to %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED.
Packit ae235b
 * However, many programs instead just use a portion of %sun_path, and
Packit ae235b
 * pass an appropriate smaller length to bind() or connect(). This is
Packit ae235b
 * %G_UNIX_SOCKET_ADDRESS_ABSTRACT.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_UNIX_SOCKET_ADDRESS_INVALID,
Packit ae235b
  G_UNIX_SOCKET_ADDRESS_ANONYMOUS,
Packit ae235b
  G_UNIX_SOCKET_ADDRESS_PATH,
Packit ae235b
  G_UNIX_SOCKET_ADDRESS_ABSTRACT,
Packit ae235b
  G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED
Packit ae235b
} GUnixSocketAddressType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GBusType:
Packit ae235b
 * @G_BUS_TYPE_STARTER: An alias for the message bus that activated the process, if any.
Packit ae235b
 * @G_BUS_TYPE_NONE: Not a message bus.
Packit ae235b
 * @G_BUS_TYPE_SYSTEM: The system-wide message bus.
Packit ae235b
 * @G_BUS_TYPE_SESSION: The login session message bus.
Packit ae235b
 *
Packit ae235b
 * An enumeration for well-known message buses.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_BUS_TYPE_STARTER = -1,
Packit ae235b
  G_BUS_TYPE_NONE = 0,
Packit ae235b
  G_BUS_TYPE_SYSTEM  = 1,
Packit ae235b
  G_BUS_TYPE_SESSION = 2
Packit ae235b
} GBusType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GBusNameOwnerFlags:
Packit ae235b
 * @G_BUS_NAME_OWNER_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: Allow another message bus connection to claim the name.
Packit ae235b
 * @G_BUS_NAME_OWNER_FLAGS_REPLACE: If another message bus connection owns the name and have
Packit ae235b
 * specified #G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT, then take the name from the other connection.
Packit ae235b
 * @G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE: If another message bus connection owns the name, immediately
Packit ae235b
 * return an error from g_bus_own_name() rather than entering the waiting queue for that name. (Since 2.54)
Packit ae235b
 *
Packit ae235b
 * Flags used in g_bus_own_name().
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_BUS_NAME_OWNER_FLAGS_NONE = 0,                    /*< nick=none >*/
Packit ae235b
  G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT = (1<<0),  /*< nick=allow-replacement >*/
Packit ae235b
  G_BUS_NAME_OWNER_FLAGS_REPLACE = (1<<1),           /*< nick=replace >*/
Packit ae235b
  G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE = (1<<2)       /*< nick=do-not-queue >*/
Packit ae235b
} GBusNameOwnerFlags;
Packit ae235b
/* When adding new flags, their numeric values must currently match those
Packit ae235b
 * used in the D-Bus Specification. */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GBusNameWatcherFlags:
Packit ae235b
 * @G_BUS_NAME_WATCHER_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_BUS_NAME_WATCHER_FLAGS_AUTO_START: If no-one owns the name when
Packit ae235b
 * beginning to watch the name, ask the bus to launch an owner for the
Packit ae235b
 * name.
Packit ae235b
 *
Packit ae235b
 * Flags used in g_bus_watch_name().
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_BUS_NAME_WATCHER_FLAGS_NONE = 0,
Packit ae235b
  G_BUS_NAME_WATCHER_FLAGS_AUTO_START = (1<<0)
Packit ae235b
} GBusNameWatcherFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusProxyFlags:
Packit ae235b
 * @G_DBUS_PROXY_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: Don't load properties.
Packit ae235b
 * @G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: Don't connect to signals on the remote object.
Packit ae235b
 * @G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: If the proxy is for a well-known name,
Packit ae235b
 * do not ask the bus to launch an owner during proxy initialization or a method call.
Packit ae235b
 * This flag is only meaningful in proxies for well-known names.
Packit ae235b
 * @G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: If set, the property value for any __invalidated property__ will be (asynchronously) retrieved upon receiving the [`PropertiesChanged`](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties) D-Bus signal and the property will not cause emission of the #GDBusProxy::g-properties-changed signal. When the value is received the #GDBusProxy::g-properties-changed signal is emitted for the property along with the retrieved value. Since 2.32.
Packit ae235b
 * @G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: If the proxy is for a well-known name,
Packit ae235b
 * do not ask the bus to launch an owner during proxy initialization, but allow it to be
Packit ae235b
 * autostarted by a method call. This flag is only meaningful in proxies for well-known names,
Packit ae235b
 * and only if %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START is not also specified.
Packit ae235b
 *
Packit ae235b
 * Flags used when constructing an instance of a #GDBusProxy derived class.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_PROXY_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES = (1<<0),
Packit ae235b
  G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS = (1<<1),
Packit ae235b
  G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START = (1<<2),
Packit ae235b
  G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES = (1<<3),
Packit ae235b
  G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION = (1<<4)
Packit ae235b
} GDBusProxyFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusError:
Packit ae235b
 * @G_DBUS_ERROR_FAILED:
Packit ae235b
 * A generic error; "something went wrong" - see the error message for
Packit ae235b
 * more.
Packit ae235b
 * @G_DBUS_ERROR_NO_MEMORY:
Packit ae235b
 * There was not enough memory to complete an operation.
Packit ae235b
 * @G_DBUS_ERROR_SERVICE_UNKNOWN:
Packit ae235b
 * The bus doesn't know how to launch a service to supply the bus name
Packit ae235b
 * you wanted.
Packit ae235b
 * @G_DBUS_ERROR_NAME_HAS_NO_OWNER:
Packit ae235b
 * The bus name you referenced doesn't exist (i.e. no application owns
Packit ae235b
 * it).
Packit ae235b
 * @G_DBUS_ERROR_NO_REPLY:
Packit ae235b
 * No reply to a message expecting one, usually means a timeout occurred.
Packit ae235b
 * @G_DBUS_ERROR_IO_ERROR:
Packit ae235b
 * Something went wrong reading or writing to a socket, for example.
Packit ae235b
 * @G_DBUS_ERROR_BAD_ADDRESS:
Packit ae235b
 * A D-Bus bus address was malformed.
Packit ae235b
 * @G_DBUS_ERROR_NOT_SUPPORTED:
Packit ae235b
 * Requested operation isn't supported (like ENOSYS on UNIX).
Packit ae235b
 * @G_DBUS_ERROR_LIMITS_EXCEEDED:
Packit ae235b
 * Some limited resource is exhausted.
Packit ae235b
 * @G_DBUS_ERROR_ACCESS_DENIED:
Packit ae235b
 * Security restrictions don't allow doing what you're trying to do.
Packit ae235b
 * @G_DBUS_ERROR_AUTH_FAILED:
Packit ae235b
 * Authentication didn't work.
Packit ae235b
 * @G_DBUS_ERROR_NO_SERVER:
Packit ae235b
 * Unable to connect to server (probably caused by ECONNREFUSED on a
Packit ae235b
 * socket).
Packit ae235b
 * @G_DBUS_ERROR_TIMEOUT:
Packit ae235b
 * Certain timeout errors, possibly ETIMEDOUT on a socket.  Note that
Packit ae235b
 * %G_DBUS_ERROR_NO_REPLY is used for message reply timeouts. Warning:
Packit ae235b
 * this is confusingly-named given that %G_DBUS_ERROR_TIMED_OUT also
Packit ae235b
 * exists. We can't fix it for compatibility reasons so just be
Packit ae235b
 * careful.
Packit ae235b
 * @G_DBUS_ERROR_NO_NETWORK:
Packit ae235b
 * No network access (probably ENETUNREACH on a socket).
Packit ae235b
 * @G_DBUS_ERROR_ADDRESS_IN_USE:
Packit ae235b
 * Can't bind a socket since its address is in use (i.e. EADDRINUSE).
Packit ae235b
 * @G_DBUS_ERROR_DISCONNECTED:
Packit ae235b
 * The connection is disconnected and you're trying to use it.
Packit ae235b
 * @G_DBUS_ERROR_INVALID_ARGS:
Packit ae235b
 * Invalid arguments passed to a method call.
Packit ae235b
 * @G_DBUS_ERROR_FILE_NOT_FOUND:
Packit ae235b
 * Missing file.
Packit ae235b
 * @G_DBUS_ERROR_FILE_EXISTS:
Packit ae235b
 * Existing file and the operation you're using does not silently overwrite.
Packit ae235b
 * @G_DBUS_ERROR_UNKNOWN_METHOD:
Packit ae235b
 * Method name you invoked isn't known by the object you invoked it on.
Packit ae235b
 * @G_DBUS_ERROR_UNKNOWN_OBJECT:
Packit ae235b
 * Object you invoked a method on isn't known. Since 2.42
Packit ae235b
 * @G_DBUS_ERROR_UNKNOWN_INTERFACE:
Packit ae235b
 * Interface you invoked a method on isn't known by the object. Since 2.42
Packit ae235b
 * @G_DBUS_ERROR_UNKNOWN_PROPERTY:
Packit ae235b
 * Property you tried to access isn't known by the object. Since 2.42
Packit ae235b
 * @G_DBUS_ERROR_PROPERTY_READ_ONLY:
Packit ae235b
 * Property you tried to set is read-only. Since 2.42
Packit ae235b
 * @G_DBUS_ERROR_TIMED_OUT:
Packit ae235b
 * Certain timeout errors, e.g. while starting a service. Warning: this is
Packit ae235b
 * confusingly-named given that %G_DBUS_ERROR_TIMEOUT also exists. We
Packit ae235b
 * can't fix it for compatibility reasons so just be careful.
Packit ae235b
 * @G_DBUS_ERROR_MATCH_RULE_NOT_FOUND:
Packit ae235b
 * Tried to remove or modify a match rule that didn't exist.
Packit ae235b
 * @G_DBUS_ERROR_MATCH_RULE_INVALID:
Packit ae235b
 * The match rule isn't syntactically valid.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_EXEC_FAILED:
Packit ae235b
 * While starting a new process, the exec() call failed.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_FORK_FAILED:
Packit ae235b
 * While starting a new process, the fork() call failed.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_CHILD_EXITED:
Packit ae235b
 * While starting a new process, the child exited with a status code.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_CHILD_SIGNALED:
Packit ae235b
 * While starting a new process, the child exited on a signal.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_FAILED:
Packit ae235b
 * While starting a new process, something went wrong.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_SETUP_FAILED:
Packit ae235b
 * We failed to setup the environment correctly.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_CONFIG_INVALID:
Packit ae235b
 * We failed to setup the config parser correctly.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_SERVICE_INVALID:
Packit ae235b
 * Bus name was not valid.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND:
Packit ae235b
 * Service file not found in system-services directory.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID:
Packit ae235b
 * Permissions are incorrect on the setuid helper.
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_FILE_INVALID:
Packit ae235b
 * Service file invalid (Name, User or Exec missing).
Packit ae235b
 * @G_DBUS_ERROR_SPAWN_NO_MEMORY:
Packit ae235b
 * Tried to get a UNIX process ID and it wasn't available.
Packit ae235b
 * @G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN:
Packit ae235b
 * Tried to get a UNIX process ID and it wasn't available.
Packit ae235b
 * @G_DBUS_ERROR_INVALID_SIGNATURE:
Packit ae235b
 * A type signature is not valid.
Packit ae235b
 * @G_DBUS_ERROR_INVALID_FILE_CONTENT:
Packit ae235b
 * A file contains invalid syntax or is otherwise broken.
Packit ae235b
 * @G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN:
Packit ae235b
 * Asked for SELinux security context and it wasn't available.
Packit ae235b
 * @G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN:
Packit ae235b
 * Asked for ADT audit data and it wasn't available.
Packit ae235b
 * @G_DBUS_ERROR_OBJECT_PATH_IN_USE:
Packit ae235b
 * There's already an object with the requested object path.
Packit ae235b
 *
Packit ae235b
 * Error codes for the %G_DBUS_ERROR error domain.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  /* Well-known errors in the org.freedesktop.DBus.Error namespace */
Packit ae235b
  G_DBUS_ERROR_FAILED,                           /* org.freedesktop.DBus.Error.Failed */
Packit ae235b
  G_DBUS_ERROR_NO_MEMORY,                        /* org.freedesktop.DBus.Error.NoMemory */
Packit ae235b
  G_DBUS_ERROR_SERVICE_UNKNOWN,                  /* org.freedesktop.DBus.Error.ServiceUnknown */
Packit ae235b
  G_DBUS_ERROR_NAME_HAS_NO_OWNER,                /* org.freedesktop.DBus.Error.NameHasNoOwner */
Packit ae235b
  G_DBUS_ERROR_NO_REPLY,                         /* org.freedesktop.DBus.Error.NoReply */
Packit ae235b
  G_DBUS_ERROR_IO_ERROR,                         /* org.freedesktop.DBus.Error.IOError */
Packit ae235b
  G_DBUS_ERROR_BAD_ADDRESS,                      /* org.freedesktop.DBus.Error.BadAddress */
Packit ae235b
  G_DBUS_ERROR_NOT_SUPPORTED,                    /* org.freedesktop.DBus.Error.NotSupported */
Packit ae235b
  G_DBUS_ERROR_LIMITS_EXCEEDED,                  /* org.freedesktop.DBus.Error.LimitsExceeded */
Packit ae235b
  G_DBUS_ERROR_ACCESS_DENIED,                    /* org.freedesktop.DBus.Error.AccessDenied */
Packit ae235b
  G_DBUS_ERROR_AUTH_FAILED,                      /* org.freedesktop.DBus.Error.AuthFailed */
Packit ae235b
  G_DBUS_ERROR_NO_SERVER,                        /* org.freedesktop.DBus.Error.NoServer */
Packit ae235b
  G_DBUS_ERROR_TIMEOUT,                          /* org.freedesktop.DBus.Error.Timeout */
Packit ae235b
  G_DBUS_ERROR_NO_NETWORK,                       /* org.freedesktop.DBus.Error.NoNetwork */
Packit ae235b
  G_DBUS_ERROR_ADDRESS_IN_USE,                   /* org.freedesktop.DBus.Error.AddressInUse */
Packit ae235b
  G_DBUS_ERROR_DISCONNECTED,                     /* org.freedesktop.DBus.Error.Disconnected */
Packit ae235b
  G_DBUS_ERROR_INVALID_ARGS,                     /* org.freedesktop.DBus.Error.InvalidArgs */
Packit ae235b
  G_DBUS_ERROR_FILE_NOT_FOUND,                   /* org.freedesktop.DBus.Error.FileNotFound */
Packit ae235b
  G_DBUS_ERROR_FILE_EXISTS,                      /* org.freedesktop.DBus.Error.FileExists */
Packit ae235b
  G_DBUS_ERROR_UNKNOWN_METHOD,                   /* org.freedesktop.DBus.Error.UnknownMethod */
Packit ae235b
  G_DBUS_ERROR_TIMED_OUT,                        /* org.freedesktop.DBus.Error.TimedOut */
Packit ae235b
  G_DBUS_ERROR_MATCH_RULE_NOT_FOUND,             /* org.freedesktop.DBus.Error.MatchRuleNotFound */
Packit ae235b
  G_DBUS_ERROR_MATCH_RULE_INVALID,               /* org.freedesktop.DBus.Error.MatchRuleInvalid */
Packit ae235b
  G_DBUS_ERROR_SPAWN_EXEC_FAILED,                /* org.freedesktop.DBus.Error.Spawn.ExecFailed */
Packit ae235b
  G_DBUS_ERROR_SPAWN_FORK_FAILED,                /* org.freedesktop.DBus.Error.Spawn.ForkFailed */
Packit ae235b
  G_DBUS_ERROR_SPAWN_CHILD_EXITED,               /* org.freedesktop.DBus.Error.Spawn.ChildExited */
Packit ae235b
  G_DBUS_ERROR_SPAWN_CHILD_SIGNALED,             /* org.freedesktop.DBus.Error.Spawn.ChildSignaled */
Packit ae235b
  G_DBUS_ERROR_SPAWN_FAILED,                     /* org.freedesktop.DBus.Error.Spawn.Failed */
Packit ae235b
  G_DBUS_ERROR_SPAWN_SETUP_FAILED,               /* org.freedesktop.DBus.Error.Spawn.FailedToSetup */
Packit ae235b
  G_DBUS_ERROR_SPAWN_CONFIG_INVALID,             /* org.freedesktop.DBus.Error.Spawn.ConfigInvalid */
Packit ae235b
  G_DBUS_ERROR_SPAWN_SERVICE_INVALID,            /* org.freedesktop.DBus.Error.Spawn.ServiceNotValid */
Packit ae235b
  G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND,          /* org.freedesktop.DBus.Error.Spawn.ServiceNotFound */
Packit ae235b
  G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID,        /* org.freedesktop.DBus.Error.Spawn.PermissionsInvalid */
Packit ae235b
  G_DBUS_ERROR_SPAWN_FILE_INVALID,               /* org.freedesktop.DBus.Error.Spawn.FileInvalid */
Packit ae235b
  G_DBUS_ERROR_SPAWN_NO_MEMORY,                  /* org.freedesktop.DBus.Error.Spawn.NoMemory */
Packit ae235b
  G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN,          /* org.freedesktop.DBus.Error.UnixProcessIdUnknown */
Packit ae235b
  G_DBUS_ERROR_INVALID_SIGNATURE,                /* org.freedesktop.DBus.Error.InvalidSignature */
Packit ae235b
  G_DBUS_ERROR_INVALID_FILE_CONTENT,             /* org.freedesktop.DBus.Error.InvalidFileContent */
Packit ae235b
  G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN, /* org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown */
Packit ae235b
  G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN,           /* org.freedesktop.DBus.Error.AdtAuditDataUnknown */
Packit ae235b
  G_DBUS_ERROR_OBJECT_PATH_IN_USE,               /* org.freedesktop.DBus.Error.ObjectPathInUse */
Packit ae235b
  G_DBUS_ERROR_UNKNOWN_OBJECT,                   /* org.freedesktop.DBus.Error.UnknownObject */
Packit ae235b
  G_DBUS_ERROR_UNKNOWN_INTERFACE,                /* org.freedesktop.DBus.Error.UnknownInterface */
Packit ae235b
  G_DBUS_ERROR_UNKNOWN_PROPERTY,                 /* org.freedesktop.DBus.Error.UnknownProperty */
Packit ae235b
  G_DBUS_ERROR_PROPERTY_READ_ONLY                /* org.freedesktop.DBus.Error.PropertyReadOnly */
Packit ae235b
} GDBusError;
Packit ae235b
/* Remember to update g_dbus_error_quark() in gdbuserror.c if you extend this enumeration */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusConnectionFlags:
Packit ae235b
 * @G_DBUS_CONNECTION_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: Perform authentication against server.
Packit ae235b
 * @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: Perform authentication against client.
Packit ae235b
 * @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: When
Packit ae235b
 * authenticating as a server, allow the anonymous authentication
Packit ae235b
 * method.
Packit ae235b
 * @G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: Pass this flag if connecting to a peer that is a
Packit ae235b
 * message bus. This means that the Hello() method will be invoked as part of the connection setup.
Packit ae235b
 * @G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: If set, processing of D-Bus messages is
Packit ae235b
 * delayed until g_dbus_connection_start_message_processing() is called.
Packit ae235b
 *
Packit ae235b
 * Flags used when creating a new #GDBusConnection.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DBUS_CONNECTION_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT = (1<<0),
Packit ae235b
  G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER = (1<<1),
Packit ae235b
  G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = (1<<2),
Packit ae235b
  G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION = (1<<3),
Packit ae235b
  G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING = (1<<4)
Packit ae235b
} GDBusConnectionFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusCapabilityFlags:
Packit ae235b
 * @G_DBUS_CAPABILITY_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: The connection
Packit ae235b
 * supports exchanging UNIX file descriptors with the remote peer.
Packit ae235b
 *
Packit ae235b
 * Capabilities negotiated with the remote peer.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DBUS_CAPABILITY_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING = (1<<0)
Packit ae235b
} GDBusCapabilityFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusCallFlags:
Packit ae235b
 * @G_DBUS_CALL_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_CALL_FLAGS_NO_AUTO_START: The bus must not launch
Packit ae235b
 * an owner for the destination name in response to this method
Packit ae235b
 * invocation.
Packit ae235b
 * @G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: the caller is prepared to
Packit ae235b
 * wait for interactive authorization. Since 2.46.
Packit ae235b
 *
Packit ae235b
 * Flags used in g_dbus_connection_call() and similar APIs.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DBUS_CALL_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_CALL_FLAGS_NO_AUTO_START = (1<<0),
Packit ae235b
  G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION = (1<<1)
Packit ae235b
} GDBusCallFlags;
Packit ae235b
/* (1<<31) is reserved for internal use by GDBusConnection, do not use it. */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusMessageType:
Packit ae235b
 * @G_DBUS_MESSAGE_TYPE_INVALID: Message is of invalid type.
Packit ae235b
 * @G_DBUS_MESSAGE_TYPE_METHOD_CALL: Method call.
Packit ae235b
 * @G_DBUS_MESSAGE_TYPE_METHOD_RETURN: Method reply.
Packit ae235b
 * @G_DBUS_MESSAGE_TYPE_ERROR: Error reply.
Packit ae235b
 * @G_DBUS_MESSAGE_TYPE_SIGNAL: Signal emission.
Packit ae235b
 *
Packit ae235b
 * Message types used in #GDBusMessage.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DBUS_MESSAGE_TYPE_INVALID,
Packit ae235b
  G_DBUS_MESSAGE_TYPE_METHOD_CALL,
Packit ae235b
  G_DBUS_MESSAGE_TYPE_METHOD_RETURN,
Packit ae235b
  G_DBUS_MESSAGE_TYPE_ERROR,
Packit ae235b
  G_DBUS_MESSAGE_TYPE_SIGNAL
Packit ae235b
} GDBusMessageType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusMessageFlags:
Packit ae235b
 * @G_DBUS_MESSAGE_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: A reply is not expected.
Packit ae235b
 * @G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: The bus must not launch an
Packit ae235b
 * owner for the destination name in response to this message.
Packit ae235b
 * @G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: If set on a method
Packit ae235b
 * call, this flag means that the caller is prepared to wait for interactive
Packit ae235b
 * authorization. Since 2.46.
Packit ae235b
 *
Packit ae235b
 * Message flags used in #GDBusMessage.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DBUS_MESSAGE_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED = (1<<0),
Packit ae235b
  G_DBUS_MESSAGE_FLAGS_NO_AUTO_START = (1<<1),
Packit ae235b
  G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION = (1<<2)
Packit ae235b
} GDBusMessageFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusMessageHeaderField:
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_INVALID: Not a valid header field.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_PATH: The object path.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: The interface name.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: The method or signal name.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: The name of the error that occurred.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL: The serial number the message is a reply to.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: The name the message is intended for.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_SENDER: Unique name of the sender of the message (filled in by the bus).
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: The signature of the message body.
Packit ae235b
 * @G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: The number of UNIX file descriptors that accompany the message.
Packit ae235b
 *
Packit ae235b
 * Header fields used in #GDBusMessage.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_INVALID,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_PATH,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_MEMBER,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_SENDER,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE,
Packit ae235b
  G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS
Packit ae235b
} GDBusMessageHeaderField;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusPropertyInfoFlags:
Packit ae235b
 * @G_DBUS_PROPERTY_INFO_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_PROPERTY_INFO_FLAGS_READABLE: Property is readable.
Packit ae235b
 * @G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: Property is writable.
Packit ae235b
 *
Packit ae235b
 * Flags describing the access control of a D-Bus property.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_PROPERTY_INFO_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_PROPERTY_INFO_FLAGS_READABLE = (1<<0),
Packit ae235b
  G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE = (1<<1)
Packit ae235b
} GDBusPropertyInfoFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusSubtreeFlags:
Packit ae235b
 * @G_DBUS_SUBTREE_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: Method calls to objects not in the enumerated range
Packit ae235b
 *                                                       will still be dispatched. This is useful if you want
Packit ae235b
 *                                                       to dynamically spawn objects in the subtree.
Packit ae235b
 *
Packit ae235b
 * Flags passed to g_dbus_connection_register_subtree().
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_SUBTREE_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES = (1<<0)
Packit ae235b
} GDBusSubtreeFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusServerFlags:
Packit ae235b
 * @G_DBUS_SERVER_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: All #GDBusServer::new-connection
Packit ae235b
 * signals will run in separated dedicated threads (see signal for
Packit ae235b
 * details).
Packit ae235b
 * @G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: Allow the anonymous
Packit ae235b
 * authentication method.
Packit ae235b
 *
Packit ae235b
 * Flags used when creating a #GDBusServer.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_SERVER_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_SERVER_FLAGS_RUN_IN_THREAD = (1<<0),
Packit ae235b
  G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = (1<<1)
Packit ae235b
} GDBusServerFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusSignalFlags:
Packit ae235b
 * @G_DBUS_SIGNAL_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: Don't actually send the AddMatch
Packit ae235b
 * D-Bus call for this signal subscription.  This gives you more control
Packit ae235b
 * over which match rules you add (but you must add them manually).
Packit ae235b
 * @G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: Match first arguments that
Packit ae235b
 * contain a bus or interface name with the given namespace.
Packit ae235b
 * @G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: Match first arguments that
Packit ae235b
 * contain an object path that is either equivalent to the given path,
Packit ae235b
 * or one of the paths is a subpath of the other.
Packit ae235b
 *
Packit ae235b
 * Flags used when subscribing to signals via g_dbus_connection_signal_subscribe().
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum /*< flags >*/
Packit ae235b
{
Packit ae235b
  G_DBUS_SIGNAL_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE = (1<<0),
Packit ae235b
  G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE = (1<<1),
Packit ae235b
  G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH = (1<<2)
Packit ae235b
} GDBusSignalFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusSendMessageFlags:
Packit ae235b
 * @G_DBUS_SEND_MESSAGE_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: Do not automatically
Packit ae235b
 * assign a serial number from the #GDBusConnection object when
Packit ae235b
 * sending a message.
Packit ae235b
 *
Packit ae235b
 * Flags used when sending #GDBusMessages on a #GDBusConnection.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_SEND_MESSAGE_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL = (1<<0)
Packit ae235b
} GDBusSendMessageFlags;
Packit ae235b
/* (1<<31) is reserved for internal use by GDBusConnection, do not use it. */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GCredentialsType:
Packit ae235b
 * @G_CREDENTIALS_TYPE_INVALID: Indicates an invalid native credential type.
Packit ae235b
 * @G_CREDENTIALS_TYPE_LINUX_UCRED: The native credentials type is a struct ucred.
Packit ae235b
 * @G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: The native credentials type is a struct cmsgcred.
Packit ae235b
 * @G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: The native credentials type is a struct sockpeercred. Added in 2.30.
Packit ae235b
 * @G_CREDENTIALS_TYPE_SOLARIS_UCRED: The native credentials type is a ucred_t. Added in 2.40.
Packit ae235b
 * @G_CREDENTIALS_TYPE_NETBSD_UNPCBID: The native credentials type is a struct unpcbid.
Packit ae235b
 *
Packit ae235b
 * Enumeration describing different kinds of native credential types.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_CREDENTIALS_TYPE_INVALID,
Packit ae235b
  G_CREDENTIALS_TYPE_LINUX_UCRED,
Packit ae235b
  G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED,
Packit ae235b
  G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED,
Packit ae235b
  G_CREDENTIALS_TYPE_SOLARIS_UCRED,
Packit ae235b
  G_CREDENTIALS_TYPE_NETBSD_UNPCBID
Packit ae235b
} GCredentialsType;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusMessageByteOrder:
Packit ae235b
 * @G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: The byte order is big endian.
Packit ae235b
 * @G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: The byte order is little endian.
Packit ae235b
 *
Packit ae235b
 * Enumeration used to describe the byte order of a D-Bus message.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN    = 'B',
Packit ae235b
  G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN = 'l'
Packit ae235b
} GDBusMessageByteOrder;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GApplicationFlags:
Packit ae235b
 * @G_APPLICATION_FLAGS_NONE: Default
Packit ae235b
 * @G_APPLICATION_IS_SERVICE: Run as a service. In this mode, registration
Packit ae235b
 *      fails if the service is already running, and the application
Packit ae235b
 *      will initially wait up to 10 seconds for an initial activation
Packit ae235b
 *      message to arrive.
Packit ae235b
 * @G_APPLICATION_IS_LAUNCHER: Don't try to become the primary instance.
Packit ae235b
 * @G_APPLICATION_HANDLES_OPEN: This application handles opening files (in
Packit ae235b
 *     the primary instance). Note that this flag only affects the default
Packit ae235b
 *     implementation of local_command_line(), and has no effect if
Packit ae235b
 *     %G_APPLICATION_HANDLES_COMMAND_LINE is given.
Packit ae235b
 *     See g_application_run() for details.
Packit ae235b
 * @G_APPLICATION_HANDLES_COMMAND_LINE: This application handles command line
Packit ae235b
 *     arguments (in the primary instance). Note that this flag only affect
Packit ae235b
 *     the default implementation of local_command_line().
Packit ae235b
 *     See g_application_run() for details.
Packit ae235b
 * @G_APPLICATION_SEND_ENVIRONMENT: Send the environment of the
Packit ae235b
 *     launching process to the primary instance. Set this flag if your
Packit ae235b
 *     application is expected to behave differently depending on certain
Packit ae235b
 *     environment variables. For instance, an editor might be expected
Packit ae235b
 *     to use the `GIT_COMMITTER_NAME` environment variable
Packit ae235b
 *     when editing a git commit message. The environment is available
Packit ae235b
 *     to the #GApplication::command-line signal handler, via
Packit ae235b
 *     g_application_command_line_getenv().
Packit ae235b
 * @G_APPLICATION_NON_UNIQUE: Make no attempts to do any of the typical
Packit ae235b
 *     single-instance application negotiation, even if the application
Packit ae235b
 *     ID is given.  The application neither attempts to become the
Packit ae235b
 *     owner of the application ID nor does it check if an existing
Packit ae235b
 *     owner already exists.  Everything occurs in the local process.
Packit ae235b
 *     Since: 2.30.
Packit ae235b
 * @G_APPLICATION_CAN_OVERRIDE_APP_ID: Allow users to override the
Packit ae235b
 *     application ID from the command line with `--gapplication-app-id`.
Packit ae235b
 *     Since: 2.48
Packit ae235b
 *
Packit ae235b
 * Flags used to define the behaviour of a #GApplication.
Packit ae235b
 *
Packit ae235b
 * Since: 2.28
Packit ae235b
 **/
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_APPLICATION_FLAGS_NONE,
Packit ae235b
  G_APPLICATION_IS_SERVICE  =          (1 << 0),
Packit ae235b
  G_APPLICATION_IS_LAUNCHER =          (1 << 1),
Packit ae235b
Packit ae235b
  G_APPLICATION_HANDLES_OPEN =         (1 << 2),
Packit ae235b
  G_APPLICATION_HANDLES_COMMAND_LINE = (1 << 3),
Packit ae235b
  G_APPLICATION_SEND_ENVIRONMENT    =  (1 << 4),
Packit ae235b
Packit ae235b
  G_APPLICATION_NON_UNIQUE =           (1 << 5),
Packit ae235b
Packit ae235b
  G_APPLICATION_CAN_OVERRIDE_APP_ID =  (1 << 6)
Packit ae235b
} GApplicationFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsError:
Packit ae235b
 * @G_TLS_ERROR_UNAVAILABLE: No TLS provider is available
Packit ae235b
 * @G_TLS_ERROR_MISC: Miscellaneous TLS error
Packit ae235b
 * @G_TLS_ERROR_BAD_CERTIFICATE: A certificate could not be parsed
Packit ae235b
 * @G_TLS_ERROR_NOT_TLS: The TLS handshake failed because the
Packit ae235b
 *   peer does not seem to be a TLS server.
Packit ae235b
 * @G_TLS_ERROR_HANDSHAKE: The TLS handshake failed because the
Packit ae235b
 *   peer's certificate was not acceptable.
Packit ae235b
 * @G_TLS_ERROR_CERTIFICATE_REQUIRED: The TLS handshake failed because
Packit ae235b
 *   the server requested a client-side certificate, but none was
Packit ae235b
 *   provided. See g_tls_connection_set_certificate().
Packit ae235b
 * @G_TLS_ERROR_EOF: The TLS connection was closed without proper
Packit ae235b
 *   notice, which may indicate an attack. See
Packit ae235b
 *   g_tls_connection_set_require_close_notify().
Packit ae235b
 *
Packit ae235b
 * An error code used with %G_TLS_ERROR in a #GError returned from a
Packit ae235b
 * TLS-related routine.
Packit ae235b
 *
Packit ae235b
 * Since: 2.28
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_ERROR_UNAVAILABLE,
Packit ae235b
  G_TLS_ERROR_MISC,
Packit ae235b
  G_TLS_ERROR_BAD_CERTIFICATE,
Packit ae235b
  G_TLS_ERROR_NOT_TLS,
Packit ae235b
  G_TLS_ERROR_HANDSHAKE,
Packit ae235b
  G_TLS_ERROR_CERTIFICATE_REQUIRED,
Packit ae235b
  G_TLS_ERROR_EOF
Packit ae235b
} GTlsError;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsCertificateFlags:
Packit ae235b
 * @G_TLS_CERTIFICATE_UNKNOWN_CA: The signing certificate authority is
Packit ae235b
 *   not known.
Packit ae235b
 * @G_TLS_CERTIFICATE_BAD_IDENTITY: The certificate does not match the
Packit ae235b
 *   expected identity of the site that it was retrieved from.
Packit ae235b
 * @G_TLS_CERTIFICATE_NOT_ACTIVATED: The certificate's activation time
Packit ae235b
 *   is still in the future
Packit ae235b
 * @G_TLS_CERTIFICATE_EXPIRED: The certificate has expired
Packit ae235b
 * @G_TLS_CERTIFICATE_REVOKED: The certificate has been revoked
Packit ae235b
 *   according to the #GTlsConnection's certificate revocation list.
Packit ae235b
 * @G_TLS_CERTIFICATE_INSECURE: The certificate's algorithm is
Packit ae235b
 *   considered insecure.
Packit ae235b
 * @G_TLS_CERTIFICATE_GENERIC_ERROR: Some other error occurred validating
Packit ae235b
 *   the certificate
Packit ae235b
 * @G_TLS_CERTIFICATE_VALIDATE_ALL: the combination of all of the above
Packit ae235b
 *   flags
Packit ae235b
 *
Packit ae235b
 * A set of flags describing TLS certification validation. This can be
Packit ae235b
 * used to set which validation steps to perform (eg, with
Packit ae235b
 * g_tls_client_connection_set_validation_flags()), or to describe why
Packit ae235b
 * a particular certificate was rejected (eg, in
Packit ae235b
 * #GTlsConnection::accept-certificate).
Packit ae235b
 *
Packit ae235b
 * Since: 2.28
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_CERTIFICATE_UNKNOWN_CA    = (1 << 0),
Packit ae235b
  G_TLS_CERTIFICATE_BAD_IDENTITY  = (1 << 1),
Packit ae235b
  G_TLS_CERTIFICATE_NOT_ACTIVATED = (1 << 2),
Packit ae235b
  G_TLS_CERTIFICATE_EXPIRED       = (1 << 3),
Packit ae235b
  G_TLS_CERTIFICATE_REVOKED       = (1 << 4),
Packit ae235b
  G_TLS_CERTIFICATE_INSECURE      = (1 << 5),
Packit ae235b
  G_TLS_CERTIFICATE_GENERIC_ERROR = (1 << 6),
Packit ae235b
Packit ae235b
  G_TLS_CERTIFICATE_VALIDATE_ALL  = 0x007f
Packit ae235b
} GTlsCertificateFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsAuthenticationMode:
Packit ae235b
 * @G_TLS_AUTHENTICATION_NONE: client authentication not required
Packit ae235b
 * @G_TLS_AUTHENTICATION_REQUESTED: client authentication is requested
Packit ae235b
 * @G_TLS_AUTHENTICATION_REQUIRED: client authentication is required
Packit ae235b
 *
Packit ae235b
 * The client authentication mode for a #GTlsServerConnection.
Packit ae235b
 *
Packit ae235b
 * Since: 2.28
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_AUTHENTICATION_NONE,
Packit ae235b
  G_TLS_AUTHENTICATION_REQUESTED,
Packit ae235b
  G_TLS_AUTHENTICATION_REQUIRED
Packit ae235b
} GTlsAuthenticationMode;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsRehandshakeMode:
Packit ae235b
 * @G_TLS_REHANDSHAKE_NEVER: Never allow rehandshaking
Packit ae235b
 * @G_TLS_REHANDSHAKE_SAFELY: Allow safe rehandshaking only
Packit ae235b
 * @G_TLS_REHANDSHAKE_UNSAFELY: Allow unsafe rehandshaking
Packit ae235b
 *
Packit ae235b
 * When to allow rehandshaking. See
Packit ae235b
 * g_tls_connection_set_rehandshake_mode().
Packit ae235b
 *
Packit ae235b
 * Since: 2.28
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_REHANDSHAKE_NEVER,
Packit ae235b
  G_TLS_REHANDSHAKE_SAFELY,
Packit ae235b
  G_TLS_REHANDSHAKE_UNSAFELY
Packit ae235b
} GTlsRehandshakeMode;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsPasswordFlags:
Packit ae235b
 * @G_TLS_PASSWORD_NONE: No flags
Packit ae235b
 * @G_TLS_PASSWORD_RETRY: The password was wrong, and the user should retry.
Packit ae235b
 * @G_TLS_PASSWORD_MANY_TRIES: Hint to the user that the password has been
Packit ae235b
 *    wrong many times, and the user may not have many chances left.
Packit ae235b
 * @G_TLS_PASSWORD_FINAL_TRY: Hint to the user that this is the last try to get
Packit ae235b
 *    this password right.
Packit ae235b
 *
Packit ae235b
 * Various flags for the password.
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
Packit ae235b
typedef enum _GTlsPasswordFlags
Packit ae235b
{
Packit ae235b
  G_TLS_PASSWORD_NONE = 0,
Packit ae235b
  G_TLS_PASSWORD_RETRY = 1 << 1,
Packit ae235b
  G_TLS_PASSWORD_MANY_TRIES = 1 << 2,
Packit ae235b
  G_TLS_PASSWORD_FINAL_TRY = 1 << 3
Packit ae235b
} GTlsPasswordFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsInteractionResult:
Packit ae235b
 * @G_TLS_INTERACTION_UNHANDLED: The interaction was unhandled (i.e. not
Packit ae235b
 *     implemented).
Packit ae235b
 * @G_TLS_INTERACTION_HANDLED: The interaction completed, and resulting data
Packit ae235b
 *     is available.
Packit ae235b
 * @G_TLS_INTERACTION_FAILED: The interaction has failed, or was cancelled.
Packit ae235b
 *     and the operation should be aborted.
Packit ae235b
 *
Packit ae235b
 * #GTlsInteractionResult is returned by various functions in #GTlsInteraction
Packit ae235b
 * when finishing an interaction request.
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_INTERACTION_UNHANDLED,
Packit ae235b
  G_TLS_INTERACTION_HANDLED,
Packit ae235b
  G_TLS_INTERACTION_FAILED
Packit ae235b
} GTlsInteractionResult;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusInterfaceSkeletonFlags:
Packit ae235b
 * @G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD: Each method invocation is handled in
Packit ae235b
 *   a thread dedicated to the invocation. This means that the method implementation can use blocking IO
Packit ae235b
 *   without blocking any other part of the process. It also means that the method implementation must
Packit ae235b
 *   use locking to access data structures used by other threads.
Packit ae235b
 *
Packit ae235b
 * Flags describing the behavior of a #GDBusInterfaceSkeleton instance.
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_INTERFACE_SKELETON_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD = (1<<0)
Packit ae235b
} GDBusInterfaceSkeletonFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusObjectManagerClientFlags:
Packit ae235b
 * @G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: No flags set.
Packit ae235b
 * @G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: If not set and the
Packit ae235b
 *   manager is for a well-known name, then request the bus to launch
Packit ae235b
 *   an owner for the name if no-one owns the name. This flag can only
Packit ae235b
 *   be used in managers for well-known names.
Packit ae235b
 *
Packit ae235b
 * Flags used when constructing a #GDBusObjectManagerClient.
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
typedef enum
Packit ae235b
{
Packit ae235b
  G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE = 0,
Packit ae235b
  G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START = (1<<0)
Packit ae235b
} GDBusObjectManagerClientFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsDatabaseVerifyFlags:
Packit ae235b
 * @G_TLS_DATABASE_VERIFY_NONE: No verification flags
Packit ae235b
 *
Packit ae235b
 * Flags for g_tls_database_verify_chain().
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
typedef enum /*< flags >*/ {
Packit ae235b
  G_TLS_DATABASE_VERIFY_NONE = 0
Packit ae235b
} GTlsDatabaseVerifyFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsDatabaseLookupFlags:
Packit ae235b
 * @G_TLS_DATABASE_LOOKUP_NONE: No lookup flags
Packit ae235b
 * @G_TLS_DATABASE_LOOKUP_KEYPAIR: Restrict lookup to certificates that have
Packit ae235b
 *     a private key.
Packit ae235b
 *
Packit ae235b
 * Flags for g_tls_database_lookup_certificate_for_handle(),
Packit ae235b
 * g_tls_database_lookup_certificate_issuer(),
Packit ae235b
 * and g_tls_database_lookup_certificates_issued_by().
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_DATABASE_LOOKUP_NONE = 0,
Packit ae235b
  G_TLS_DATABASE_LOOKUP_KEYPAIR = 1
Packit ae235b
} GTlsDatabaseLookupFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTlsCertificateRequestFlags:
Packit ae235b
 * @G_TLS_CERTIFICATE_REQUEST_NONE: No flags
Packit ae235b
 *
Packit ae235b
 * Flags for g_tls_interaction_request_certificate(),
Packit ae235b
 * g_tls_interaction_request_certificate_async(), and
Packit ae235b
 * g_tls_interaction_invoke_request_certificate().
Packit ae235b
 *
Packit ae235b
 * Since: 2.40
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_TLS_CERTIFICATE_REQUEST_NONE = 0
Packit ae235b
} GTlsCertificateRequestFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GIOModuleScopeFlags:
Packit ae235b
 * @G_IO_MODULE_SCOPE_NONE: No module scan flags
Packit ae235b
 * @G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: When using this scope to load or
Packit ae235b
 *     scan modules, automatically block a modules which has the same base
Packit ae235b
 *     basename as previously loaded module.
Packit ae235b
 *
Packit ae235b
 * Flags for use with g_io_module_scope_new().
Packit ae235b
 *
Packit ae235b
 * Since: 2.30
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_IO_MODULE_SCOPE_NONE,
Packit ae235b
  G_IO_MODULE_SCOPE_BLOCK_DUPLICATES
Packit ae235b
} GIOModuleScopeFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSocketClientEvent:
Packit ae235b
 * @G_SOCKET_CLIENT_RESOLVING: The client is doing a DNS lookup.
Packit ae235b
 * @G_SOCKET_CLIENT_RESOLVED: The client has completed a DNS lookup.
Packit ae235b
 * @G_SOCKET_CLIENT_CONNECTING: The client is connecting to a remote
Packit ae235b
 *   host (either a proxy or the destination server).
Packit ae235b
 * @G_SOCKET_CLIENT_CONNECTED: The client has connected to a remote
Packit ae235b
 *   host.
Packit ae235b
 * @G_SOCKET_CLIENT_PROXY_NEGOTIATING: The client is negotiating
Packit ae235b
 *   with a proxy to connect to the destination server.
Packit ae235b
 * @G_SOCKET_CLIENT_PROXY_NEGOTIATED: The client has negotiated
Packit ae235b
 *   with the proxy server.
Packit ae235b
 * @G_SOCKET_CLIENT_TLS_HANDSHAKING: The client is performing a
Packit ae235b
 *   TLS handshake.
Packit ae235b
 * @G_SOCKET_CLIENT_TLS_HANDSHAKED: The client has performed a
Packit ae235b
 *   TLS handshake.
Packit ae235b
 * @G_SOCKET_CLIENT_COMPLETE: The client is done with a particular
Packit ae235b
 *   #GSocketConnectable.
Packit ae235b
 *
Packit ae235b
 * Describes an event occurring on a #GSocketClient. See the
Packit ae235b
 * #GSocketClient::event signal for more details.
Packit ae235b
 *
Packit ae235b
 * Additional values may be added to this type in the future.
Packit ae235b
 *
Packit ae235b
 * Since: 2.32
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_SOCKET_CLIENT_RESOLVING,
Packit ae235b
  G_SOCKET_CLIENT_RESOLVED,
Packit ae235b
  G_SOCKET_CLIENT_CONNECTING,
Packit ae235b
  G_SOCKET_CLIENT_CONNECTED,
Packit ae235b
  G_SOCKET_CLIENT_PROXY_NEGOTIATING,
Packit ae235b
  G_SOCKET_CLIENT_PROXY_NEGOTIATED,
Packit ae235b
  G_SOCKET_CLIENT_TLS_HANDSHAKING,
Packit ae235b
  G_SOCKET_CLIENT_TLS_HANDSHAKED,
Packit ae235b
  G_SOCKET_CLIENT_COMPLETE
Packit ae235b
} GSocketClientEvent;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSocketListenerEvent:
Packit ae235b
 * @G_SOCKET_LISTENER_BINDING: The listener is about to bind a socket.
Packit ae235b
 * @G_SOCKET_LISTENER_BOUND: The listener has bound a socket.
Packit ae235b
 * @G_SOCKET_LISTENER_LISTENING: The listener is about to start
Packit ae235b
 *    listening on this socket.
Packit ae235b
 * @G_SOCKET_LISTENER_LISTENED: The listener is now listening on
Packit ae235b
 *   this socket.
Packit ae235b
 *
Packit ae235b
 * Describes an event occurring on a #GSocketListener. See the
Packit ae235b
 * #GSocketListener::event signal for more details.
Packit ae235b
 *
Packit ae235b
 * Additional values may be added to this type in the future.
Packit ae235b
 *
Packit ae235b
 * Since: 2.46
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_SOCKET_LISTENER_BINDING,
Packit ae235b
  G_SOCKET_LISTENER_BOUND,
Packit ae235b
  G_SOCKET_LISTENER_LISTENING,
Packit ae235b
  G_SOCKET_LISTENER_LISTENED
Packit ae235b
} GSocketListenerEvent;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GTestDBusFlags:
Packit ae235b
 * @G_TEST_DBUS_NONE: No flags.
Packit ae235b
 *
Packit ae235b
 * Flags to define future #GTestDBus behaviour.
Packit ae235b
 *
Packit ae235b
 * Since: 2.34
Packit ae235b
 */
Packit ae235b
typedef enum /*< flags >*/ {
Packit ae235b
  G_TEST_DBUS_NONE = 0
Packit ae235b
} GTestDBusFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GSubprocessFlags:
Packit ae235b
 * @G_SUBPROCESS_FLAGS_NONE: No flags.
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDIN_PIPE: create a pipe for the stdin of the
Packit ae235b
 *   spawned process that can be accessed with
Packit ae235b
 *   g_subprocess_get_stdin_pipe().
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDIN_INHERIT: stdin is inherited from the
Packit ae235b
 *   calling process.
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDOUT_PIPE: create a pipe for the stdout of the
Packit ae235b
 *   spawned process that can be accessed with
Packit ae235b
 *   g_subprocess_get_stdout_pipe().
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDOUT_SILENCE: silence the stdout of the spawned
Packit ae235b
 *   process (ie: redirect to `/dev/null`).
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDERR_PIPE: create a pipe for the stderr of the
Packit ae235b
 *   spawned process that can be accessed with
Packit ae235b
 *   g_subprocess_get_stderr_pipe().
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDERR_SILENCE: silence the stderr of the spawned
Packit ae235b
 *   process (ie: redirect to `/dev/null`).
Packit ae235b
 * @G_SUBPROCESS_FLAGS_STDERR_MERGE: merge the stderr of the spawned
Packit ae235b
 *   process with whatever the stdout happens to be.  This is a good way
Packit ae235b
 *   of directing both streams to a common log file, for example.
Packit ae235b
 * @G_SUBPROCESS_FLAGS_INHERIT_FDS: spawned processes will inherit the
Packit ae235b
 *   file descriptors of their parent, unless those descriptors have
Packit ae235b
 *   been explicitly marked as close-on-exec.  This flag has no effect
Packit ae235b
 *   over the "standard" file descriptors (stdin, stdout, stderr).
Packit ae235b
 *
Packit ae235b
 * Flags to define the behaviour of a #GSubprocess.
Packit ae235b
 *
Packit ae235b
 * Note that the default for stdin is to redirect from `/dev/null`.  For
Packit ae235b
 * stdout and stderr the default are for them to inherit the
Packit ae235b
 * corresponding descriptor from the calling process.
Packit ae235b
 *
Packit ae235b
 * Note that it is a programmer error to mix 'incompatible' flags.  For
Packit ae235b
 * example, you may not request both %G_SUBPROCESS_FLAGS_STDOUT_PIPE and
Packit ae235b
 * %G_SUBPROCESS_FLAGS_STDOUT_SILENCE.
Packit ae235b
 *
Packit ae235b
 * Since: 2.40
Packit ae235b
 **/
Packit ae235b
typedef enum {
Packit ae235b
  G_SUBPROCESS_FLAGS_NONE                  = 0,
Packit ae235b
  G_SUBPROCESS_FLAGS_STDIN_PIPE            = (1u << 0),
Packit ae235b
  G_SUBPROCESS_FLAGS_STDIN_INHERIT         = (1u << 1),
Packit ae235b
  G_SUBPROCESS_FLAGS_STDOUT_PIPE           = (1u << 2),
Packit ae235b
  G_SUBPROCESS_FLAGS_STDOUT_SILENCE        = (1u << 3),
Packit ae235b
  G_SUBPROCESS_FLAGS_STDERR_PIPE           = (1u << 4),
Packit ae235b
  G_SUBPROCESS_FLAGS_STDERR_SILENCE        = (1u << 5),
Packit ae235b
  G_SUBPROCESS_FLAGS_STDERR_MERGE          = (1u << 6),
Packit ae235b
  G_SUBPROCESS_FLAGS_INHERIT_FDS           = (1u << 7)
Packit ae235b
} GSubprocessFlags;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GNotificationPriority:
Packit ae235b
 * @G_NOTIFICATION_PRIORITY_LOW: for notifications that do not require
Packit ae235b
 *   immediate attention - typically used for contextual background
Packit ae235b
 *   information, such as contact birthdays or local weather
Packit ae235b
 * @G_NOTIFICATION_PRIORITY_NORMAL: the default priority, to be used for the
Packit ae235b
 *   majority of notifications (for example email messages, software updates,
Packit ae235b
 *   completed download/sync operations)
Packit ae235b
 * @G_NOTIFICATION_PRIORITY_HIGH: for events that require more attention,
Packit ae235b
 *   usually because responses are time-sensitive (for example chat and SMS
Packit ae235b
 *   messages or alarms)
Packit ae235b
 * @G_NOTIFICATION_PRIORITY_URGENT: for urgent notifications, or notifications
Packit ae235b
 *   that require a response in a short space of time (for example phone calls
Packit ae235b
 *   or emergency warnings)
Packit ae235b
 *
Packit ae235b
 * Priority levels for #GNotifications.
Packit ae235b
 *
Packit ae235b
 * Since: 2.42
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_NOTIFICATION_PRIORITY_NORMAL,
Packit ae235b
  G_NOTIFICATION_PRIORITY_LOW,
Packit ae235b
  G_NOTIFICATION_PRIORITY_HIGH,
Packit ae235b
  G_NOTIFICATION_PRIORITY_URGENT
Packit ae235b
} GNotificationPriority;
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GNetworkConnectivity:
Packit ae235b
 * @G_NETWORK_CONNECTIVITY_LOCAL: The host is not configured with a
Packit ae235b
 *   route to the Internet; it may or may not be connected to a local
Packit ae235b
 *   network.
Packit ae235b
 * @G_NETWORK_CONNECTIVITY_LIMITED: The host is connected to a network, but
Packit ae235b
 *   does not appear to be able to reach the full Internet, perhaps
Packit ae235b
 *   due to upstream network problems.
Packit ae235b
 * @G_NETWORK_CONNECTIVITY_PORTAL: The host is behind a captive portal and
Packit ae235b
 *   cannot reach the full Internet.
Packit ae235b
 * @G_NETWORK_CONNECTIVITY_FULL: The host is connected to a network, and
Packit ae235b
 *   appears to be able to reach the full Internet.
Packit ae235b
 *
Packit ae235b
 * The host's network connectivity state, as reported by #GNetworkMonitor.
Packit ae235b
 *
Packit ae235b
 * Since: 2.44
Packit ae235b
 */
Packit ae235b
typedef enum {
Packit ae235b
  G_NETWORK_CONNECTIVITY_LOCAL       = 1,
Packit ae235b
  G_NETWORK_CONNECTIVITY_LIMITED     = 2,
Packit ae235b
  G_NETWORK_CONNECTIVITY_PORTAL      = 3,
Packit ae235b
  G_NETWORK_CONNECTIVITY_FULL        = 4
Packit ae235b
} GNetworkConnectivity;
Packit ae235b
Packit ae235b
G_END_DECLS
Packit ae235b
Packit ae235b
#endif /* __GIO_ENUMS_H__ */