QtBase  v6.3.1
dbus_minimal_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2016 Intel Corporation.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the QtDBus module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 3 requirements
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24 **
25 ** GNU General Public License Usage
26 ** Alternatively, this file may be used under the terms of the GNU
27 ** General Public License version 2.0 or (at your option) the GNU General
28 ** Public license version 3 or any later version approved by the KDE Free
29 ** Qt Foundation. The licenses are as published by the Free Software
30 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31 ** included in the packaging of this file. Please review the following
32 ** information to ensure the GNU General Public License requirements will
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
35 **
36 ** $QT_END_LICENSE$
37 **
38 ****************************************************************************/
39 
40 #ifndef DBUS_MINIMAL_P_H
41 #define DBUS_MINIMAL_P_H
42 
43 //
44 // W A R N I N G
45 // -------------
46 //
47 // This file is not part of the Qt API. It exists for the convenience
48 // of other Qt classes. This header file may change from version to
49 // version without notice, or even be removed.
50 //
51 // We mean it.
52 //
53 
54 extern "C" {
55 
56 // Equivalent to dbus-arch-deps.h (generated from dbus-arch-deps.h.in)
63 
64 // simulate minimum version we support
65 #define DBUS_MAJOR_VERSION 1
66 #define DBUS_MINOR_VERSION 2
67 #define DBUS_VERSION ((1 << 16) | (2 << 8))
68 
69 // forward declaration to opaque types we use
70 struct DBusConnection;
71 struct DBusMessage;
72 struct DBusPendingCall;
73 struct DBusServer;
74 struct DBusTimeout;
75 struct DBusWatch;
76 
77 // This file contains constants and typedefs from libdbus-1 headers,
78 // which carry the following copyright:
79 /*
80  * Copyright (C) 2002, 2003 CodeFactory AB
81  * Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc.
82  *
83  * Licensed under the Academic Free License version 2.1
84  *
85  * This program is free software; you can redistribute it and/or modify
86  * it under the terms of the GNU General Public License as published by
87  * the Free Software Foundation; either version 2 of the License, or
88  * (at your option) any later version.
89  *
90  * This program is distributed in the hope that it will be useful,
91  * but WITHOUT ANY WARRANTY; without even the implied warranty of
92  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
93  * GNU General Public License for more details.
94  *
95  * You should have received a copy of the GNU General Public License
96  * along with this program; if not, write to the Free Software
97  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
98  *
99  */
100 
101 /* dbus-types.h */
104 
105 /* dbus-shared.h */
106 typedef enum
107 {
112 
113 typedef enum
114 {
119 
120 #define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
121 #define DBUS_PATH_DBUS "/org/freedesktop/DBus"
122 #define DBUS_PATH_LOCAL "/org/freedesktop/DBus/Local"
123 #define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
124 #define DBUS_INTERFACE_INTROSPECTABLE "org.freedesktop.DBus.Introspectable"
125 #define DBUS_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties"
126 #define DBUS_INTERFACE_LOCAL "org.freedesktop.DBus.Local"
127 
128 #define DBUS_NAME_FLAG_ALLOW_REPLACEMENT 0x1
129 #define DBUS_NAME_FLAG_REPLACE_EXISTING 0x2
130 #define DBUS_NAME_FLAG_DO_NOT_QUEUE 0x4
132 #define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER 1
133 #define DBUS_REQUEST_NAME_REPLY_IN_QUEUE 2
134 #define DBUS_REQUEST_NAME_REPLY_EXISTS 3
135 #define DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER 4
137 #define DBUS_RELEASE_NAME_REPLY_RELEASED 1
138 #define DBUS_RELEASE_NAME_REPLY_NON_EXISTENT 2
139 #define DBUS_RELEASE_NAME_REPLY_NOT_OWNER 3
141 /* dbus-memory.h */
142 typedef void (* DBusFreeFunction) (void *memory);
143 
144 /* dbus-connection.h */
145 typedef enum
146 {
149  DBUS_WATCH_ERROR = 1 << 2,
154  DBUS_WATCH_HANGUP = 1 << 3
159  /* Internal to libdbus, there is also _DBUS_WATCH_NVAL in dbus-watch.h */
161 
162 typedef enum
163 {
168 
169 typedef dbus_bool_t (* DBusAddWatchFunction) (DBusWatch *watch,
170  void *data);
171 typedef void (* DBusWatchToggledFunction) (DBusWatch *watch,
172  void *data);
173 typedef void (* DBusRemoveWatchFunction) (DBusWatch *watch,
174  void *data);
175 typedef dbus_bool_t (* DBusAddTimeoutFunction) (DBusTimeout *timeout,
176  void *data);
177 typedef void (* DBusTimeoutToggledFunction) (DBusTimeout *timeout,
178  void *data);
179 typedef void (* DBusRemoveTimeoutFunction) (DBusTimeout *timeout,
180  void *data);
182  DBusDispatchStatus new_status,
183  void *data);
184 typedef void (* DBusWakeupMainFunction) (void *data);
185 typedef void (* DBusPendingCallNotifyFunction) (DBusPendingCall *pending,
186  void *user_data);
188  DBusMessage *message,
189  void *user_data);
190 
191 /* dbus-errors.h */
192 struct DBusError
193 {
194  const char *name;
195  const char *message;
197  unsigned int dummy1 : 1;
198  unsigned int dummy2 : 1;
199  unsigned int dummy3 : 1;
200  unsigned int dummy4 : 1;
201  unsigned int dummy5 : 1;
203  void *padding1;
204 };
205 
206 /* dbus-message.h */
208 {
209  void *dummy1;
210  void *dummy2;
212  int dummy4;
213  int dummy5;
214  int dummy6;
215  int dummy7;
216  int dummy8;
217  int dummy9;
218  int dummy10;
219  int dummy11;
220  int pad1;
221  void *pad2; /* Was int; changed to void* at 1.10.8 */
222  void *pad3;
223 };
224 
225 /* dbus-protocol.h */
226 #define DBUS_TYPE_INVALID ((int) '\0')
227 #define DBUS_TYPE_INVALID_AS_STRING "\0"
228 #define DBUS_TYPE_BYTE ((int) 'y')
229 #define DBUS_TYPE_BYTE_AS_STRING "y"
230 #define DBUS_TYPE_BOOLEAN ((int) 'b')
231 #define DBUS_TYPE_BOOLEAN_AS_STRING "b"
232 #define DBUS_TYPE_INT16 ((int) 'n')
233 #define DBUS_TYPE_INT16_AS_STRING "n"
234 #define DBUS_TYPE_UINT16 ((int) 'q')
235 #define DBUS_TYPE_UINT16_AS_STRING "q"
236 #define DBUS_TYPE_INT32 ((int) 'i')
237 #define DBUS_TYPE_INT32_AS_STRING "i"
238 #define DBUS_TYPE_UINT32 ((int) 'u')
239 #define DBUS_TYPE_UINT32_AS_STRING "u"
240 #define DBUS_TYPE_INT64 ((int) 'x')
241 #define DBUS_TYPE_INT64_AS_STRING "x"
242 #define DBUS_TYPE_UINT64 ((int) 't')
243 #define DBUS_TYPE_UINT64_AS_STRING "t"
244 #define DBUS_TYPE_DOUBLE ((int) 'd')
245 #define DBUS_TYPE_DOUBLE_AS_STRING "d"
246 #define DBUS_TYPE_STRING ((int) 's')
247 #define DBUS_TYPE_STRING_AS_STRING "s"
248 #define DBUS_TYPE_OBJECT_PATH ((int) 'o')
249 #define DBUS_TYPE_OBJECT_PATH_AS_STRING "o"
250 #define DBUS_TYPE_SIGNATURE ((int) 'g')
251 #define DBUS_TYPE_SIGNATURE_AS_STRING "g"
252 #define DBUS_TYPE_UNIX_FD ((int) 'h')
253 #define DBUS_TYPE_UNIX_FD_AS_STRING "h"
254 
255 #define DBUS_TYPE_ARRAY ((int) 'a')
256 #define DBUS_TYPE_ARRAY_AS_STRING "a"
257 #define DBUS_TYPE_VARIANT ((int) 'v')
258 #define DBUS_TYPE_VARIANT_AS_STRING "v"
259 
260 #define DBUS_TYPE_STRUCT ((int) 'r')
261 #define DBUS_TYPE_STRUCT_AS_STRING "r"
262 #define DBUS_TYPE_DICT_ENTRY ((int) 'e')
263 #define DBUS_TYPE_DICT_ENTRY_AS_STRING "e"
264 
265 #define DBUS_STRUCT_BEGIN_CHAR ((int) '(')
266 #define DBUS_STRUCT_BEGIN_CHAR_AS_STRING "("
267 #define DBUS_STRUCT_END_CHAR ((int) ')')
268 #define DBUS_STRUCT_END_CHAR_AS_STRING ")"
269 #define DBUS_DICT_ENTRY_BEGIN_CHAR ((int) '{')
270 #define DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING "{"
271 #define DBUS_DICT_ENTRY_END_CHAR ((int) '}')
272 #define DBUS_DICT_ENTRY_END_CHAR_AS_STRING "}"
273 
274 #define DBUS_MAXIMUM_NAME_LENGTH 255
275 
276 #define DBUS_MESSAGE_TYPE_INVALID 0
277 #define DBUS_MESSAGE_TYPE_METHOD_CALL 1
278 #define DBUS_MESSAGE_TYPE_METHOD_RETURN 2
279 #define DBUS_MESSAGE_TYPE_ERROR 3
280 #define DBUS_MESSAGE_TYPE_SIGNAL 4
281 
282 #define DBUS_INTROSPECT_1_0_XML_NAMESPACE "http://www.freedesktop.org/standards/dbus"
283 #define DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
284 #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
285 #define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "<!DOCTYPE node PUBLIC \"" DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER "\"\n\"" DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "\">\n"
286 
287 /* dbus-server.h */
288 typedef void (* DBusNewConnectionFunction) (DBusServer *server,
289  DBusConnection *new_connection,
290  void *data);
291 
292 } // extern "C"
293 
294 #endif // DBUS_MINIMAL_P_H
295 
char * data()
DBusWatchFlags
@ DBUS_WATCH_READABLE
@ DBUS_WATCH_WRITABLE
@ DBUS_WATCH_HANGUP
@ DBUS_WATCH_ERROR
void(* DBusWatchToggledFunction)(DBusWatch *watch, void *data)
quint32 dbus_uint32_t
qint64 dbus_int64_t
qint16 dbus_int16_t
void(* DBusDispatchStatusFunction)(DBusConnection *connection, DBusDispatchStatus new_status, void *data)
DBusHandlerResult(* DBusHandleMessageFunction)(DBusConnection *connection, DBusMessage *message, void *user_data)
dbus_bool_t(* DBusAddWatchFunction)(DBusWatch *watch, void *data)
void(* DBusTimeoutToggledFunction)(DBusTimeout *timeout, void *data)
quint16 dbus_uint16_t
dbus_uint32_t dbus_bool_t
dbus_bool_t(* DBusAddTimeoutFunction)(DBusTimeout *timeout, void *data)
qint32 dbus_int32_t
void(* DBusPendingCallNotifyFunction)(DBusPendingCall *pending, void *user_data)
DBusHandlerResult
@ DBUS_HANDLER_RESULT_NEED_MEMORY
@ DBUS_HANDLER_RESULT_HANDLED
@ DBUS_HANDLER_RESULT_NOT_YET_HANDLED
void(* DBusFreeFunction)(void *memory)
DBusBusType
@ DBUS_BUS_SESSION
@ DBUS_BUS_STARTER
@ DBUS_BUS_SYSTEM
void(* DBusRemoveWatchFunction)(DBusWatch *watch, void *data)
DBusDispatchStatus
@ DBUS_DISPATCH_NEED_MEMORY
@ DBUS_DISPATCH_COMPLETE
@ DBUS_DISPATCH_DATA_REMAINS
dbus_uint32_t dbus_unichar_t
void(* DBusWakeupMainFunction)(void *data)
void(* DBusRemoveTimeoutFunction)(DBusTimeout *timeout, void *data)
void(* DBusNewConnectionFunction)(DBusServer *server, DBusConnection *new_connection, void *data)
quint64 dbus_uint64_t
void
Definition: png.h:1080
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch * watch
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage return DBusPendingCall DBusPendingCall return DBusPendingCall return dbus_int32_t return DBusServer * server
DBusConnection * connection
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage return DBusPendingCall * pending
unsigned int quint32
Definition: qglobal.h:288
short qint16
Definition: qglobal.h:285
unsigned short quint16
Definition: qglobal.h:286
int qint32
Definition: qglobal.h:287
unsigned long long quint64
Definition: qglobal.h:299
long long qint64
Definition: qglobal.h:298
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: qopengl.h:270
GLbitfield GLuint64 timeout
[4]
GLsizei GLenum GLsizei GLsizei GLuint memory
HB_EXTERN hb_font_get_glyph_func_t void * user_data
const char * name
unsigned int dummy2
unsigned int dummy4
unsigned int dummy3
unsigned int dummy5
unsigned int dummy1
void * padding1
const char * message
dbus_uint32_t dummy3