Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-13 08:54:19

0001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
0002 /* dbus-protocol.h  D-Bus protocol constants
0003  *
0004  * Copyright (C) 2002, 2003  CodeFactory AB
0005  * Copyright (C) 2004, 2005 Red Hat, Inc.
0006  *
0007  * SPDX-License-Identifier: AFL-2.1 OR GPL-2.0-or-later
0008  *
0009  * Licensed under the Academic Free License version 2.1
0010  *
0011  * This program is free software; you can redistribute it and/or modify
0012  * it under the terms of the GNU General Public License as published by
0013  * the Free Software Foundation; either version 2 of the License, or
0014  * (at your option) any later version.
0015  *
0016  * This program is distributed in the hope that it will be useful,
0017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0019  * GNU General Public License for more details.
0020  *
0021  * You should have received a copy of the GNU General Public License
0022  * along with this program; if not, write to the Free Software
0023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0024  *
0025  */
0026 
0027 #ifndef DBUS_PROTOCOL_H
0028 #define DBUS_PROTOCOL_H
0029 
0030 /* Don't include anything in here from anywhere else. It's
0031  * intended for use by any random library.
0032  */
0033 
0034 #ifdef  __cplusplus
0035 extern "C" {
0036 #if 0
0037 } /* avoids confusing emacs indentation */
0038 #endif
0039 #endif
0040 
0041 /* Normally docs are in .c files, but there isn't a .c file for this. */
0042 /**
0043  * @defgroup DBusProtocol Protocol constants
0044  * @ingroup  DBus
0045  *
0046  * @brief Defines constants which are part of the D-Bus protocol
0047  *
0048  * This header is intended for use by any library, not only libdbus.
0049  *
0050  * @{
0051  */
0052 
0053 
0054 /* Message byte order */
0055 #define DBUS_LITTLE_ENDIAN ('l')  /**< Code marking LSB-first byte order in the wire protocol. */
0056 #define DBUS_BIG_ENDIAN    ('B')  /**< Code marking MSB-first byte order in the wire protocol. */
0057 
0058 /** Protocol version. */
0059 #define DBUS_MAJOR_PROTOCOL_VERSION 1
0060 
0061 /** Type code that is never equal to a legitimate type code */
0062 #define DBUS_TYPE_INVALID       ((int) '\0')
0063 /** #DBUS_TYPE_INVALID as a string literal instead of a int literal */
0064 #define DBUS_TYPE_INVALID_AS_STRING        "\0"
0065 
0066 /* Primitive types */
0067 /** Type code marking an 8-bit unsigned integer */
0068 #define DBUS_TYPE_BYTE          ((int) 'y')
0069 /** #DBUS_TYPE_BYTE as a string literal instead of a int literal */
0070 #define DBUS_TYPE_BYTE_AS_STRING           "y"
0071 /** Type code marking a boolean */
0072 #define DBUS_TYPE_BOOLEAN       ((int) 'b')
0073 /** #DBUS_TYPE_BOOLEAN as a string literal instead of a int literal */
0074 #define DBUS_TYPE_BOOLEAN_AS_STRING        "b"
0075 /** Type code marking a 16-bit signed integer */
0076 #define DBUS_TYPE_INT16         ((int) 'n')
0077 /** #DBUS_TYPE_INT16 as a string literal instead of a int literal */
0078 #define DBUS_TYPE_INT16_AS_STRING          "n"
0079 /** Type code marking a 16-bit unsigned integer */
0080 #define DBUS_TYPE_UINT16        ((int) 'q')
0081 /** #DBUS_TYPE_UINT16 as a string literal instead of a int literal */
0082 #define DBUS_TYPE_UINT16_AS_STRING         "q"
0083 /** Type code marking a 32-bit signed integer */
0084 #define DBUS_TYPE_INT32         ((int) 'i')
0085 /** #DBUS_TYPE_INT32 as a string literal instead of a int literal */
0086 #define DBUS_TYPE_INT32_AS_STRING          "i"
0087 /** Type code marking a 32-bit unsigned integer */
0088 #define DBUS_TYPE_UINT32        ((int) 'u')
0089 /** #DBUS_TYPE_UINT32 as a string literal instead of a int literal */
0090 #define DBUS_TYPE_UINT32_AS_STRING         "u"
0091 /** Type code marking a 64-bit signed integer */
0092 #define DBUS_TYPE_INT64         ((int) 'x')
0093 /** #DBUS_TYPE_INT64 as a string literal instead of a int literal */
0094 #define DBUS_TYPE_INT64_AS_STRING          "x"
0095 /** Type code marking a 64-bit unsigned integer */
0096 #define DBUS_TYPE_UINT64        ((int) 't')
0097 /** #DBUS_TYPE_UINT64 as a string literal instead of a int literal */
0098 #define DBUS_TYPE_UINT64_AS_STRING         "t"
0099 /** Type code marking an 8-byte double in IEEE 754 format */
0100 #define DBUS_TYPE_DOUBLE        ((int) 'd')
0101 /** #DBUS_TYPE_DOUBLE as a string literal instead of a int literal */
0102 #define DBUS_TYPE_DOUBLE_AS_STRING         "d"
0103 /** Type code marking a UTF-8 encoded, nul-terminated Unicode string */
0104 #define DBUS_TYPE_STRING        ((int) 's')
0105 /** #DBUS_TYPE_STRING as a string literal instead of a int literal */
0106 #define DBUS_TYPE_STRING_AS_STRING         "s"
0107 /** Type code marking a D-Bus object path */
0108 #define DBUS_TYPE_OBJECT_PATH   ((int) 'o')
0109 /** #DBUS_TYPE_OBJECT_PATH as a string literal instead of a int literal */
0110 #define DBUS_TYPE_OBJECT_PATH_AS_STRING    "o"
0111 /** Type code marking a D-Bus type signature */
0112 #define DBUS_TYPE_SIGNATURE     ((int) 'g')
0113 /** #DBUS_TYPE_SIGNATURE as a string literal instead of a int literal */
0114 #define DBUS_TYPE_SIGNATURE_AS_STRING      "g"
0115 /** Type code marking a unix file descriptor */
0116 #define DBUS_TYPE_UNIX_FD      ((int) 'h')
0117 /** #DBUS_TYPE_UNIX_FD as a string literal instead of a int literal */
0118 #define DBUS_TYPE_UNIX_FD_AS_STRING        "h"
0119 
0120 /* Compound types */
0121 /** Type code marking a D-Bus array type */
0122 #define DBUS_TYPE_ARRAY         ((int) 'a')
0123 /** #DBUS_TYPE_ARRAY as a string literal instead of a int literal */
0124 #define DBUS_TYPE_ARRAY_AS_STRING          "a"
0125 /** Type code marking a D-Bus variant type */
0126 #define DBUS_TYPE_VARIANT       ((int) 'v')
0127 /** #DBUS_TYPE_VARIANT as a string literal instead of a int literal */
0128 #define DBUS_TYPE_VARIANT_AS_STRING        "v"
0129 
0130 /** STRUCT and DICT_ENTRY are sort of special since their codes can't
0131  * appear in a type string, instead
0132  * DBUS_STRUCT_BEGIN_CHAR/DBUS_DICT_ENTRY_BEGIN_CHAR have to appear
0133  */
0134 /** Type code used to represent a struct; however, this type code does not appear
0135  * in type signatures, instead #DBUS_STRUCT_BEGIN_CHAR and #DBUS_STRUCT_END_CHAR will
0136  * appear in a signature.
0137  */
0138 #define DBUS_TYPE_STRUCT        ((int) 'r')
0139 /** #DBUS_TYPE_STRUCT as a string literal instead of a int literal */
0140 #define DBUS_TYPE_STRUCT_AS_STRING         "r"
0141 /** Type code used to represent a dict entry; however, this type code does not appear
0142  * in type signatures, instead #DBUS_DICT_ENTRY_BEGIN_CHAR and #DBUS_DICT_ENTRY_END_CHAR will
0143  * appear in a signature.
0144  */
0145 #define DBUS_TYPE_DICT_ENTRY    ((int) 'e')
0146 /** #DBUS_TYPE_DICT_ENTRY as a string literal instead of a int literal */
0147 #define DBUS_TYPE_DICT_ENTRY_AS_STRING     "e"
0148 
0149 /** Does not include #DBUS_TYPE_INVALID, #DBUS_STRUCT_BEGIN_CHAR, #DBUS_STRUCT_END_CHAR,
0150  * #DBUS_DICT_ENTRY_BEGIN_CHAR, or #DBUS_DICT_ENTRY_END_CHAR - i.e. it is the number of
0151  * valid types, not the number of distinct characters that may appear in a type signature.
0152  */
0153 #define DBUS_NUMBER_OF_TYPES    (16)
0154 
0155 /* characters other than typecodes that appear in type signatures */
0156 
0157 /** Code marking the start of a struct type in a type signature */
0158 #define DBUS_STRUCT_BEGIN_CHAR   ((int) '(')
0159 /** #DBUS_STRUCT_BEGIN_CHAR as a string literal instead of a int literal */
0160 #define DBUS_STRUCT_BEGIN_CHAR_AS_STRING   "("
0161 /** Code marking the end of a struct type in a type signature */
0162 #define DBUS_STRUCT_END_CHAR     ((int) ')')
0163 /** #DBUS_STRUCT_END_CHAR a string literal instead of a int literal */
0164 #define DBUS_STRUCT_END_CHAR_AS_STRING     ")"
0165 /** Code marking the start of a dict entry type in a type signature */
0166 #define DBUS_DICT_ENTRY_BEGIN_CHAR   ((int) '{')
0167 /** #DBUS_DICT_ENTRY_BEGIN_CHAR as a string literal instead of a int literal */
0168 #define DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING   "{"
0169 /** Code marking the end of a dict entry type in a type signature */
0170 #define DBUS_DICT_ENTRY_END_CHAR     ((int) '}')
0171 /** #DBUS_DICT_ENTRY_END_CHAR as a string literal instead of a int literal */
0172 #define DBUS_DICT_ENTRY_END_CHAR_AS_STRING     "}"
0173 
0174 /** Max length in bytes of a bus name, interface, or member (not object
0175  * path, paths are unlimited). This is limited because lots of stuff
0176  * is O(n) in this number, plus it would be obnoxious to type in a
0177  * paragraph-long method name so most likely something like that would
0178  * be an exploit.
0179  */
0180 #define DBUS_MAXIMUM_NAME_LENGTH 255
0181 
0182 /** This one is 255 so it fits in a byte */
0183 #define DBUS_MAXIMUM_SIGNATURE_LENGTH 255
0184 
0185 /** Max length of a match rule string; to keep people from hosing the
0186  * daemon with some huge rule
0187  */
0188 #define DBUS_MAXIMUM_MATCH_RULE_LENGTH 1024
0189 
0190 /** Max arg number you can match on in a match rule, e.g.
0191  * arg0='hello' is OK, arg3489720987='hello' is not
0192  */
0193 #define DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER 63
0194 
0195 /** Max length of a marshaled array in bytes (64M, 2^26) We use signed
0196  * int for lengths so must be INT_MAX or less.  We need something a
0197  * bit smaller than INT_MAX because the array is inside a message with
0198  * header info, etc.  so an INT_MAX array wouldn't allow the message
0199  * overhead.  The 64M number is an attempt at a larger number than
0200  * we'd reasonably ever use, but small enough that your bus would chew
0201  * through it fairly quickly without locking up forever. If you have
0202  * data that's likely to be larger than this, you should probably be
0203  * sending it in multiple incremental messages anyhow.
0204  */
0205 #define DBUS_MAXIMUM_ARRAY_LENGTH (67108864)
0206 /** Number of bits you need in an unsigned to store the max array size */
0207 #define DBUS_MAXIMUM_ARRAY_LENGTH_BITS 26
0208 
0209 /** The maximum total message size including header and body; similar
0210  * rationale to max array size.
0211  */
0212 #define DBUS_MAXIMUM_MESSAGE_LENGTH (DBUS_MAXIMUM_ARRAY_LENGTH * 2)
0213 /** Number of bits you need in an unsigned to store the max message size */
0214 #define DBUS_MAXIMUM_MESSAGE_LENGTH_BITS 27
0215 
0216 /** The maximum total number of unix fds in a message. Similar
0217  * rationale as DBUS_MAXIMUM_MESSAGE_LENGTH. However we divide by four
0218  * given that one fd is an int and hence at least 32 bits.
0219  */
0220 #define DBUS_MAXIMUM_MESSAGE_UNIX_FDS (DBUS_MAXIMUM_MESSAGE_LENGTH/4)
0221 /** Number of bits you need in an unsigned to store the max message unix fds */
0222 #define DBUS_MAXIMUM_MESSAGE_UNIX_FDS_BITS (DBUS_MAXIMUM_MESSAGE_LENGTH_BITS-2)
0223 
0224 /** Depth of recursion in the type tree. This is automatically limited
0225  * to DBUS_MAXIMUM_SIGNATURE_LENGTH since you could only have an array
0226  * of array of array of ... that fit in the max signature.  But that's
0227  * probably a bit too large.
0228  */
0229 #define DBUS_MAXIMUM_TYPE_RECURSION_DEPTH 32
0230 
0231 /* Types of message */
0232 
0233 /** This value is never a valid message type, see dbus_message_get_type() */
0234 #define DBUS_MESSAGE_TYPE_INVALID       0
0235 /** Message type of a method call message, see dbus_message_get_type() */
0236 #define DBUS_MESSAGE_TYPE_METHOD_CALL   1
0237 /** Message type of a method return message, see dbus_message_get_type() */
0238 #define DBUS_MESSAGE_TYPE_METHOD_RETURN 2
0239 /** Message type of an error reply message, see dbus_message_get_type() */
0240 #define DBUS_MESSAGE_TYPE_ERROR         3
0241 /** Message type of a signal message, see dbus_message_get_type() */
0242 #define DBUS_MESSAGE_TYPE_SIGNAL        4
0243 
0244 #define DBUS_NUM_MESSAGE_TYPES          5
0245 
0246 /* Header flags */
0247 
0248 /** If set, this flag means that the sender of a message does not care about getting
0249  * a reply, so the recipient need not send one. See dbus_message_set_no_reply().
0250  */
0251 #define DBUS_HEADER_FLAG_NO_REPLY_EXPECTED 0x1
0252 /**
0253  * If set, this flag means that even if the message bus knows how to start an owner for
0254  * the destination bus name (see dbus_message_set_destination()), it should not
0255  * do so. If this flag is not set, the bus may launch a program to process the
0256  * message.
0257  */
0258 #define DBUS_HEADER_FLAG_NO_AUTO_START     0x2
0259 /**
0260  * If set on a method call, this flag means that the caller is prepared to
0261  * wait for interactive authorization.
0262  */
0263 #define DBUS_HEADER_FLAG_ALLOW_INTERACTIVE_AUTHORIZATION 0x4
0264 
0265 /* Header fields */
0266 
0267 /** Not equal to any valid header field code */
0268 #define DBUS_HEADER_FIELD_INVALID        0
0269 /** Header field code for the path - the path is the object emitting a signal or the object receiving a method call.
0270  * See dbus_message_set_path().
0271  */
0272 #define DBUS_HEADER_FIELD_PATH           1
0273 /** Header field code for the interface containing a member (method or signal).
0274  * See dbus_message_set_interface().
0275  */
0276 #define DBUS_HEADER_FIELD_INTERFACE      2
0277 /** Header field code for a member (method or signal). See dbus_message_set_member(). */
0278 #define DBUS_HEADER_FIELD_MEMBER         3
0279 /** Header field code for an error name (found in #DBUS_MESSAGE_TYPE_ERROR messages).
0280  * See dbus_message_set_error_name().
0281  */
0282 #define DBUS_HEADER_FIELD_ERROR_NAME     4
0283 /** Header field code for a reply serial, used to match a #DBUS_MESSAGE_TYPE_METHOD_RETURN message with the
0284  * message that it's a reply to. See dbus_message_set_reply_serial().
0285  */
0286 #define DBUS_HEADER_FIELD_REPLY_SERIAL   5
0287 /**
0288  * Header field code for the destination bus name of a message. See dbus_message_set_destination().
0289  */
0290 #define DBUS_HEADER_FIELD_DESTINATION    6
0291 /**
0292  * Header field code for the sender of a message; usually initialized by the message bus.
0293  * See dbus_message_set_sender().
0294  */
0295 #define DBUS_HEADER_FIELD_SENDER         7
0296 /**
0297  * Header field code for the type signature of a message.
0298  */
0299 #define DBUS_HEADER_FIELD_SIGNATURE      8
0300 /**
0301  * Header field code for the number of unix file descriptors associated
0302  * with this message.
0303  */
0304 #define DBUS_HEADER_FIELD_UNIX_FDS       9
0305 /**
0306  * Header field code for the container instance that sent this message.
0307  */
0308 #define DBUS_HEADER_FIELD_CONTAINER_INSTANCE 10
0309 
0310 
0311 /**
0312  * Value of the highest-numbered header field code, can be used to determine
0313  * the size of an array indexed by header field code. Remember though
0314  * that unknown codes must be ignored, so check for that before
0315  * indexing the array.
0316  */
0317 #define DBUS_HEADER_FIELD_LAST DBUS_HEADER_FIELD_CONTAINER_INSTANCE
0318 
0319 /** Header format is defined as a signature:
0320  *   byte                            byte order
0321  *   byte                            message type ID
0322  *   byte                            flags
0323  *   byte                            protocol version
0324  *   uint32                          body length
0325  *   uint32                          serial
0326  *   array of struct (byte,variant)  (field name, value)
0327  *
0328  * The length of the header can be computed as the
0329  * fixed size of the initial data, plus the length of
0330  * the array at the end, plus padding to an 8-boundary.
0331  */
0332 #define DBUS_HEADER_SIGNATURE                   \
0333      DBUS_TYPE_BYTE_AS_STRING                   \
0334      DBUS_TYPE_BYTE_AS_STRING                   \
0335      DBUS_TYPE_BYTE_AS_STRING                   \
0336      DBUS_TYPE_BYTE_AS_STRING                   \
0337      DBUS_TYPE_UINT32_AS_STRING                 \
0338      DBUS_TYPE_UINT32_AS_STRING                 \
0339      DBUS_TYPE_ARRAY_AS_STRING                  \
0340      DBUS_STRUCT_BEGIN_CHAR_AS_STRING           \
0341      DBUS_TYPE_BYTE_AS_STRING                   \
0342      DBUS_TYPE_VARIANT_AS_STRING                \
0343      DBUS_STRUCT_END_CHAR_AS_STRING
0344 
0345 
0346 /**
0347  * The smallest header size that can occur.  (It won't be valid due to
0348  * missing required header fields.) This is 4 bytes, two uint32, an
0349  * array length. This isn't any kind of resource limit, just the
0350  * necessary/logical outcome of the header signature.
0351  */
0352 #define DBUS_MINIMUM_HEADER_SIZE 16
0353 
0354 /* Errors */
0355 /* WARNING these get autoconverted to an enum in dbus-glib.h. Thus,
0356  * if you change the order it breaks the ABI. Keep them in order.
0357  * Also, don't change the formatting since that will break the sed
0358  * script.
0359  */
0360 /** A generic error; "something went wrong" - see the error message for more. */
0361 #define DBUS_ERROR_FAILED                     "org.freedesktop.DBus.Error.Failed"
0362 /** There was not enough memory to complete an operation. */
0363 #define DBUS_ERROR_NO_MEMORY                  "org.freedesktop.DBus.Error.NoMemory"
0364 /** The bus doesn't know how to launch a service to supply the bus name you wanted. */
0365 #define DBUS_ERROR_SERVICE_UNKNOWN            "org.freedesktop.DBus.Error.ServiceUnknown"
0366 /** The bus name you referenced doesn't exist (i.e. no application owns it). */
0367 #define DBUS_ERROR_NAME_HAS_NO_OWNER          "org.freedesktop.DBus.Error.NameHasNoOwner"
0368 /** No reply to a message expecting one, usually means a timeout occurred. */
0369 #define DBUS_ERROR_NO_REPLY                   "org.freedesktop.DBus.Error.NoReply"
0370 /** Something went wrong reading or writing to a socket, for example. */
0371 #define DBUS_ERROR_IO_ERROR                   "org.freedesktop.DBus.Error.IOError"
0372 /** A D-Bus bus address was malformed. */
0373 #define DBUS_ERROR_BAD_ADDRESS                "org.freedesktop.DBus.Error.BadAddress"
0374 /** Requested operation isn't supported (like ENOSYS on UNIX). */
0375 #define DBUS_ERROR_NOT_SUPPORTED              "org.freedesktop.DBus.Error.NotSupported"
0376 /** Some limited resource is exhausted. */
0377 #define DBUS_ERROR_LIMITS_EXCEEDED            "org.freedesktop.DBus.Error.LimitsExceeded"
0378 /** Security restrictions don't allow doing what you're trying to do. */
0379 #define DBUS_ERROR_ACCESS_DENIED              "org.freedesktop.DBus.Error.AccessDenied"
0380 /** Authentication didn't work. */
0381 #define DBUS_ERROR_AUTH_FAILED                "org.freedesktop.DBus.Error.AuthFailed"
0382 /** Unable to connect to server (probably caused by ECONNREFUSED on a socket). */
0383 #define DBUS_ERROR_NO_SERVER                  "org.freedesktop.DBus.Error.NoServer"
0384 /** Certain timeout errors, possibly ETIMEDOUT on a socket.
0385  * Note that #DBUS_ERROR_NO_REPLY is used for message reply timeouts.
0386  * @warning this is confusingly-named given that #DBUS_ERROR_TIMED_OUT also exists. We can't fix
0387  * it for compatibility reasons so just be careful.
0388  */
0389 #define DBUS_ERROR_TIMEOUT                    "org.freedesktop.DBus.Error.Timeout"
0390 /** No network access (probably ENETUNREACH on a socket). */
0391 #define DBUS_ERROR_NO_NETWORK                 "org.freedesktop.DBus.Error.NoNetwork"
0392 /** Can't bind a socket since its address is in use (i.e. EADDRINUSE). */
0393 #define DBUS_ERROR_ADDRESS_IN_USE             "org.freedesktop.DBus.Error.AddressInUse"
0394 /** The connection is disconnected and you're trying to use it. */
0395 #define DBUS_ERROR_DISCONNECTED               "org.freedesktop.DBus.Error.Disconnected"
0396 /** Invalid arguments passed to a method call. */
0397 #define DBUS_ERROR_INVALID_ARGS               "org.freedesktop.DBus.Error.InvalidArgs"
0398 /** Missing file. */
0399 #define DBUS_ERROR_FILE_NOT_FOUND             "org.freedesktop.DBus.Error.FileNotFound"
0400 /** Existing file and the operation you're using does not silently overwrite. */
0401 #define DBUS_ERROR_FILE_EXISTS                "org.freedesktop.DBus.Error.FileExists"
0402 /** Method name you invoked isn't known by the object you invoked it on. */
0403 #define DBUS_ERROR_UNKNOWN_METHOD             "org.freedesktop.DBus.Error.UnknownMethod"
0404 /** Object you invoked a method on isn't known. */
0405 #define DBUS_ERROR_UNKNOWN_OBJECT             "org.freedesktop.DBus.Error.UnknownObject"
0406 /** Interface you invoked a method on isn't known by the object. */
0407 #define DBUS_ERROR_UNKNOWN_INTERFACE          "org.freedesktop.DBus.Error.UnknownInterface"
0408 /** Property you tried to access isn't known by the object. */
0409 #define DBUS_ERROR_UNKNOWN_PROPERTY           "org.freedesktop.DBus.Error.UnknownProperty"
0410 /** Property you tried to set is read-only. */
0411 #define DBUS_ERROR_PROPERTY_READ_ONLY         "org.freedesktop.DBus.Error.PropertyReadOnly"
0412 /** Certain timeout errors, e.g. while starting a service.
0413  * @warning this is confusingly-named given that #DBUS_ERROR_TIMEOUT also exists. We can't fix
0414  * it for compatibility reasons so just be careful.
0415  */
0416 #define DBUS_ERROR_TIMED_OUT                  "org.freedesktop.DBus.Error.TimedOut"
0417 /** Tried to remove or modify a match rule that didn't exist. */
0418 #define DBUS_ERROR_MATCH_RULE_NOT_FOUND       "org.freedesktop.DBus.Error.MatchRuleNotFound"
0419 /** The match rule isn't syntactically valid. */
0420 #define DBUS_ERROR_MATCH_RULE_INVALID         "org.freedesktop.DBus.Error.MatchRuleInvalid"
0421 /** While starting a new process, the exec() call failed. */
0422 #define DBUS_ERROR_SPAWN_EXEC_FAILED          "org.freedesktop.DBus.Error.Spawn.ExecFailed"
0423 /** While starting a new process, the fork() call failed. */
0424 #define DBUS_ERROR_SPAWN_FORK_FAILED          "org.freedesktop.DBus.Error.Spawn.ForkFailed"
0425 /** While starting a new process, the child exited with a status code. */
0426 #define DBUS_ERROR_SPAWN_CHILD_EXITED         "org.freedesktop.DBus.Error.Spawn.ChildExited"
0427 /** While starting a new process, the child exited on a signal. */
0428 #define DBUS_ERROR_SPAWN_CHILD_SIGNALED       "org.freedesktop.DBus.Error.Spawn.ChildSignaled"
0429 /** While starting a new process, something went wrong. */
0430 #define DBUS_ERROR_SPAWN_FAILED               "org.freedesktop.DBus.Error.Spawn.Failed"
0431 /** We failed to setup the environment correctly. */
0432 #define DBUS_ERROR_SPAWN_SETUP_FAILED         "org.freedesktop.DBus.Error.Spawn.FailedToSetup"
0433 /** We failed to setup the config parser correctly. */
0434 #define DBUS_ERROR_SPAWN_CONFIG_INVALID       "org.freedesktop.DBus.Error.Spawn.ConfigInvalid"
0435 /** Bus name was not valid. */
0436 #define DBUS_ERROR_SPAWN_SERVICE_INVALID      "org.freedesktop.DBus.Error.Spawn.ServiceNotValid"
0437 /** Service file not found in system-services directory. */
0438 #define DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND    "org.freedesktop.DBus.Error.Spawn.ServiceNotFound"
0439 /** Permissions are incorrect on the setuid helper. */
0440 #define DBUS_ERROR_SPAWN_PERMISSIONS_INVALID  "org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"
0441 /** Service file invalid (Name, User or Exec missing). */
0442 #define DBUS_ERROR_SPAWN_FILE_INVALID         "org.freedesktop.DBus.Error.Spawn.FileInvalid"
0443 /** There was not enough memory to complete the operation. */
0444 #define DBUS_ERROR_SPAWN_NO_MEMORY            "org.freedesktop.DBus.Error.Spawn.NoMemory"
0445 /** Tried to get a UNIX process ID and it wasn't available. */
0446 #define DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN    "org.freedesktop.DBus.Error.UnixProcessIdUnknown"
0447 /** A type signature is not valid. */
0448 #define DBUS_ERROR_INVALID_SIGNATURE          "org.freedesktop.DBus.Error.InvalidSignature"
0449 /** A file contains invalid syntax or is otherwise broken. */
0450 #define DBUS_ERROR_INVALID_FILE_CONTENT       "org.freedesktop.DBus.Error.InvalidFileContent"
0451 /** Asked for SELinux security context and it wasn't available. */
0452 #define DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN    "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"
0453 /** Asked for ADT audit data and it wasn't available. */
0454 #define DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN     "org.freedesktop.DBus.Error.AdtAuditDataUnknown"
0455 /** There's already an object with the requested object path. */
0456 #define DBUS_ERROR_OBJECT_PATH_IN_USE         "org.freedesktop.DBus.Error.ObjectPathInUse"
0457 /** The message meta data does not match the payload. e.g. expected
0458     number of file descriptors were not sent over the socket this message was received on. */
0459 #define DBUS_ERROR_INCONSISTENT_MESSAGE       "org.freedesktop.DBus.Error.InconsistentMessage"
0460 /** The message is not allowed without performing interactive authorization,
0461  * but could have succeeded if an interactive authorization step was
0462  * allowed. */
0463 #define DBUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED "org.freedesktop.DBus.Error.InteractiveAuthorizationRequired"
0464 /** The connection is not from a container, or the specified container instance
0465  * does not exist. */
0466 #define DBUS_ERROR_NOT_CONTAINER "org.freedesktop.DBus.Error.NotContainer"
0467 
0468 /* XML introspection format */
0469 
0470 /** XML namespace of the introspection format version 1.0 */
0471 #define DBUS_INTROSPECT_1_0_XML_NAMESPACE         "http://www.freedesktop.org/standards/dbus"
0472 /** XML public identifier of the introspection format version 1.0 */
0473 #define DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
0474 /** XML system identifier of the introspection format version 1.0 */
0475 #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
0476 /** XML document type declaration of the introspection format version 1.0 */
0477 #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"
0478 
0479 /** @} */
0480 
0481 #ifdef __cplusplus
0482 #if 0
0483 { /* avoids confusing emacs indentation */
0484 #endif
0485 }
0486 #endif
0487 
0488 #endif /* DBUS_PROTOCOL_H */