Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:55

0001 /* GDBus - GLib D-Bus Library
0002  *
0003  * Copyright (C) 2008-2010 Red Hat, Inc.
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  * Author: David Zeuthen <davidz@redhat.com>
0021  */
0022 
0023 #ifndef __G_DBUS_INTERFACE_SKELETON_H__
0024 #define __G_DBUS_INTERFACE_SKELETON_H__
0025 
0026 #include <gio/giotypes.h>
0027 
0028 G_BEGIN_DECLS
0029 
0030 #define G_TYPE_DBUS_INTERFACE_SKELETON         (g_dbus_interface_skeleton_get_type ())
0031 #define G_DBUS_INTERFACE_SKELETON(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeleton))
0032 #define G_DBUS_INTERFACE_SKELETON_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
0033 #define G_DBUS_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
0034 #define G_IS_DBUS_INTERFACE_SKELETON(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_INTERFACE_SKELETON))
0035 #define G_IS_DBUS_INTERFACE_SKELETON_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_INTERFACE_SKELETON))
0036 
0037 typedef struct _GDBusInterfaceSkeletonClass   GDBusInterfaceSkeletonClass;
0038 typedef struct _GDBusInterfaceSkeletonPrivate GDBusInterfaceSkeletonPrivate;
0039 
0040 struct _GDBusInterfaceSkeleton
0041 {
0042   /*< private >*/
0043   GObject parent_instance;
0044   GDBusInterfaceSkeletonPrivate *priv;
0045 };
0046 
0047 /**
0048  * GDBusInterfaceSkeletonClass:
0049  * @parent_class: The parent class.
0050  * @get_info: Returns a #GDBusInterfaceInfo. See g_dbus_interface_skeleton_get_info() for details.
0051  * @get_vtable: Returns a #GDBusInterfaceVTable. See g_dbus_interface_skeleton_get_vtable() for details.
0052  * @get_properties: Returns a #GVariant with all properties. See g_dbus_interface_skeleton_get_properties().
0053  * @flush: Emits outstanding changes, if any. See g_dbus_interface_skeleton_flush().
0054  * @g_authorize_method: Signal class handler for the #GDBusInterfaceSkeleton::g-authorize-method signal.
0055  *
0056  * Class structure for #GDBusInterfaceSkeleton.
0057  *
0058  * Since: 2.30
0059  */
0060 struct _GDBusInterfaceSkeletonClass
0061 {
0062   GObjectClass parent_class;
0063 
0064   /* Virtual Functions */
0065   GDBusInterfaceInfo   *(*get_info)       (GDBusInterfaceSkeleton  *interface_);
0066   GDBusInterfaceVTable *(*get_vtable)     (GDBusInterfaceSkeleton  *interface_);
0067   GVariant             *(*get_properties) (GDBusInterfaceSkeleton  *interface_);
0068   void                  (*flush)          (GDBusInterfaceSkeleton  *interface_);
0069 
0070   /*< private >*/
0071   gpointer vfunc_padding[8];
0072   /*< public >*/
0073 
0074   /* Signals */
0075   gboolean (*g_authorize_method) (GDBusInterfaceSkeleton  *interface_,
0076                                   GDBusMethodInvocation   *invocation);
0077 
0078   /*< private >*/
0079   gpointer signal_padding[8];
0080 };
0081 
0082 GIO_AVAILABLE_IN_ALL
0083 GType                        g_dbus_interface_skeleton_get_type        (void) G_GNUC_CONST;
0084 GIO_AVAILABLE_IN_ALL
0085 GDBusInterfaceSkeletonFlags  g_dbus_interface_skeleton_get_flags       (GDBusInterfaceSkeleton      *interface_);
0086 GIO_AVAILABLE_IN_ALL
0087 void                         g_dbus_interface_skeleton_set_flags       (GDBusInterfaceSkeleton      *interface_,
0088                                                                         GDBusInterfaceSkeletonFlags  flags);
0089 GIO_AVAILABLE_IN_ALL
0090 GDBusInterfaceInfo          *g_dbus_interface_skeleton_get_info        (GDBusInterfaceSkeleton      *interface_);
0091 GIO_AVAILABLE_IN_ALL
0092 GDBusInterfaceVTable        *g_dbus_interface_skeleton_get_vtable      (GDBusInterfaceSkeleton      *interface_);
0093 GIO_AVAILABLE_IN_ALL
0094 GVariant                    *g_dbus_interface_skeleton_get_properties  (GDBusInterfaceSkeleton      *interface_);
0095 GIO_AVAILABLE_IN_ALL
0096 void                         g_dbus_interface_skeleton_flush           (GDBusInterfaceSkeleton      *interface_);
0097 
0098 GIO_AVAILABLE_IN_ALL
0099 gboolean                     g_dbus_interface_skeleton_export          (GDBusInterfaceSkeleton      *interface_,
0100                                                                         GDBusConnection             *connection,
0101                                                                         const gchar                 *object_path,
0102                                                                         GError                     **error);
0103 GIO_AVAILABLE_IN_ALL
0104 void                         g_dbus_interface_skeleton_unexport        (GDBusInterfaceSkeleton      *interface_);
0105 GIO_AVAILABLE_IN_ALL
0106 void                g_dbus_interface_skeleton_unexport_from_connection (GDBusInterfaceSkeleton      *interface_,
0107                                                                         GDBusConnection             *connection);
0108 
0109 GIO_AVAILABLE_IN_ALL
0110 GDBusConnection             *g_dbus_interface_skeleton_get_connection  (GDBusInterfaceSkeleton      *interface_);
0111 GIO_AVAILABLE_IN_ALL
0112 GList                       *g_dbus_interface_skeleton_get_connections (GDBusInterfaceSkeleton      *interface_);
0113 GIO_AVAILABLE_IN_ALL
0114 gboolean                     g_dbus_interface_skeleton_has_connection  (GDBusInterfaceSkeleton      *interface_,
0115                                                                         GDBusConnection             *connection);
0116 GIO_AVAILABLE_IN_ALL
0117 const gchar                 *g_dbus_interface_skeleton_get_object_path (GDBusInterfaceSkeleton      *interface_);
0118 
0119 G_END_DECLS
0120 
0121 #endif /* __G_DBUS_INTERFACE_SKELETON_H */