Warning, file /include/glib-2.0/gio/gproxy.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #ifndef __G_PROXY_H__
0026 #define __G_PROXY_H__
0027
0028 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0029 #error "Only <gio/gio.h> can be included directly."
0030 #endif
0031
0032 #include <gio/giotypes.h>
0033
0034 G_BEGIN_DECLS
0035
0036 #define G_TYPE_PROXY (g_proxy_get_type ())
0037 #define G_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_PROXY, GProxy))
0038 #define G_IS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_PROXY))
0039 #define G_PROXY_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_PROXY, GProxyInterface))
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049 #define G_PROXY_EXTENSION_POINT_NAME "gio-proxy"
0050
0051 typedef struct _GProxyInterface GProxyInterface;
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066 struct _GProxyInterface
0067 {
0068 GTypeInterface g_iface;
0069
0070
0071
0072 GIOStream * (* connect) (GProxy *proxy,
0073 GIOStream *connection,
0074 GProxyAddress *proxy_address,
0075 GCancellable *cancellable,
0076 GError **error);
0077
0078 void (* connect_async) (GProxy *proxy,
0079 GIOStream *connection,
0080 GProxyAddress *proxy_address,
0081 GCancellable *cancellable,
0082 GAsyncReadyCallback callback,
0083 gpointer user_data);
0084
0085 GIOStream * (* connect_finish) (GProxy *proxy,
0086 GAsyncResult *result,
0087 GError **error);
0088
0089 gboolean (* supports_hostname) (GProxy *proxy);
0090 };
0091
0092 GIO_AVAILABLE_IN_ALL
0093 GType g_proxy_get_type (void) G_GNUC_CONST;
0094
0095 GIO_AVAILABLE_IN_ALL
0096 GProxy *g_proxy_get_default_for_protocol (const gchar *protocol);
0097
0098 GIO_AVAILABLE_IN_ALL
0099 GIOStream *g_proxy_connect (GProxy *proxy,
0100 GIOStream *connection,
0101 GProxyAddress *proxy_address,
0102 GCancellable *cancellable,
0103 GError **error);
0104
0105 GIO_AVAILABLE_IN_ALL
0106 void g_proxy_connect_async (GProxy *proxy,
0107 GIOStream *connection,
0108 GProxyAddress *proxy_address,
0109 GCancellable *cancellable,
0110 GAsyncReadyCallback callback,
0111 gpointer user_data);
0112
0113 GIO_AVAILABLE_IN_ALL
0114 GIOStream *g_proxy_connect_finish (GProxy *proxy,
0115 GAsyncResult *result,
0116 GError **error);
0117
0118 GIO_AVAILABLE_IN_ALL
0119 gboolean g_proxy_supports_hostname (GProxy *proxy);
0120
0121 G_END_DECLS
0122
0123 #endif