File indexing completed on 2025-10-30 08:43:15
0001 
0002 
0003 
0004 
0005 
0006 
0007 
0008 
0009 
0010 
0011 
0012 
0013 
0014 
0015 
0016 
0017 
0018 
0019 
0020 
0021 
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   
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