Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:00:00

0001 /* GIO - GLib Input, Output and Streaming Library
0002  *
0003  * Copyright (C) 2008 Christian Kellner, Samuel Cormier-Iijima
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-or-later
0006  *
0007  * This library is free software; you can redistribute it and/or
0008  * modify it under the terms of the GNU Lesser General Public
0009  * License as published by the Free Software Foundation; either
0010  * version 2.1 of the License, or (at your option) any later version.
0011  *
0012  * This library is distributed in the hope that it will be useful,
0013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015  * Lesser General Public License for more details.
0016  *
0017  * You should have received a copy of the GNU Lesser General
0018  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0019  *
0020  * Authors: Christian Kellner <gicmo@gnome.org>
0021  *          Samuel Cormier-Iijima <sciyoshi@gmail.com>
0022  */
0023 
0024 #ifndef __G_UNIX_SOCKET_ADDRESS_H__
0025 #define __G_UNIX_SOCKET_ADDRESS_H__
0026 
0027 #include <gio/gio.h>
0028 
0029 G_BEGIN_DECLS
0030 
0031 #define G_TYPE_UNIX_SOCKET_ADDRESS         (g_unix_socket_address_get_type ())
0032 #define G_UNIX_SOCKET_ADDRESS(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_UNIX_SOCKET_ADDRESS, GUnixSocketAddress))
0033 #define G_UNIX_SOCKET_ADDRESS_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_UNIX_SOCKET_ADDRESS, GUnixSocketAddressClass))
0034 #define G_IS_UNIX_SOCKET_ADDRESS(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_UNIX_SOCKET_ADDRESS))
0035 #define G_IS_UNIX_SOCKET_ADDRESS_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_UNIX_SOCKET_ADDRESS))
0036 #define G_UNIX_SOCKET_ADDRESS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_UNIX_SOCKET_ADDRESS, GUnixSocketAddressClass))
0037 
0038 typedef struct _GUnixSocketAddress        GUnixSocketAddress;
0039 typedef struct _GUnixSocketAddressClass   GUnixSocketAddressClass;
0040 typedef struct _GUnixSocketAddressPrivate GUnixSocketAddressPrivate;
0041 
0042 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUnixSocketAddress, g_object_unref)
0043 
0044 struct _GUnixSocketAddress
0045 {
0046   GSocketAddress parent_instance;
0047 
0048   /*< private >*/
0049   GUnixSocketAddressPrivate *priv;
0050 };
0051 
0052 struct _GUnixSocketAddressClass
0053 {
0054   GSocketAddressClass parent_class;
0055 };
0056 
0057 GIO_AVAILABLE_IN_ALL
0058 GType           g_unix_socket_address_get_type    (void) G_GNUC_CONST;
0059 
0060 GIO_AVAILABLE_IN_ALL
0061 GSocketAddress *g_unix_socket_address_new             (const gchar        *path);
0062 GIO_DEPRECATED_FOR(g_unix_socket_address_new_with_type)
0063 GSocketAddress *g_unix_socket_address_new_abstract    (const gchar        *path,
0064                                                        gint                path_len);
0065 GIO_AVAILABLE_IN_ALL
0066 GSocketAddress *g_unix_socket_address_new_with_type   (const gchar            *path,
0067                                                        gint                    path_len,
0068                                                        GUnixSocketAddressType  type);
0069 GIO_AVAILABLE_IN_ALL
0070 const char *    g_unix_socket_address_get_path        (GUnixSocketAddress *address);
0071 GIO_AVAILABLE_IN_ALL
0072 gsize           g_unix_socket_address_get_path_len    (GUnixSocketAddress *address);
0073 GIO_AVAILABLE_IN_ALL
0074 GUnixSocketAddressType g_unix_socket_address_get_address_type (GUnixSocketAddress *address);
0075 GIO_DEPRECATED
0076 gboolean        g_unix_socket_address_get_is_abstract (GUnixSocketAddress *address);
0077 
0078 GIO_AVAILABLE_IN_ALL
0079 gboolean        g_unix_socket_address_abstract_names_supported (void);
0080 
0081 G_END_DECLS
0082 
0083 #endif /* __G_UNIX_SOCKET_ADDRESS_H__ */