;; -*- scheme -*-
; object definitions ...
(define-object AppInfoLookup
  (in-module "GDesktop")
  (c-name "GDesktopAppInfoLookup")
  (gtype-id "G_TYPE_DESKTOP_APP_INFO_LOOKUP")
)

(define-object DescriptorBased
  (in-module "GFile")
  (c-name "GFileDescriptorBased")
  (gtype-id "G_TYPE_FILE_DESCRIPTOR_BASED")
)

(define-object Connection
  (in-module "GUnix")
  (parent "GSocketConnection")
  (c-name "GUnixConnection")
  (gtype-id "G_TYPE_UNIX_CONNECTION")
)

(define-object CredentialsMessage
  (in-module "GUnix")
  (parent "GSocketControlMessage")
  (c-name "GUnixCredentialsMessage")
  (gtype-id "G_TYPE_UNIX_CREDENTIALS_MESSAGE")
)

(define-object FDList
  (in-module "GUnix")
  (parent "GObject")
  (c-name "GUnixFDList")
  (gtype-id "G_TYPE_UNIX_FD_LIST")
)

(define-object FDMessage
  (in-module "GUnix")
  (parent "GSocketControlMessage")
  (c-name "GUnixFDMessage")
  (gtype-id "G_TYPE_UNIX_FD_MESSAGE")
)

(define-object InputStream
  (in-module "GUnix")
  (parent "GInputStream")
  (c-name "GUnixInputStream")
  (gtype-id "G_TYPE_UNIX_INPUT_STREAM")
)

(define-object OutputStream
  (in-module "GUnix")
  (parent "GOutputStream")
  (c-name "GUnixOutputStream")
  (gtype-id "G_TYPE_UNIX_OUTPUT_STREAM")
)

(define-object SocketAddress
  (in-module "GUnix")
  (parent "GSocketAddress")
  (c-name "GUnixSocketAddress")
  (gtype-id "G_TYPE_UNIX_SOCKET_ADDRESS")
)

;; Enumerations and flags ...


;; From gdesktopappinfo.h

(define-function g_desktop_app_info_get_type
  (c-name "g_desktop_app_info_get_type")
  (return-type "GType")
)

(define-function g_desktop_app_info_new_from_filename
  (c-name "g_desktop_app_info_new_from_filename")
  (return-type "GDesktopAppInfo*")
  (parameters
    '("const-char*" "filename")
  )
)

(define-function g_desktop_app_info_new_from_keyfile
  (c-name "g_desktop_app_info_new_from_keyfile")
  (return-type "GDesktopAppInfo*")
  (parameters
    '("GKeyFile*" "key_file")
  )
)

(define-method get_filename
  (of-object "GDesktopAppInfo")
  (c-name "g_desktop_app_info_get_filename")
  (return-type "const-char*")
)

(define-function g_desktop_app_info_new
  (c-name "g_desktop_app_info_new")
  (is-constructor-of "GDesktopAppInfo")
  (return-type "GDesktopAppInfo*")
  (parameters
    '("const-char*" "desktop_id")
  )
)

(define-method get_is_hidden
  (of-object "GDesktopAppInfo")
  (c-name "g_desktop_app_info_get_is_hidden")
  (return-type "gboolean")
)

(define-function g_desktop_app_info_set_desktop_env
  (c-name "g_desktop_app_info_set_desktop_env")
  (return-type "none")
  (parameters
    '("const-char*" "desktop_env")
  )
)

(define-function g_desktop_app_info_lookup_get_type
  (c-name "g_desktop_app_info_lookup_get_type")
  (return-type "GType")
)

(define-method get_default_for_uri_scheme
  (of-object "GDesktopAppInfoLookup")
  (c-name "g_desktop_app_info_lookup_get_default_for_uri_scheme")
  (return-type "GAppInfo*")
  (parameters
    '("const-char*" "uri_scheme")
  )
)



;; From gfiledescriptorbased.h

(define-function g_file_descriptor_based_get_type
  (c-name "g_file_descriptor_based_get_type")
  (return-type "GType")
)

(define-method get_fd
  (of-object "GFileDescriptorBased")
  (c-name "g_file_descriptor_based_get_fd")
  (return-type "int")
)



;; From gunixconnection.h

(define-function g_unix_connection_get_type
  (c-name "g_unix_connection_get_type")
  (return-type "GType")
)

(define-method send_fd
  (of-object "GUnixConnection")
  (c-name "g_unix_connection_send_fd")
  (return-type "gboolean")
  (parameters
    '("gint" "fd")
    '("GCancellable*" "cancellable")
    '("GError**" "error")
  )
)

(define-method receive_fd
  (of-object "GUnixConnection")
  (c-name "g_unix_connection_receive_fd")
  (return-type "gint")
  (parameters
    '("GCancellable*" "cancellable")
    '("GError**" "error")
  )
)

(define-method send_credentials
  (of-object "GUnixConnection")
  (c-name "g_unix_connection_send_credentials")
  (return-type "gboolean")
  (parameters
    '("GCancellable*" "cancellable")
    '("GError**" "error")
  )
)

(define-method receive_credentials
  (of-object "GUnixConnection")
  (c-name "g_unix_connection_receive_credentials")
  (return-type "GCredentials*")
  (parameters
    '("GCancellable*" "cancellable")
    '("GError**" "error")
  )
)



;; From gunixcredentialsmessage.h

(define-function g_unix_credentials_message_get_type
  (c-name "g_unix_credentials_message_get_type")
  (return-type "GType")
)

(define-function g_unix_credentials_message_new
  (c-name "g_unix_credentials_message_new")
  (is-constructor-of "GUnixCredentialsMessage")
  (return-type "GSocketControlMessage*")
)

(define-function g_unix_credentials_message_new_with_credentials
  (c-name "g_unix_credentials_message_new_with_credentials")
  (return-type "GSocketControlMessage*")
  (parameters
    '("GCredentials*" "credentials")
  )
)

(define-method get_credentials
  (of-object "GUnixCredentialsMessage")
  (c-name "g_unix_credentials_message_get_credentials")
  (return-type "GCredentials*")
)

(define-function g_unix_credentials_message_is_supported
  (c-name "g_unix_credentials_message_is_supported")
  (return-type "gboolean")
)



;; From gunixfdlist.h

(define-function g_unix_fd_list_get_type
  (c-name "g_unix_fd_list_get_type")
  (return-type "GType")
)

(define-function g_unix_fd_list_new
  (c-name "g_unix_fd_list_new")
  (is-constructor-of "GUnixFdList")
  (return-type "GUnixFDList*")
)

(define-function g_unix_fd_list_new_from_array
  (c-name "g_unix_fd_list_new_from_array")
  (return-type "GUnixFDList*")
  (parameters
    '("const-gint*" "fds")
    '("gint" "n_fds")
  )
)

(define-method append
  (of-object "GUnixFDList")
  (c-name "g_unix_fd_list_append")
  (return-type "gint")
  (parameters
    '("gint" "fd")
    '("GError**" "error")
  )
)

(define-method get_length
  (of-object "GUnixFDList")
  (c-name "g_unix_fd_list_get_length")
  (return-type "gint")
)

(define-method get
  (of-object "GUnixFDList")
  (c-name "g_unix_fd_list_get")
  (return-type "gint")
  (parameters
    '("gint" "index_")
    '("GError**" "error")
  )
)

(define-method peek_fds
  (of-object "GUnixFDList")
  (c-name "g_unix_fd_list_peek_fds")
  (return-type "const-gint*")
  (parameters
    '("gint*" "length")
  )
)

(define-method steal_fds
  (of-object "GUnixFDList")
  (c-name "g_unix_fd_list_steal_fds")
  (return-type "gint*")
  (parameters
    '("gint*" "length")
  )
)



;; From gunixfdmessage.h

(define-function g_unix_fd_message_get_type
  (c-name "g_unix_fd_message_get_type")
  (return-type "GType")
)

(define-function g_unix_fd_message_new_with_fd_list
  (c-name "g_unix_fd_message_new_with_fd_list")
  (return-type "GSocketControlMessage*")
  (parameters
    '("GUnixFDList*" "fd_list")
  )
)

(define-function g_unix_fd_message_new
  (c-name "g_unix_fd_message_new")
  (is-constructor-of "GUnixFdMessage")
  (return-type "GSocketControlMessage*")
)

(define-method get_fd_list
  (of-object "GUnixFDMessage")
  (c-name "g_unix_fd_message_get_fd_list")
  (return-type "GUnixFDList*")
)

(define-method steal_fds
  (of-object "GUnixFDMessage")
  (c-name "g_unix_fd_message_steal_fds")
  (return-type "gint*")
  (parameters
    '("gint*" "length")
  )
)

(define-method append_fd
  (of-object "GUnixFDMessage")
  (c-name "g_unix_fd_message_append_fd")
  (return-type "gboolean")
  (parameters
    '("gint" "fd")
    '("GError**" "error")
  )
)



;; From gunixinputstream.h

(define-function g_unix_input_stream_get_type
  (c-name "g_unix_input_stream_get_type")
  (return-type "GType")
)

(define-function g_unix_input_stream_new
  (c-name "g_unix_input_stream_new")
  (is-constructor-of "GUnixInputStream")
  (return-type "GInputStream*")
  (parameters
    '("gint" "fd")
    '("gboolean" "close_fd")
  )
)

(define-method set_close_fd
  (of-object "GUnixInputStream")
  (c-name "g_unix_input_stream_set_close_fd")
  (return-type "none")
  (parameters
    '("gboolean" "close_fd")
  )
)

(define-method get_close_fd
  (of-object "GUnixInputStream")
  (c-name "g_unix_input_stream_get_close_fd")
  (return-type "gboolean")
)

(define-method get_fd
  (of-object "GUnixInputStream")
  (c-name "g_unix_input_stream_get_fd")
  (return-type "gint")
)



;; From gunixmounts.h

(define-function g_unix_mount_free
  (c-name "g_unix_mount_free")
  (return-type "none")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-method free
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_free")
  (return-type "none")
)

(define-function g_unix_mount_compare
  (c-name "g_unix_mount_compare")
  (return-type "gint")
  (parameters
    '("GUnixMountEntry*" "mount1")
    '("GUnixMountEntry*" "mount2")
  )
)

(define-function g_unix_mount_get_mount_path
  (c-name "g_unix_mount_get_mount_path")
  (return-type "const-char*")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_get_device_path
  (c-name "g_unix_mount_get_device_path")
  (return-type "const-char*")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_get_fs_type
  (c-name "g_unix_mount_get_fs_type")
  (return-type "const-char*")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_is_readonly
  (c-name "g_unix_mount_is_readonly")
  (return-type "gboolean")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_is_system_internal
  (c-name "g_unix_mount_is_system_internal")
  (return-type "gboolean")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_guess_can_eject
  (c-name "g_unix_mount_guess_can_eject")
  (return-type "gboolean")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_guess_should_display
  (c-name "g_unix_mount_guess_should_display")
  (return-type "gboolean")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_guess_name
  (c-name "g_unix_mount_guess_name")
  (return-type "char*")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-function g_unix_mount_guess_icon
  (c-name "g_unix_mount_guess_icon")
  (return-type "GIcon*")
  (parameters
    '("GUnixMountEntry*" "mount_entry")
  )
)

(define-method compare
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_compare")
  (return-type "gint")
  (parameters
    '("GUnixMountPoint*" "mount2")
  )
)

(define-method get_mount_path
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_get_mount_path")
  (return-type "const-char*")
)

(define-method get_device_path
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_get_device_path")
  (return-type "const-char*")
)

(define-method get_fs_type
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_get_fs_type")
  (return-type "const-char*")
)

(define-method is_readonly
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_is_readonly")
  (return-type "gboolean")
)

(define-method is_user_mountable
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_is_user_mountable")
  (return-type "gboolean")
)

(define-method is_loopback
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_is_loopback")
  (return-type "gboolean")
)

(define-method guess_can_eject
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_guess_can_eject")
  (return-type "gboolean")
)

(define-method guess_name
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_guess_name")
  (return-type "char*")
)

(define-method guess_icon
  (of-object "GUnixMountPoint")
  (c-name "g_unix_mount_point_guess_icon")
  (return-type "GIcon*")
)

(define-function g_unix_mount_points_get
  (c-name "g_unix_mount_points_get")
  (return-type "GList*")
  (parameters
    '("guint64*" "time_read")
  )
)

(define-function g_unix_mounts_get
  (c-name "g_unix_mounts_get")
  (return-type "GList*")
  (parameters
    '("guint64*" "time_read")
  )
)

(define-function g_unix_mount_at
  (c-name "g_unix_mount_at")
  (return-type "GUnixMountEntry*")
  (parameters
    '("const-char*" "mount_path")
    '("guint64*" "time_read")
  )
)

(define-function g_unix_mounts_changed_since
  (c-name "g_unix_mounts_changed_since")
  (return-type "gboolean")
  (parameters
    '("guint64" "time")
  )
)

(define-function g_unix_mount_points_changed_since
  (c-name "g_unix_mount_points_changed_since")
  (return-type "gboolean")
  (parameters
    '("guint64" "time")
  )
)

(define-function g_unix_mount_monitor_get_type
  (c-name "g_unix_mount_monitor_get_type")
  (return-type "GType")
)

(define-function g_unix_mount_monitor_new
  (c-name "g_unix_mount_monitor_new")
  (is-constructor-of "GUnixMountMonitor")
  (return-type "GUnixMountMonitor*")
)

(define-method set_rate_limit
  (of-object "GUnixMountMonitor")
  (c-name "g_unix_mount_monitor_set_rate_limit")
  (return-type "none")
  (parameters
    '("int" "limit_msec")
  )
)

(define-function g_unix_is_mount_path_system_internal
  (c-name "g_unix_is_mount_path_system_internal")
  (return-type "gboolean")
  (parameters
    '("const-char*" "mount_path")
  )
)



;; From gunixoutputstream.h

(define-function g_unix_output_stream_get_type
  (c-name "g_unix_output_stream_get_type")
  (return-type "GType")
)

(define-function g_unix_output_stream_new
  (c-name "g_unix_output_stream_new")
  (is-constructor-of "GUnixOutputStream")
  (return-type "GOutputStream*")
  (parameters
    '("gint" "fd")
    '("gboolean" "close_fd")
  )
)

(define-method set_close_fd
  (of-object "GUnixOutputStream")
  (c-name "g_unix_output_stream_set_close_fd")
  (return-type "none")
  (parameters
    '("gboolean" "close_fd")
  )
)

(define-method get_close_fd
  (of-object "GUnixOutputStream")
  (c-name "g_unix_output_stream_get_close_fd")
  (return-type "gboolean")
)

(define-method get_fd
  (of-object "GUnixOutputStream")
  (c-name "g_unix_output_stream_get_fd")
  (return-type "gint")
)



;; From gunixsocketaddress.h

(define-function g_unix_socket_address_get_type
  (c-name "g_unix_socket_address_get_type")
  (return-type "GType")
)

(define-function g_unix_socket_address_new
  (c-name "g_unix_socket_address_new")
  (is-constructor-of "GUnixSocketAddress")
  (return-type "GSocketAddress*")
  (parameters
    '("const-gchar*" "path")
  )
)

(define-function g_unix_socket_address_new_abstract
  (c-name "g_unix_socket_address_new_abstract")
  (return-type "GSocketAddress*")
  (parameters
    '("const-gchar*" "path")
    '("gint" "path_len")
  )
)

(define-function g_unix_socket_address_new_with_type
  (c-name "g_unix_socket_address_new_with_type")
  (return-type "GSocketAddress*")
  (parameters
    '("const-gchar*" "path")
    '("gint" "path_len")
    '("GUnixSocketAddressType" "type")
  )
)

(define-method get_path
  (of-object "GUnixSocketAddress")
  (c-name "g_unix_socket_address_get_path")
  (return-type "const-char*")
)

(define-method get_path_len
  (of-object "GUnixSocketAddress")
  (c-name "g_unix_socket_address_get_path_len")
  (return-type "gsize")
)

(define-method get_address_type
  (of-object "GUnixSocketAddress")
  (c-name "g_unix_socket_address_get_address_type")
  (return-type "GUnixSocketAddressType")
)

(define-method get_is_abstract
  (of-object "GUnixSocketAddress")
  (c-name "g_unix_socket_address_get_is_abstract")
  (return-type "gboolean")
)

(define-function g_unix_socket_address_abstract_names_supported
  (c-name "g_unix_socket_address_abstract_names_supported")
  (return-type "gboolean")
)


