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_MESSAGE_H__
0024 #define __G_DBUS_MESSAGE_H__
0025 
0026 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0027 #error "Only <gio/gio.h> can be included directly."
0028 #endif
0029 
0030 #include <gio/giotypes.h>
0031 
0032 G_BEGIN_DECLS
0033 
0034 #define G_TYPE_DBUS_MESSAGE         (g_dbus_message_get_type ())
0035 #define G_DBUS_MESSAGE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_MESSAGE, GDBusMessage))
0036 #define G_IS_DBUS_MESSAGE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_MESSAGE))
0037 
0038 GIO_AVAILABLE_IN_ALL
0039 GType                     g_dbus_message_get_type           (void) G_GNUC_CONST;
0040 GIO_AVAILABLE_IN_ALL
0041 GDBusMessage             *g_dbus_message_new                (void);
0042 GIO_AVAILABLE_IN_ALL
0043 GDBusMessage             *g_dbus_message_new_signal         (const gchar              *path,
0044                                                              const gchar              *interface_,
0045                                                              const gchar              *signal);
0046 GIO_AVAILABLE_IN_ALL
0047 GDBusMessage             *g_dbus_message_new_method_call    (const gchar              *name,
0048                                                              const gchar              *path,
0049                                                              const gchar              *interface_,
0050                                                              const gchar              *method);
0051 GIO_AVAILABLE_IN_ALL
0052 GDBusMessage             *g_dbus_message_new_method_reply   (GDBusMessage             *method_call_message);
0053 GIO_AVAILABLE_IN_ALL
0054 GDBusMessage             *g_dbus_message_new_method_error   (GDBusMessage             *method_call_message,
0055                                                              const gchar              *error_name,
0056                                                              const gchar              *error_message_format,
0057                                                              ...) G_GNUC_PRINTF(3, 4);
0058 GIO_AVAILABLE_IN_ALL
0059 GDBusMessage             *g_dbus_message_new_method_error_valist (GDBusMessage             *method_call_message,
0060                                                                   const gchar              *error_name,
0061                                                                   const gchar              *error_message_format,
0062                                                                   va_list                   var_args);
0063 GIO_AVAILABLE_IN_ALL
0064 GDBusMessage             *g_dbus_message_new_method_error_literal (GDBusMessage             *method_call_message,
0065                                                                    const gchar              *error_name,
0066                                                                    const gchar              *error_message);
0067 GIO_AVAILABLE_IN_ALL
0068 gchar                    *g_dbus_message_print              (GDBusMessage             *message,
0069                                                              guint                     indent);
0070 GIO_AVAILABLE_IN_ALL
0071 gboolean                  g_dbus_message_get_locked         (GDBusMessage             *message);
0072 GIO_AVAILABLE_IN_ALL
0073 void                      g_dbus_message_lock               (GDBusMessage             *message);
0074 GIO_AVAILABLE_IN_ALL
0075 GDBusMessage             *g_dbus_message_copy               (GDBusMessage             *message,
0076                                                              GError                  **error);
0077 GIO_AVAILABLE_IN_ALL
0078 GDBusMessageByteOrder     g_dbus_message_get_byte_order     (GDBusMessage             *message);
0079 GIO_AVAILABLE_IN_ALL
0080 void                      g_dbus_message_set_byte_order     (GDBusMessage             *message,
0081                                                              GDBusMessageByteOrder     byte_order);
0082 
0083 GIO_AVAILABLE_IN_ALL
0084 GDBusMessageType          g_dbus_message_get_message_type   (GDBusMessage             *message);
0085 GIO_AVAILABLE_IN_ALL
0086 void                      g_dbus_message_set_message_type   (GDBusMessage             *message,
0087                                                              GDBusMessageType          type);
0088 GIO_AVAILABLE_IN_ALL
0089 GDBusMessageFlags         g_dbus_message_get_flags          (GDBusMessage             *message);
0090 GIO_AVAILABLE_IN_ALL
0091 void                      g_dbus_message_set_flags          (GDBusMessage             *message,
0092                                                              GDBusMessageFlags         flags);
0093 GIO_AVAILABLE_IN_ALL
0094 guint32                   g_dbus_message_get_serial         (GDBusMessage             *message);
0095 GIO_AVAILABLE_IN_ALL
0096 void                      g_dbus_message_set_serial         (GDBusMessage             *message,
0097                                                              guint32                   serial);
0098 GIO_AVAILABLE_IN_ALL
0099 GVariant                 *g_dbus_message_get_header         (GDBusMessage             *message,
0100                                                              GDBusMessageHeaderField   header_field);
0101 GIO_AVAILABLE_IN_ALL
0102 void                      g_dbus_message_set_header         (GDBusMessage             *message,
0103                                                              GDBusMessageHeaderField   header_field,
0104                                                              GVariant                 *value);
0105 GIO_AVAILABLE_IN_ALL
0106 guchar                   *g_dbus_message_get_header_fields  (GDBusMessage             *message);
0107 GIO_AVAILABLE_IN_ALL
0108 GVariant                 *g_dbus_message_get_body           (GDBusMessage             *message);
0109 GIO_AVAILABLE_IN_ALL
0110 void                      g_dbus_message_set_body           (GDBusMessage             *message,
0111                                                              GVariant                 *body);
0112 
0113 #ifdef G_OS_UNIX
0114 
0115 GIO_AVAILABLE_IN_ALL
0116 GUnixFDList              *g_dbus_message_get_unix_fd_list   (GDBusMessage             *message);
0117 GIO_AVAILABLE_IN_ALL
0118 void                      g_dbus_message_set_unix_fd_list   (GDBusMessage             *message,
0119                                                              GUnixFDList              *fd_list);
0120 
0121 #endif /* G_OS_UNIX */
0122 
0123 GIO_AVAILABLE_IN_ALL
0124 guint32                   g_dbus_message_get_reply_serial   (GDBusMessage             *message);
0125 GIO_AVAILABLE_IN_ALL
0126 void                      g_dbus_message_set_reply_serial   (GDBusMessage             *message,
0127                                                              guint32                   value);
0128 
0129 GIO_AVAILABLE_IN_ALL
0130 const gchar              *g_dbus_message_get_interface      (GDBusMessage             *message);
0131 GIO_AVAILABLE_IN_ALL
0132 void                      g_dbus_message_set_interface      (GDBusMessage             *message,
0133                                                              const gchar              *value);
0134 
0135 GIO_AVAILABLE_IN_ALL
0136 const gchar              *g_dbus_message_get_member         (GDBusMessage             *message);
0137 GIO_AVAILABLE_IN_ALL
0138 void                      g_dbus_message_set_member         (GDBusMessage             *message,
0139                                                              const gchar              *value);
0140 
0141 GIO_AVAILABLE_IN_ALL
0142 const gchar              *g_dbus_message_get_path           (GDBusMessage             *message);
0143 GIO_AVAILABLE_IN_ALL
0144 void                      g_dbus_message_set_path           (GDBusMessage             *message,
0145                                                              const gchar              *value);
0146 
0147 GIO_AVAILABLE_IN_ALL
0148 const gchar              *g_dbus_message_get_sender         (GDBusMessage             *message);
0149 GIO_AVAILABLE_IN_ALL
0150 void                      g_dbus_message_set_sender         (GDBusMessage             *message,
0151                                                              const gchar              *value);
0152 
0153 GIO_AVAILABLE_IN_ALL
0154 const gchar              *g_dbus_message_get_destination    (GDBusMessage             *message);
0155 GIO_AVAILABLE_IN_ALL
0156 void                      g_dbus_message_set_destination    (GDBusMessage             *message,
0157                                                              const gchar              *value);
0158 
0159 GIO_AVAILABLE_IN_ALL
0160 const gchar              *g_dbus_message_get_error_name     (GDBusMessage             *message);
0161 GIO_AVAILABLE_IN_ALL
0162 void                      g_dbus_message_set_error_name     (GDBusMessage             *message,
0163                                                              const gchar              *value);
0164 
0165 GIO_AVAILABLE_IN_ALL
0166 const gchar              *g_dbus_message_get_signature      (GDBusMessage             *message);
0167 GIO_AVAILABLE_IN_ALL
0168 void                      g_dbus_message_set_signature      (GDBusMessage             *message,
0169                                                              const gchar              *value);
0170 
0171 GIO_AVAILABLE_IN_ALL
0172 guint32                   g_dbus_message_get_num_unix_fds   (GDBusMessage             *message);
0173 GIO_AVAILABLE_IN_ALL
0174 void                      g_dbus_message_set_num_unix_fds   (GDBusMessage             *message,
0175                                                              guint32                   value);
0176 
0177 GIO_AVAILABLE_IN_ALL
0178 const gchar              *g_dbus_message_get_arg0           (GDBusMessage             *message);
0179 GIO_AVAILABLE_IN_2_80
0180 const gchar              *g_dbus_message_get_arg0_path      (GDBusMessage             *message);
0181 
0182 GIO_AVAILABLE_IN_ALL
0183 GDBusMessage             *g_dbus_message_new_from_blob      (guchar                   *blob,
0184                                                              gsize                     blob_len,
0185                                                              GDBusCapabilityFlags      capabilities,
0186                                                              GError                  **error);
0187 
0188 GIO_AVAILABLE_IN_ALL
0189 gssize                    g_dbus_message_bytes_needed       (guchar                   *blob,
0190                                                              gsize                     blob_len,
0191                                                              GError                  **error);
0192 
0193 GIO_AVAILABLE_IN_ALL
0194 guchar                   *g_dbus_message_to_blob            (GDBusMessage             *message,
0195                                                              gsize                    *out_size,
0196                                                              GDBusCapabilityFlags      capabilities,
0197                                                              GError                  **error);
0198 
0199 GIO_AVAILABLE_IN_ALL
0200 gboolean                  g_dbus_message_to_gerror          (GDBusMessage             *message,
0201                                                              GError                  **error);
0202 
0203 G_END_DECLS
0204 
0205 #endif /* __G_DBUS_MESSAGE_H__ */