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) 2010 Red Hat, Inc.
0004  * Copyright (C) 2009 Codethink Limited
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  *
0008  * This library is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU Lesser General Public
0010  * License as published by the Free Software Foundation; either
0011  * version 2.1 of the License, or (at your option) any later version.
0012  *
0013  * This library is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016  * Lesser General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Lesser General
0019  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0020  *
0021  * Authors: David Zeuthen <davidz@redhat.com>
0022  */
0023 
0024 #ifndef __G_UNIX_CREDENTIALS_MESSAGE_H__
0025 #define __G_UNIX_CREDENTIALS_MESSAGE_H__
0026 
0027 #include <gio/gio.h>
0028 
0029 G_BEGIN_DECLS
0030 
0031 #define G_TYPE_UNIX_CREDENTIALS_MESSAGE         (g_unix_credentials_message_get_type ())
0032 #define G_UNIX_CREDENTIALS_MESSAGE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_UNIX_CREDENTIALS_MESSAGE, GUnixCredentialsMessage))
0033 #define G_UNIX_CREDENTIALS_MESSAGE_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST ((c), G_TYPE_UNIX_CREDENTIALS_MESSAGE, GUnixCredentialsMessageClass))
0034 #define G_IS_UNIX_CREDENTIALS_MESSAGE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_UNIX_CREDENTIALS_MESSAGE))
0035 #define G_IS_UNIX_CREDENTIALS_MESSAGE_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), G_TYPE_UNIX_CREDENTIALS_MESSAGE))
0036 #define G_UNIX_CREDENTIALS_MESSAGE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_UNIX_CREDENTIALS_MESSAGE, GUnixCredentialsMessageClass))
0037 
0038 typedef struct _GUnixCredentialsMessagePrivate  GUnixCredentialsMessagePrivate;
0039 typedef struct _GUnixCredentialsMessageClass    GUnixCredentialsMessageClass;
0040 
0041 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUnixCredentialsMessage, g_object_unref)
0042 
0043 /**
0044  * GUnixCredentialsMessageClass:
0045  *
0046  * Class structure for #GUnixCredentialsMessage.
0047  *
0048  * Since: 2.26
0049  */
0050 struct _GUnixCredentialsMessageClass
0051 {
0052   GSocketControlMessageClass parent_class;
0053 
0054   /*< private >*/
0055 
0056   /* Padding for future expansion */
0057   void (*_g_reserved1) (void);
0058   void (*_g_reserved2) (void);
0059 };
0060 
0061 struct _GUnixCredentialsMessage
0062 {
0063   GSocketControlMessage parent_instance;
0064   GUnixCredentialsMessagePrivate *priv;
0065 };
0066 
0067 GIO_AVAILABLE_IN_ALL
0068 GType                  g_unix_credentials_message_get_type             (void) G_GNUC_CONST;
0069 GIO_AVAILABLE_IN_ALL
0070 GSocketControlMessage *g_unix_credentials_message_new                  (void);
0071 GIO_AVAILABLE_IN_ALL
0072 GSocketControlMessage *g_unix_credentials_message_new_with_credentials (GCredentials *credentials);
0073 GIO_AVAILABLE_IN_ALL
0074 GCredentials          *g_unix_credentials_message_get_credentials      (GUnixCredentialsMessage *message);
0075 
0076 GIO_AVAILABLE_IN_ALL
0077 gboolean               g_unix_credentials_message_is_supported         (void);
0078 
0079 G_END_DECLS
0080 
0081 #endif /* __G_UNIX_CREDENTIALS_MESSAGE_H__ */