Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gunixconnection.h
Go to the documentation of this file.
1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright © 2009 Codethink Limited
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Authors: Ryan Lortie <desrt@desrt.ca>
21 */
22
23#ifndef __G_UNIX_CONNECTION_H__
24#define __G_UNIX_CONNECTION_H__
25
26#include <gio/gio.h>
27
29
30#define G_TYPE_UNIX_CONNECTION (g_unix_connection_get_type ())
31#define G_UNIX_CONNECTION(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
32 G_TYPE_UNIX_CONNECTION, GUnixConnection))
33#define G_UNIX_CONNECTION_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
34 G_TYPE_UNIX_CONNECTION, GUnixConnectionClass))
35#define G_IS_UNIX_CONNECTION(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
36 G_TYPE_UNIX_CONNECTION))
37#define G_IS_UNIX_CONNECTION_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
38 G_TYPE_UNIX_CONNECTION))
39#define G_UNIX_CONNECTION_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
40 G_TYPE_UNIX_CONNECTION, GUnixConnectionClass))
41
43typedef struct _GUnixConnectionPrivate GUnixConnectionPrivate;
45
47
52
58
61
64 gint fd,
65 GCancellable *cancellable,
66 GError **error);
69 GCancellable *cancellable,
70 GError **error);
71
74 GCancellable *cancellable,
75 GError **error);
78 GCancellable *cancellable,
79 GAsyncReadyCallback callback,
80 gpointer user_data);
83 GAsyncResult *result,
84 GError **error);
85
88 GCancellable *cancellable,
89 GError **error);
92 GCancellable *cancellable,
93 GAsyncReadyCallback callback,
94 gpointer user_data);
97 GAsyncResult *result,
98 GError **error);
99
101
102#endif /* __G_UNIX_CONNECTION_H__ */
#define GIO_AVAILABLE_IN_ALL
#define GIO_AVAILABLE_IN_2_32
struct _GCredentials GCredentials
Definition giotypes.h:464
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
int gint
Definition gtypes.h:55
struct _GUnixConnectionPrivate GUnixConnectionPrivate
GIO_AVAILABLE_IN_2_32 void g_unix_connection_send_credentials_async(GUnixConnection *connection, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL GType g_unix_connection_get_type(void)
GIO_AVAILABLE_IN_2_32 GCredentials * g_unix_connection_receive_credentials(GUnixConnection *connection, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL gint g_unix_connection_receive_fd(GUnixConnection *connection, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL GCredentials * g_unix_connection_receive_credentials_finish(GUnixConnection *connection, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_2_32 gboolean g_unix_connection_send_credentials_finish(GUnixConnection *connection, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL gboolean g_unix_connection_send_credentials(GUnixConnection *connection, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL gboolean g_unix_connection_send_fd(GUnixConnection *connection, gint fd, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_32 void g_unix_connection_receive_credentials_async(GUnixConnection *connection, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
static void error(LoadState *S, const char *why)
GSocketConnectionClass parent_class
GSocketConnection parent_instance
GUnixConnectionPrivate * priv