2008-07-01 08:32:35 +02:00
|
|
|
/* GIO - GLib Input, Output and Streaming Library
|
2008-09-02 21:05:58 +02:00
|
|
|
*
|
2008-07-01 08:32:35 +02:00
|
|
|
* Copyright (C) 2006-2007 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General
|
|
|
|
* Public License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Author: Alexander Larsson <alexl@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
|
|
|
|
#error "Only <gio/gio.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __GIO_TYPES_H__
|
|
|
|
#define __GIO_TYPES_H__
|
|
|
|
|
|
|
|
#include <gio/gioenums.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GAppLaunchContext GAppLaunchContext;
|
|
|
|
typedef struct _GAppInfo GAppInfo; /* Dummy typedef */
|
|
|
|
typedef struct _GAsyncResult GAsyncResult; /* Dummy typedef */
|
2009-05-14 15:26:37 +02:00
|
|
|
typedef struct _GAsyncInitable GAsyncInitable;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GBufferedInputStream GBufferedInputStream;
|
|
|
|
typedef struct _GBufferedOutputStream GBufferedOutputStream;
|
|
|
|
typedef struct _GCancellable GCancellable;
|
2009-10-21 21:25:36 +02:00
|
|
|
typedef struct _GCharsetConverter GCharsetConverter;
|
2009-11-18 13:14:13 +01:00
|
|
|
typedef struct _GConverter GConverter;
|
2009-10-22 22:50:52 +02:00
|
|
|
typedef struct _GConverterInputStream GConverterInputStream;
|
2009-11-23 15:03:57 +01:00
|
|
|
typedef struct _GConverterOutputStream GConverterOutputStream;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GDataInputStream GDataInputStream;
|
2010-06-04 22:32:01 +02:00
|
|
|
typedef struct _GSimplePermission GSimplePermission;
|
2009-11-20 12:04:31 +01:00
|
|
|
typedef struct _GZlibCompressor GZlibCompressor;
|
2009-11-19 17:20:20 +01:00
|
|
|
typedef struct _GZlibDecompressor GZlibDecompressor;
|
2008-07-01 08:32:35 +02:00
|
|
|
|
2010-08-18 08:15:09 +02:00
|
|
|
typedef struct _GSimpleActionGroup GSimpleActionGroup;
|
2011-12-17 06:17:08 +01:00
|
|
|
typedef struct _GRemoteActionGroup GRemoteActionGroup;
|
2011-07-01 03:41:30 +02:00
|
|
|
typedef struct _GDBusActionGroup GDBusActionGroup;
|
2011-11-30 17:36:08 +01:00
|
|
|
typedef struct _GActionMap GActionMap;
|
2010-08-18 06:30:44 +02:00
|
|
|
typedef struct _GActionGroup GActionGroup;
|
2010-08-30 18:58:49 +02:00
|
|
|
typedef struct _GSimpleAction GSimpleAction;
|
2010-08-18 07:45:15 +02:00
|
|
|
typedef struct _GAction GAction;
|
2010-10-06 19:08:26 +02:00
|
|
|
typedef struct _GApplication GApplication;
|
|
|
|
typedef struct _GApplicationCommandLine GApplicationCommandLine;
|
2010-06-17 00:49:20 +02:00
|
|
|
typedef struct _GSettingsBackend GSettingsBackend;
|
|
|
|
typedef struct _GSettings GSettings;
|
|
|
|
typedef struct _GPermission GPermission;
|
|
|
|
|
2011-11-27 04:46:51 +01:00
|
|
|
typedef struct _GMenuModel GMenuModel;
|
|
|
|
|
2008-07-01 08:32:35 +02:00
|
|
|
/**
|
|
|
|
* GDrive:
|
|
|
|
*
|
|
|
|
* Opaque drive object.
|
|
|
|
**/
|
|
|
|
typedef struct _GDrive GDrive; /* Dummy typedef */
|
|
|
|
typedef struct _GFileEnumerator GFileEnumerator;
|
|
|
|
typedef struct _GFileMonitor GFileMonitor;
|
|
|
|
typedef struct _GFilterInputStream GFilterInputStream;
|
|
|
|
typedef struct _GFilterOutputStream GFilterOutputStream;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GFile:
|
|
|
|
*
|
|
|
|
* A handle to an object implementing the #GFileIface interface.
|
|
|
|
* Generally stores a location within the file system. Handles do not
|
|
|
|
* necessarily represent files or directories that currently exist.
|
|
|
|
**/
|
|
|
|
typedef struct _GFile GFile; /* Dummy typedef */
|
|
|
|
typedef struct _GFileInfo GFileInfo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GFileAttributeMatcher:
|
|
|
|
*
|
|
|
|
* Determines if a string matches a file attribute.
|
|
|
|
**/
|
|
|
|
typedef struct _GFileAttributeMatcher GFileAttributeMatcher;
|
|
|
|
typedef struct _GFileAttributeInfo GFileAttributeInfo;
|
|
|
|
typedef struct _GFileAttributeInfoList GFileAttributeInfoList;
|
2010-02-07 14:51:01 +01:00
|
|
|
typedef struct _GFileDescriptorBased GFileDescriptorBased;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GFileInputStream GFileInputStream;
|
|
|
|
typedef struct _GFileOutputStream GFileOutputStream;
|
2009-05-12 16:59:36 +02:00
|
|
|
typedef struct _GFileIOStream GFileIOStream;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GFileIcon GFileIcon;
|
|
|
|
typedef struct _GFilenameCompleter GFilenameCompleter;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GIcon GIcon; /* Dummy typedef */
|
2008-12-12 19:13:55 +01:00
|
|
|
typedef struct _GInetAddress GInetAddress;
|
2011-10-01 14:31:54 +02:00
|
|
|
typedef struct _GInetAddressMask GInetAddressMask;
|
2008-12-12 19:13:55 +01:00
|
|
|
typedef struct _GInetSocketAddress GInetSocketAddress;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GInputStream GInputStream;
|
2009-05-14 15:26:37 +02:00
|
|
|
typedef struct _GInitable GInitable;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GIOModule GIOModule;
|
|
|
|
typedef struct _GIOExtensionPoint GIOExtensionPoint;
|
|
|
|
typedef struct _GIOExtension GIOExtension;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GIOSchedulerJob:
|
|
|
|
*
|
2011-08-29 20:49:32 +02:00
|
|
|
* Opaque class for defining and scheduling IO jobs.
|
2008-07-01 08:32:35 +02:00
|
|
|
**/
|
|
|
|
typedef struct _GIOSchedulerJob GIOSchedulerJob;
|
2009-12-21 20:50:32 +01:00
|
|
|
typedef struct _GIOStreamAdapter GIOStreamAdapter;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GLoadableIcon GLoadableIcon; /* Dummy typedef */
|
|
|
|
typedef struct _GMemoryInputStream GMemoryInputStream;
|
|
|
|
typedef struct _GMemoryOutputStream GMemoryOutputStream;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GMount:
|
|
|
|
*
|
|
|
|
* A handle to an object implementing the #GMountIface interface.
|
|
|
|
**/
|
|
|
|
typedef struct _GMount GMount; /* Dummy typedef */
|
|
|
|
typedef struct _GMountOperation GMountOperation;
|
2008-12-29 19:38:28 +01:00
|
|
|
typedef struct _GNetworkAddress GNetworkAddress;
|
2011-06-12 21:59:36 +02:00
|
|
|
typedef struct _GNetworkMonitor GNetworkMonitor;
|
2008-12-29 19:38:28 +01:00
|
|
|
typedef struct _GNetworkService GNetworkService;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GOutputStream GOutputStream;
|
2009-05-12 16:30:15 +02:00
|
|
|
typedef struct _GIOStream GIOStream;
|
2010-09-18 19:05:25 +02:00
|
|
|
typedef struct _GPollableInputStream GPollableInputStream; /* Dummy typedef */
|
|
|
|
typedef struct _GPollableOutputStream GPollableOutputStream; /* Dummy typedef */
|
2008-12-29 18:53:47 +01:00
|
|
|
typedef struct _GResolver GResolver;
|
2011-12-21 21:38:23 +01:00
|
|
|
/**
|
|
|
|
* GResource:
|
|
|
|
*
|
|
|
|
* A resource bundle.
|
|
|
|
*
|
|
|
|
* Since: 2.32
|
|
|
|
*/
|
|
|
|
typedef struct _GResource GResource;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GSeekable GSeekable;
|
|
|
|
typedef struct _GSimpleAsyncResult GSimpleAsyncResult;
|
2009-05-14 15:26:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GSocket:
|
|
|
|
*
|
|
|
|
* A lowlevel network socket object.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GSocket GSocket;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GSocketControlMessage:
|
|
|
|
*
|
|
|
|
* Base class for socket-type specific control messages that can be sent and
|
|
|
|
* received over #GSocket.
|
|
|
|
**/
|
|
|
|
typedef struct _GSocketControlMessage GSocketControlMessage;
|
2009-05-15 21:26:24 +02:00
|
|
|
/**
|
|
|
|
* GSocketClient:
|
|
|
|
*
|
|
|
|
* A helper class for network clients to make connections.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GSocketClient GSocketClient;
|
|
|
|
/**
|
|
|
|
* GSocketConnection:
|
|
|
|
*
|
|
|
|
* A socket connection GIOStream object for connection-oriented sockets.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GSocketConnection GSocketConnection;
|
|
|
|
/**
|
2012-04-02 17:03:56 +02:00
|
|
|
* GSocketListener:
|
2009-05-15 21:26:24 +02:00
|
|
|
*
|
|
|
|
* A helper class for network servers to listen for and accept connections.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GSocketListener GSocketListener;
|
|
|
|
/**
|
|
|
|
* GSocketService:
|
|
|
|
*
|
|
|
|
* A helper class for handling accepting incomming connections in the
|
|
|
|
* glib mainloop.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GSocketService GSocketService;
|
2008-12-12 19:13:55 +01:00
|
|
|
typedef struct _GSocketAddress GSocketAddress;
|
2008-12-29 19:38:28 +01:00
|
|
|
typedef struct _GSocketAddressEnumerator GSocketAddressEnumerator;
|
|
|
|
typedef struct _GSocketConnectable GSocketConnectable;
|
2008-12-29 18:53:47 +01:00
|
|
|
typedef struct _GSrvTarget GSrvTarget;
|
2009-05-15 21:26:24 +02:00
|
|
|
/**
|
|
|
|
* GTcpConnection:
|
|
|
|
*
|
|
|
|
* A #GSocketConnection for TCP/IP connections.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GTcpConnection GTcpConnection;
|
make GProxyConnection public, as GTcpWrapperConnection
GProxyConnection is a class that was added for proxy support;
g_socket_client_connect() returns a GSocketConnection, but in some
cases (eg, encrypted SOCKS), GProxy might return a GIOStream that is
not a GSocketConnection. In that case, GSocketClient would wrap the
stream up in a GProxyConnection, which is a subclass of
GSocketConnection but uses the input/output streams of the wrapped
connection.
GTlsConnection is not a GSocketConnection, so it has the same problem,
so it will need the same treatment. Rename the class to
GTcpWrapperStream, and make it public, so people can extract the base
stream from it when necessary.
(This is not ideal and GSocketClient will need to be revisited as an
API at some point...)
https://bugzilla.gnome.org/show_bug.cgi?id=588189
2010-11-02 01:22:24 +01:00
|
|
|
typedef struct _GTcpWrapperConnection GTcpWrapperConnection;
|
2009-05-15 21:26:24 +02:00
|
|
|
/**
|
|
|
|
* GThreadedSocketService:
|
|
|
|
*
|
2011-10-05 17:45:51 +02:00
|
|
|
* A helper class for handling accepting incoming connections in the
|
2009-05-15 21:26:24 +02:00
|
|
|
* glib mainloop and handling them in a thread.
|
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
**/
|
|
|
|
typedef struct _GThreadedSocketService GThreadedSocketService;
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GThemedIcon GThemedIcon;
|
2009-12-21 20:50:32 +01:00
|
|
|
typedef struct _GTlsCertificate GTlsCertificate;
|
|
|
|
typedef struct _GTlsClientConnection GTlsClientConnection; /* Dummy typedef */
|
|
|
|
typedef struct _GTlsConnection GTlsConnection;
|
2011-08-04 08:54:55 +02:00
|
|
|
typedef struct _GTlsDatabase GTlsDatabase;
|
|
|
|
typedef struct _GTlsFileDatabase GTlsFileDatabase;
|
|
|
|
typedef struct _GTlsInteraction GTlsInteraction;
|
|
|
|
typedef struct _GTlsPassword GTlsPassword;
|
2009-12-21 20:50:32 +01:00
|
|
|
typedef struct _GTlsServerConnection GTlsServerConnection; /* Dummy typedef */
|
2008-07-01 08:32:35 +02:00
|
|
|
typedef struct _GVfs GVfs; /* Dummy typedef */
|
|
|
|
|
2010-05-07 21:55:54 +02:00
|
|
|
/**
|
|
|
|
* GProxyResolver:
|
|
|
|
*
|
|
|
|
* A helper class to enumerate proxies base on URI.
|
|
|
|
*
|
|
|
|
* Since: 2.26
|
|
|
|
**/
|
|
|
|
typedef struct _GProxyResolver GProxyResolver;
|
2010-08-10 21:24:37 +02:00
|
|
|
typedef struct _GProxy GProxy;
|
2010-04-26 23:27:33 +02:00
|
|
|
typedef struct _GProxyAddress GProxyAddress;
|
2010-08-10 21:25:11 +02:00
|
|
|
typedef struct _GProxyAddressEnumerator GProxyAddressEnumerator;
|
2010-05-07 21:55:54 +02:00
|
|
|
|
2008-07-01 08:32:35 +02:00
|
|
|
/**
|
|
|
|
* GVolume:
|
|
|
|
*
|
|
|
|
* Opaque mountable volume object.
|
|
|
|
**/
|
|
|
|
typedef struct _GVolume GVolume; /* Dummy typedef */
|
|
|
|
typedef struct _GVolumeMonitor GVolumeMonitor;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GAsyncReadyCallback:
|
|
|
|
* @source_object: the object the asynchronous operation was started with.
|
|
|
|
* @res: a #GAsyncResult.
|
|
|
|
* @user_data: user data passed to the callback.
|
|
|
|
*
|
|
|
|
* Type definition for a function that will be called back when an asynchronous
|
|
|
|
* operation within GIO has been completed.
|
|
|
|
**/
|
|
|
|
typedef void (*GAsyncReadyCallback) (GObject *source_object,
|
|
|
|
GAsyncResult *res,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GFileProgressCallback:
|
|
|
|
* @current_num_bytes: the current number of bytes in the operation.
|
|
|
|
* @total_num_bytes: the total number of bytes in the operation.
|
|
|
|
* @user_data: user data passed to the callback.
|
|
|
|
*
|
|
|
|
* When doing file operations that may take a while, such as moving
|
|
|
|
* a file or copying a file, a progress callback is used to pass how
|
|
|
|
* far along that operation is to the application.
|
|
|
|
**/
|
|
|
|
typedef void (*GFileProgressCallback) (goffset current_num_bytes,
|
|
|
|
goffset total_num_bytes,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GFileReadMoreCallback:
|
|
|
|
* @file_contents: the data as currently read.
|
|
|
|
* @file_size: the size of the data currently read.
|
|
|
|
* @callback_data: data passed to the callback.
|
|
|
|
*
|
2008-11-21 11:30:43 +01:00
|
|
|
* When loading the partial contents of a file with g_file_load_partial_contents_async(),
|
2008-07-01 08:32:35 +02:00
|
|
|
* it may become necessary to determine if any more data from the file should be loaded.
|
|
|
|
* A #GFileReadMoreCallback function facilitates this by returning %TRUE if more data
|
|
|
|
* should be read, or %FALSE otherwise.
|
|
|
|
*
|
|
|
|
* Returns: %TRUE if more data should be read back. %FALSE otherwise.
|
|
|
|
**/
|
|
|
|
typedef gboolean (* GFileReadMoreCallback) (const char *file_contents,
|
|
|
|
goffset file_size,
|
|
|
|
gpointer callback_data);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GIOSchedulerJobFunc:
|
|
|
|
* @job: a #GIOSchedulerJob.
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
*
|
|
|
|
* I/O Job function.
|
|
|
|
*
|
|
|
|
* Long-running jobs should periodically check the @cancellable
|
|
|
|
* to see if they have been cancelled.
|
|
|
|
*
|
|
|
|
* Returns: %TRUE if this function should be called again to
|
|
|
|
* complete the job, %FALSE if the job is complete (or cancelled)
|
|
|
|
**/
|
|
|
|
typedef gboolean (*GIOSchedulerJobFunc) (GIOSchedulerJob *job,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GSimpleAsyncThreadFunc:
|
|
|
|
* @res: a #GSimpleAsyncResult.
|
|
|
|
* @object: a #GObject.
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
*
|
|
|
|
* Simple thread function that runs an asynchronous operation and
|
|
|
|
* checks for cancellation.
|
|
|
|
**/
|
|
|
|
typedef void (*GSimpleAsyncThreadFunc) (GSimpleAsyncResult *res,
|
|
|
|
GObject *object,
|
|
|
|
GCancellable *cancellable);
|
|
|
|
|
2009-05-14 15:26:37 +02:00
|
|
|
/**
|
|
|
|
* GSocketSourceFunc:
|
2009-05-14 16:58:47 +02:00
|
|
|
* @socket: the #GSocket
|
2009-05-14 15:26:37 +02:00
|
|
|
* @condition: the current condition at the source fired.
|
2009-05-14 16:58:47 +02:00
|
|
|
* @user_data: data passed in by the user.
|
2009-05-14 15:26:37 +02:00
|
|
|
*
|
|
|
|
* This is the function type of the callback used for the #GSource
|
|
|
|
* returned by g_socket_create_source().
|
|
|
|
*
|
2009-05-28 00:20:08 +02:00
|
|
|
* Returns: it should return %FALSE if the source should be removed.
|
2009-05-18 13:02:11 +02:00
|
|
|
*
|
2009-05-14 15:26:37 +02:00
|
|
|
* Since: 2.22
|
|
|
|
*/
|
2009-05-14 16:58:47 +02:00
|
|
|
typedef gboolean (*GSocketSourceFunc) (GSocket *socket,
|
|
|
|
GIOCondition condition,
|
|
|
|
gpointer user_data);
|
2009-05-14 15:26:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GInputVector:
|
2009-05-19 11:27:07 +02:00
|
|
|
* @buffer: Pointer to a buffer where data will be written.
|
2009-05-28 00:20:08 +02:00
|
|
|
* @size: the available size in @buffer.
|
2009-05-14 15:26:37 +02:00
|
|
|
*
|
|
|
|
* Structure used for scatter/gather data input.
|
2009-05-28 00:20:08 +02:00
|
|
|
* You generally pass in an array of #GInputVector<!-- -->s
|
|
|
|
* and the operation will store the read data starting in the
|
|
|
|
* first buffer, switching to the next as needed.
|
2009-05-14 15:26:37 +02:00
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
*/
|
2009-05-19 11:27:07 +02:00
|
|
|
typedef struct _GInputVector GInputVector;
|
|
|
|
|
|
|
|
struct _GInputVector {
|
2009-05-14 15:26:37 +02:00
|
|
|
gpointer buffer;
|
|
|
|
gsize size;
|
2009-05-19 11:27:07 +02:00
|
|
|
};
|
2009-05-14 15:26:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GOutputVector:
|
2009-05-19 11:27:07 +02:00
|
|
|
* @buffer: Pointer to a buffer of data to read.
|
|
|
|
* @size: the size of @buffer.
|
2009-05-14 15:26:37 +02:00
|
|
|
*
|
|
|
|
* Structure used for scatter/gather data output.
|
2009-05-28 00:20:08 +02:00
|
|
|
* You generally pass in an array of #GOutputVector<!-- -->s
|
|
|
|
* and the operation will use all the buffers as if they were
|
|
|
|
* one buffer.
|
2009-05-14 15:26:37 +02:00
|
|
|
*
|
|
|
|
* Since: 2.22
|
|
|
|
*/
|
2009-05-19 11:27:07 +02:00
|
|
|
typedef struct _GOutputVector GOutputVector;
|
|
|
|
|
|
|
|
struct _GOutputVector {
|
2009-05-14 15:26:37 +02:00
|
|
|
gconstpointer buffer;
|
|
|
|
gsize size;
|
2009-05-19 11:27:07 +02:00
|
|
|
};
|
2009-05-14 15:26:37 +02:00
|
|
|
|
2010-05-06 20:13:59 +02:00
|
|
|
typedef struct _GCredentials GCredentials;
|
|
|
|
typedef struct _GUnixCredentialsMessage GUnixCredentialsMessage;
|
2010-05-14 02:29:04 +02:00
|
|
|
typedef struct _GUnixFDList GUnixFDList;
|
2010-05-06 20:13:59 +02:00
|
|
|
typedef struct _GDBusMessage GDBusMessage;
|
|
|
|
typedef struct _GDBusConnection GDBusConnection;
|
|
|
|
typedef struct _GDBusProxy GDBusProxy;
|
|
|
|
typedef struct _GDBusMethodInvocation GDBusMethodInvocation;
|
|
|
|
typedef struct _GDBusServer GDBusServer;
|
|
|
|
typedef struct _GDBusAuthObserver GDBusAuthObserver;
|
|
|
|
typedef struct _GDBusErrorEntry GDBusErrorEntry;
|
|
|
|
typedef struct _GDBusInterfaceVTable GDBusInterfaceVTable;
|
|
|
|
typedef struct _GDBusSubtreeVTable GDBusSubtreeVTable;
|
|
|
|
typedef struct _GDBusAnnotationInfo GDBusAnnotationInfo;
|
|
|
|
typedef struct _GDBusArgInfo GDBusArgInfo;
|
|
|
|
typedef struct _GDBusMethodInfo GDBusMethodInfo;
|
|
|
|
typedef struct _GDBusSignalInfo GDBusSignalInfo;
|
|
|
|
typedef struct _GDBusPropertyInfo GDBusPropertyInfo;
|
|
|
|
typedef struct _GDBusInterfaceInfo GDBusInterfaceInfo;
|
|
|
|
typedef struct _GDBusNodeInfo GDBusNodeInfo;
|
2009-05-14 15:26:37 +02:00
|
|
|
|
2010-11-06 20:49:55 +01:00
|
|
|
/**
|
|
|
|
* GCancellableSourceFunc:
|
|
|
|
* @cancellable: the #GCancellable
|
|
|
|
* @user_data: data passed in by the user.
|
|
|
|
*
|
|
|
|
* This is the function type of the callback used for the #GSource
|
|
|
|
* returned by g_cancellable_source_new().
|
|
|
|
*
|
|
|
|
* Returns: it should return %FALSE if the source should be removed.
|
|
|
|
*
|
|
|
|
* Since: 2.28
|
|
|
|
*/
|
|
|
|
typedef gboolean (*GCancellableSourceFunc) (GCancellable *cancellable,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2010-09-18 19:05:25 +02:00
|
|
|
/**
|
|
|
|
* GPollableSourceFunc:
|
|
|
|
* @pollable_stream: the #GPollableInputStream or #GPollableOutputStream
|
|
|
|
* @user_data: data passed in by the user.
|
|
|
|
*
|
|
|
|
* This is the function type of the callback used for the #GSource
|
|
|
|
* returned by g_pollable_input_stream_create_source() and
|
|
|
|
* g_pollable_output_stream_create_source().
|
|
|
|
*
|
|
|
|
* Returns: it should return %FALSE if the source should be removed.
|
|
|
|
*
|
|
|
|
* Since: 2.28
|
|
|
|
*/
|
|
|
|
typedef gboolean (*GPollableSourceFunc) (GObject *pollable_stream,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2011-04-08 21:14:47 +02:00
|
|
|
typedef struct _GDBusInterface GDBusInterface; /* Dummy typedef */
|
2011-04-13 22:33:51 +02:00
|
|
|
typedef struct _GDBusInterfaceSkeleton GDBusInterfaceSkeleton;
|
2011-04-08 21:14:47 +02:00
|
|
|
typedef struct _GDBusObject GDBusObject; /* Dummy typedef */
|
2011-04-13 22:33:51 +02:00
|
|
|
typedef struct _GDBusObjectSkeleton GDBusObjectSkeleton;
|
2011-04-08 21:14:47 +02:00
|
|
|
typedef struct _GDBusObjectProxy GDBusObjectProxy;
|
|
|
|
typedef struct _GDBusObjectManager GDBusObjectManager; /* Dummy typedef */
|
|
|
|
typedef struct _GDBusObjectManagerClient GDBusObjectManagerClient;
|
|
|
|
typedef struct _GDBusObjectManagerServer GDBusObjectManagerServer;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GDBusProxyTypeFunc:
|
|
|
|
* @manager: A #GDBusObjectManagerClient.
|
|
|
|
* @object_path: The object path of the remote object.
|
2011-04-25 15:29:18 +02:00
|
|
|
* @interface_name: (allow-none): The interface name of the remote object or %NULL if a #GDBusObjectProxy #GType is requested.
|
2011-04-08 21:14:47 +02:00
|
|
|
* @user_data: User data.
|
|
|
|
*
|
|
|
|
* Function signature for a function used to determine the #GType to
|
2011-04-25 15:29:18 +02:00
|
|
|
* use for an interface proxy (if @interface_name is not %NULL) or
|
|
|
|
* object proxy (if @interface_name is %NULL).
|
2011-04-08 21:14:47 +02:00
|
|
|
*
|
|
|
|
* This function is called in the
|
|
|
|
* <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
|
|
|
|
* that @manager was constructed in.
|
|
|
|
*
|
|
|
|
* Returns: A #GType to use for the remote object. The returned type
|
2011-04-25 15:29:18 +02:00
|
|
|
* must be a #GDBusProxy<!-- -->- or #GDBusObjectProxy<!-- -->-derived
|
|
|
|
* type.
|
2011-04-08 21:14:47 +02:00
|
|
|
*
|
|
|
|
* Since: 2.30
|
|
|
|
*/
|
|
|
|
typedef GType (*GDBusProxyTypeFunc) (GDBusObjectManagerClient *manager,
|
|
|
|
const gchar *object_path,
|
|
|
|
const gchar *interface_name,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2008-07-01 08:32:35 +02:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIO_TYPES_H__ */
|