dbus 数据类型

  1. /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
  2. /* dbus-protocol.h  D-Bus protocol constants
  3.  *
  4.  * Copyright (C) 2002, 2003  CodeFactory AB
  5.  * Copyright (C) 2004, 2005 Red Hat, Inc.
  6.  *
  7.  * Licensed under the Academic Free License version 2.1
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  *
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details.
  18.  *
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  22.  *
  23.  */

  24. #ifndef DBUS_PROTOCOL_H
  25. #define DBUS_PROTOCOL_H

  26. /* Don't include anything in here from anywhere else. It's
  27.  * intended for use by any random library.
  28.  */

  29. #ifdef  __cplusplus
  30. extern "C" {
  31. #if 0
  32. } /* avoids confusing emacs indentation */
  33. #endif
  34. #endif

  35. /* Normally docs are in .c files, but there isn't a .c file for this. */
  36. /**
  37.  * @defgroup DBusProtocol Protocol constants
  38.  * @ingroup  DBus
  39.  *
  40.  * @brief Defines constants which are part of the D-Bus protocol
  41.  *
  42.  * This header is intended for use by any library, not only libdbus.
  43.  *
  44.  * @{
  45.  */


  46. /* Message byte order */
  47. #define DBUS_LITTLE_ENDIAN ('l')  /**< Code marking LSB-first byte order in the wire protocol. */
  48. #define DBUS_BIG_ENDIAN    ('B')  /**< Code marking MSB-first byte order in the wire protocol. */

  49. /** Protocol version. */
  50. #define DBUS_MAJOR_PROTOCOL_VERSION 1

  51. /** Type code that is never equal to a legitimate type code */
  52. #define DBUS_TYPE_INVALID       ((int) '')
  53. /** #DBUS_TYPE_INVALID as a string literal instead of a int literal */
  54. #define DBUS_TYPE_INVALID_AS_STRING        ""

  55. /* Primitive types */
  56. /** Type code marking an 8-bit unsigned integer */
  57. #define DBUS_TYPE_BYTE          ((int) 'y')
  58. /** #DBUS_TYPE_BYTE as a string literal instead of a int literal */
  59. #define DBUS_TYPE_BYTE_AS_STRING           "y"
  60. /** Type code marking a boolean */
  61. #define DBUS_TYPE_BOOLEAN       ((int) 'b')
  62. /** #DBUS_TYPE_BOOLEAN as a string literal instead of a int literal */
  63. #define DBUS_TYPE_BOOLEAN_AS_STRING        "b"
  64. /** Type code marking a 16-bit signed integer */
  65. #define DBUS_TYPE_INT16         ((int) 'n')
  66. /** #DBUS_TYPE_INT16 as a string literal instead of a int literal */
  67. #define DBUS_TYPE_INT16_AS_STRING          "n"
  68. /** Type code marking a 16-bit unsigned integer */
  69. #define DBUS_TYPE_UINT16        ((int) 'q')
  70. /** #DBUS_TYPE_UINT16 as a string literal instead of a int literal */
  71. #define DBUS_TYPE_UINT16_AS_STRING         "q"
  72. /** Type code marking a 32-bit signed integer */
  73. #define DBUS_TYPE_INT32         ((int) 'i')
  74. /** #DBUS_TYPE_INT32 as a string literal instead of a int literal */
  75. #define DBUS_TYPE_INT32_AS_STRING          "i"
  76. /** Type code marking a 32-bit unsigned integer */
  77. #define DBUS_TYPE_UINT32        ((int) 'u')
  78. /** #DBUS_TYPE_UINT32 as a string literal instead of a int literal */
  79. #define DBUS_TYPE_UINT32_AS_STRING         "u"
  80. /** Type code marking a 64-bit signed integer */
  81. #define DBUS_TYPE_INT64         ((int) 'x')
  82. /** #DBUS_TYPE_INT64 as a string literal instead of a int literal */
  83. #define DBUS_TYPE_INT64_AS_STRING          "x"
  84. /** Type code marking a 64-bit unsigned integer */
  85. #define DBUS_TYPE_UINT64        ((int) 't')
  86. /** #DBUS_TYPE_UINT64 as a string literal instead of a int literal */
  87. #define DBUS_TYPE_UINT64_AS_STRING         "t"
  88. /** Type code marking an 8-byte double in IEEE 754 format */
  89. #define DBUS_TYPE_DOUBLE        ((int) 'd')
  90. /** #DBUS_TYPE_DOUBLE as a string literal instead of a int literal */
  91. #define DBUS_TYPE_DOUBLE_AS_STRING         "d"
  92. /** Type code marking a UTF-8 encoded, nul-terminated Unicode string */
  93. #define DBUS_TYPE_STRING        ((int) 's')
  94. /** #DBUS_TYPE_STRING as a string literal instead of a int literal */
  95. #define DBUS_TYPE_STRING_AS_STRING         "s"
  96. /** Type code marking a D-Bus object path */
  97. #define DBUS_TYPE_OBJECT_PATH   ((int) 'o')
  98. /** #DBUS_TYPE_OBJECT_PATH as a string literal instead of a int literal */
  99. #define DBUS_TYPE_OBJECT_PATH_AS_STRING    "o"
  100. /** Type code marking a D-Bus type signature */
  101. #define DBUS_TYPE_SIGNATURE     ((int) 'g')
  102. /** #DBUS_TYPE_SIGNATURE as a string literal instead of a int literal */
  103. #define DBUS_TYPE_SIGNATURE_AS_STRING      "g"

  104. /* Compound types */
  105. /** Type code marking a D-Bus array type */
  106. #define DBUS_TYPE_ARRAY         ((int) 'a')
  107. /** #DBUS_TYPE_ARRAY as a string literal instead of a int literal */
  108. #define DBUS_TYPE_ARRAY_AS_STRING          "a"
  109. /** Type code marking a D-Bus variant type */
  110. #define DBUS_TYPE_VARIANT       ((int) 'v')
  111. /** #DBUS_TYPE_VARIANT as a string literal instead of a int literal */
  112. #define DBUS_TYPE_VARIANT_AS_STRING        "v"

  113. /** STRUCT and DICT_ENTRY are sort of special since their codes can't
  114.  * appear in a type string, instead
  115.  * DBUS_STRUCT_BEGIN_CHAR/DBUS_DICT_ENTRY_BEGIN_CHAR have to appear
  116.  */
  117. /** Type code used to represent a struct; however, this type code does not appear
  118.  * in type signatures, instead #DBUS_STRUCT_BEGIN_CHAR and #DBUS_STRUCT_END_CHAR will
  119.  * appear in a signature.
  120.  */
  121. #define DBUS_TYPE_STRUCT        ((int) 'r')
  122. /** #DBUS_TYPE_STRUCT as a string literal instead of a int literal */
  123. #define DBUS_TYPE_STRUCT_AS_STRING         "r"
  124. /** Type code used to represent a dict entry; however, this type code does not appear
  125.  * in type signatures, instead #DBUS_DICT_ENTRY_BEGIN_CHAR and #DBUS_DICT_ENTRY_END_CHAR will
  126.  * appear in a signature.
  127.  */
  128. #define DBUS_TYPE_DICT_ENTRY    ((int) 'e')
  129. /** #DBUS_TYPE_DICT_ENTRY as a string literal instead of a int literal */
  130. #define DBUS_TYPE_DICT_ENTRY_AS_STRING     "e"

  131. /** Does not include #DBUS_TYPE_INVALID, #DBUS_STRUCT_BEGIN_CHAR, #DBUS_STRUCT_END_CHAR,
  132.  * #DBUS_DICT_ENTRY_BEGIN_CHAR, or #DBUS_DICT_ENTRY_END_CHAR - i.e. it is the number of
  133.  * valid types, not the number of distinct characters that may appear in a type signature.
  134.  */
  135. #define DBUS_NUMBER_OF_TYPES    (16)

  136. /* characters other than typecodes that appear in type signatures */

  137. /** Code marking the start of a struct type in a type signature */
  138. #define DBUS_STRUCT_BEGIN_CHAR   ((int) '(')
  139. /** #DBUS_STRUCT_BEGIN_CHAR as a string literal instead of a int literal */
  140. #define DBUS_STRUCT_BEGIN_CHAR_AS_STRING   "("
  141. /** Code marking the end of a struct type in a type signature */
  142. #define DBUS_STRUCT_END_CHAR     ((int) ')')
  143. /** #DBUS_STRUCT_END_CHAR a string literal instead of a int literal */
  144. #define DBUS_STRUCT_END_CHAR_AS_STRING     ")"
  145. /** Code marking the start of a dict entry type in a type signature */
  146. #define DBUS_DICT_ENTRY_BEGIN_CHAR   ((int) '{')
  147. /** #DBUS_DICT_ENTRY_BEGIN_CHAR as a string literal instead of a int literal */
  148. #define DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING   "{"
  149. /** Code marking the end of a dict entry type in a type signature */
  150. #define DBUS_DICT_ENTRY_END_CHAR     ((int) '}')
  151. /** #DBUS_DICT_ENTRY_END_CHAR as a string literal instead of a int literal */
  152. #define DBUS_DICT_ENTRY_END_CHAR_AS_STRING     "}"

  153. /** Max length in bytes of a bus name, interface, or member (not object
  154.  * path, paths are unlimited). This is limited because lots of stuff
  155.  * is O(n) in this number, plus it would be obnoxious to type in a
  156.  * paragraph-long method name so most likely something like that would
  157.  * be an exploit.
  158.  */
  159. #define DBUS_MAXIMUM_NAME_LENGTH 255

  160. /** This one is 255 so it fits in a byte */
  161. #define DBUS_MAXIMUM_SIGNATURE_LENGTH 255

  162. /** Max length of a match rule string; to keep people from hosing the
  163.  * daemon with some huge rule
  164.  */
  165. #define DBUS_MAXIMUM_MATCH_RULE_LENGTH 1024

  166. /** Max arg number you can match on in a match rule, e.g.
  167.  * arg0='hello' is OK, arg3489720987='hello' is not
  168.  */
  169. #define DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER 63
  170.   
  171. /** Max length of a marshaled array in bytes (64M, 2^26) We use signed
  172.  * int for lengths so must be INT_MAX or less.  We need something a
  173.  * bit smaller than INT_MAX because the array is inside a message with
  174.  * header info, etc.  so an INT_MAX array wouldn't allow the message
  175.  * overhead.  The 64M number is an attempt at a larger number than
  176.  * we'd reasonably ever use, but small enough that your bus would chew
  177.  * through it fairly quickly without locking up forever. If you have
  178.  * data that's likely to be larger than this, you should probably be
  179.  * sending it in multiple incremental messages anyhow.
  180.  */
  181. #define DBUS_MAXIMUM_ARRAY_LENGTH (67108864)
  182. /** Number of bits you need in an unsigned to store the max array size */
  183. #define DBUS_MAXIMUM_ARRAY_LENGTH_BITS 26

  184. /** The maximum total message size including header and body; similar
  185.  * rationale to max array size.
  186.  */
  187. #define DBUS_MAXIMUM_MESSAGE_LENGTH (DBUS_MAXIMUM_ARRAY_LENGTH * 2)
  188. /** Number of bits you need in an unsigned to store the max message size */
  189. #define DBUS_MAXIMUM_MESSAGE_LENGTH_BITS 27

  190. /** Depth of recursion in the type tree. This is automatically limited
  191.  * to DBUS_MAXIMUM_SIGNATURE_LENGTH since you could only have an array
  192.  * of array of array of ... that fit in the max signature.  But that's
  193.  * probably a bit too large.
  194.  */
  195. #define DBUS_MAXIMUM_TYPE_RECURSION_DEPTH 32

  196. /* Types of message */

  197. /** This value is never a valid message type, see dbus_message_get_type() */
  198. #define DBUS_MESSAGE_TYPE_INVALID       0
  199. /** Message type of a method call message, see dbus_message_get_type() */
  200. #define DBUS_MESSAGE_TYPE_METHOD_CALL   1
  201. /** Message type of a method return message, see dbus_message_get_type() */
  202. #define DBUS_MESSAGE_TYPE_METHOD_RETURN 2
  203. /** Message type of an error reply message, see dbus_message_get_type() */
  204. #define DBUS_MESSAGE_TYPE_ERROR         3
  205. /** Message type of a signal message, see dbus_message_get_type() */
  206. #define DBUS_MESSAGE_TYPE_SIGNAL        4

  207. /* Header flags */

  208. /** If set, this flag means that the sender of a message does not care about getting
  209.  * a reply, so the recipient need not send one. See dbus_message_set_no_reply().
  210.  */
  211. #define DBUS_HEADER_FLAG_NO_REPLY_EXPECTED 0x1
  212. /**
  213.  * If set, this flag means that even if the message bus knows how to start an owner for
  214.  * the destination bus name (see dbus_message_set_destination()), it should not
  215.  * do so. If this flag is not set, the bus may launch a program to process the
  216.  * message.
  217.  */
  218. #define DBUS_HEADER_FLAG_NO_AUTO_START     0x2

  219. /* Header fields */

  220. /** Not equal to any valid header field code */
  221. #define DBUS_HEADER_FIELD_INVALID        0
  222. /** Header field code for the path - the path is the object emitting a signal or the object receiving a method call.
  223.  * See dbus_message_set_path().
  224.  */
  225. #define DBUS_HEADER_FIELD_PATH           1
  226. /** Header field code for the interface containing a member (method or signal).
  227.  * See dbus_message_set_interface().
  228.  */
  229. #define DBUS_HEADER_FIELD_INTERFACE      2
  230. /** Header field code for a member (method or signal). See dbus_message_set_member(). */
  231. #define DBUS_HEADER_FIELD_MEMBER         3
  232. /** Header field code for an error name (found in #DBUS_MESSAGE_TYPE_ERROR messages).
  233.  * See dbus_message_set_error_name().
  234.  */
  235. #define DBUS_HEADER_FIELD_ERROR_NAME     4
  236. /** Header field code for a reply serial, used to match a #DBUS_MESSAGE_TYPE_METHOD_RETURN message with the
  237.  * message that it's a reply to. See dbus_message_set_reply_serial().
  238.  */
  239. #define DBUS_HEADER_FIELD_REPLY_SERIAL   5
  240. /**
  241.  * Header field code for the destination bus name of a message. See dbus_message_set_destination().
  242.  */
  243. #define DBUS_HEADER_FIELD_DESTINATION    6
  244. /**
  245.  * Header field code for the sender of a message; usually initialized by the message bus.
  246.  * See dbus_message_set_sender().
  247.  */
  248. #define DBUS_HEADER_FIELD_SENDER         7
  249. /**
  250.  * Header field code for the type signature of a message.
  251.  */
  252. #define DBUS_HEADER_FIELD_SIGNATURE      8

  253. /**
  254.  * Value of the highest-numbered header field code, can be used to determine
  255.  * the size of an array indexed by header field code. Remember though
  256.  * that unknown codes must be ignored, so check for that before
  257.  * indexing the array.
  258.  */
  259. #define DBUS_HEADER_FIELD_LAST DBUS_HEADER_FIELD_SIGNATURE

  260. /** Header format is defined as a signature:
  261.  *   byte                            byte order
  262.  *   byte                            message type ID
  263.  *   byte                            flags
  264.  *   byte                            protocol version
  265.  *   uint32                          body length
  266.  *   uint32                          serial
  267.  *   array of struct (byte,variant)  (field name, value)
  268.  *
  269.  * The length of the header can be computed as the
  270.  * fixed size of the initial data, plus the length of
  271.  * the array at the end, plus padding to an 8-boundary.
  272.  */
  273. #define DBUS_HEADER_SIGNATURE                   
  274.      DBUS_TYPE_BYTE_AS_STRING                   
  275.      DBUS_TYPE_BYTE_AS_STRING                   
  276.      DBUS_TYPE_BYTE_AS_STRING                   
  277.      DBUS_TYPE_BYTE_AS_STRING                   
  278.      DBUS_TYPE_UINT32_AS_STRING                 
  279.      DBUS_TYPE_UINT32_AS_STRING                 
  280.      DBUS_TYPE_ARRAY_AS_STRING                  
  281.      DBUS_STRUCT_BEGIN_CHAR_AS_STRING           
  282.      DBUS_TYPE_BYTE_AS_STRING                   
  283.      DBUS_TYPE_VARIANT_AS_STRING                
  284.      DBUS_STRUCT_END_CHAR_AS_STRING


  285. /**
  286.  * The smallest header size that can occur.  (It won't be valid due to
  287.  * missing required header fields.) This is 4 bytes, two uint32, an
  288.  * array length. This isn't any kind of resource limit, just the
  289.  * necessary/logical outcome of the header signature.
  290.  */
  291. #define DBUS_MINIMUM_HEADER_SIZE 16

  292. /* Errors */
  293. /* WARNING these get autoconverted to an enum in dbus-glib.h. Thus,
  294.  * if you change the order it breaks the ABI. Keep them in order.
  295.  * Also, don't change the formatting since that will break the sed
  296.  * script.
  297.  */
  298. /** A generic error; "something went wrong" - see the error message for more. */
  299. #define DBUS_ERROR_FAILED                     "org.freedesktop.DBus.Error.Failed"
  300. /** There was not enough memory to complete an operation. */
  301. #define DBUS_ERROR_NO_MEMORY                  "org.freedesktop.DBus.Error.NoMemory"
  302. /** The bus doesn't know how to launch a service to supply the bus name you wanted. */
  303. #define DBUS_ERROR_SERVICE_UNKNOWN            "org.freedesktop.DBus.Error.ServiceUnknown"
  304. /** The bus name you referenced doesn't exist (i.e. no application owns it). */
  305. #define DBUS_ERROR_NAME_HAS_NO_OWNER          "org.freedesktop.DBus.Error.NameHasNoOwner"
  306. /** No reply to a message expecting one, usually means a timeout occurred. */
  307. #define DBUS_ERROR_NO_REPLY                   "org.freedesktop.DBus.Error.NoReply"
  308. /** Something went wrong reading or writing to a socket, for example. */
  309. #define DBUS_ERROR_IO_ERROR                   "org.freedesktop.DBus.Error.IOError"
  310. /** A D-Bus bus address was malformed. */
  311. #define DBUS_ERROR_BAD_ADDRESS                "org.freedesktop.DBus.Error.BadAddress"
  312. /** Requested operation isn't supported (like ENOSYS on UNIX). */
  313. #define DBUS_ERROR_NOT_SUPPORTED              "org.freedesktop.DBus.Error.NotSupported"
  314. /** Some limited resource is exhausted. */
  315. #define DBUS_ERROR_LIMITS_EXCEEDED            "org.freedesktop.DBus.Error.LimitsExceeded"
  316. /** Security restrictions don't allow doing what you're trying to do. */
  317. #define DBUS_ERROR_ACCESS_DENIED              "org.freedesktop.DBus.Error.AccessDenied"
  318. /** Authentication didn't work. */
  319. #define DBUS_ERROR_AUTH_FAILED                "org.freedesktop.DBus.Error.AuthFailed"
  320. /** Unable to connect to server (probably caused by ECONNREFUSED on a socket). */
  321. #define DBUS_ERROR_NO_SERVER                  "org.freedesktop.DBus.Error.NoServer"
  322. /** Certain timeout errors, possibly ETIMEDOUT on a socket.
  323.  * Note that #DBUS_ERROR_NO_REPLY is used for message reply timeouts.
  324.  * @warning this is confusingly-named given that #DBUS_ERROR_TIMED_OUT also exists. We can't fix
  325.  * it for compatibility reasons so just be careful.
  326.  */
  327. #define DBUS_ERROR_TIMEOUT                    "org.freedesktop.DBus.Error.Timeout"
  328. /** No network access (probably ENETUNREACH on a socket). */
  329. #define DBUS_ERROR_NO_NETWORK                 "org.freedesktop.DBus.Error.NoNetwork"
  330. /** Can't bind a socket since its address is in use (i.e. EADDRINUSE). */
  331. #define DBUS_ERROR_ADDRESS_IN_USE             "org.freedesktop.DBus.Error.AddressInUse"
  332. /** The connection is disconnected and you're trying to use it. */
  333. #define DBUS_ERROR_DISCONNECTED               "org.freedesktop.DBus.Error.Disconnected"
  334. /** Invalid arguments passed to a method call. */
  335. #define DBUS_ERROR_INVALID_ARGS               "org.freedesktop.DBus.Error.InvalidArgs"
  336. /** Missing file. */
  337. #define DBUS_ERROR_FILE_NOT_FOUND             "org.freedesktop.DBus.Error.FileNotFound"
  338. /** Existing file and the operation you're using does not silently overwrite. */
  339. #define DBUS_ERROR_FILE_EXISTS                "org.freedesktop.DBus.Error.FileExists"
  340. /** Method name you invoked isn't known by the object you invoked it on. */
  341. #define DBUS_ERROR_UNKNOWN_METHOD             "org.freedesktop.DBus.Error.UnknownMethod"
  342. /** Certain timeout errors, e.g. while starting a service.
  343.  * @warning this is confusingly-named given that #DBUS_ERROR_TIMEOUT also exists. We can't fix
  344.  * it for compatibility reasons so just be careful.
  345.  */
  346. #define DBUS_ERROR_TIMED_OUT                  "org.freedesktop.DBus.Error.TimedOut"
  347. /** Tried to remove or modify a match rule that didn't exist. */
  348. #define DBUS_ERROR_MATCH_RULE_NOT_FOUND       "org.freedesktop.DBus.Error.MatchRuleNotFound"
  349. /** The match rule isn't syntactically valid. */
  350. #define DBUS_ERROR_MATCH_RULE_INVALID         "org.freedesktop.DBus.Error.MatchRuleInvalid"
  351. /** While starting a new process, the exec() call failed. */
  352. #define DBUS_ERROR_SPAWN_EXEC_FAILED          "org.freedesktop.DBus.Error.Spawn.ExecFailed"
  353. /** While starting a new process, the fork() call failed. */
  354. #define DBUS_ERROR_SPAWN_FORK_FAILED          "org.freedesktop.DBus.Error.Spawn.ForkFailed"
  355. /** While starting a new process, the child exited with a status code. */
  356. #define DBUS_ERROR_SPAWN_CHILD_EXITED         "org.freedesktop.DBus.Error.Spawn.ChildExited"
  357. /** While starting a new process, the child exited on a signal. */
  358. #define DBUS_ERROR_SPAWN_CHILD_SIGNALED       "org.freedesktop.DBus.Error.Spawn.ChildSignaled"
  359. /** While starting a new process, something went wrong. */
  360. #define DBUS_ERROR_SPAWN_FAILED               "org.freedesktop.DBus.Error.Spawn.Failed"
  361. /** We failed to setup the environment correctly. */
  362. #define DBUS_ERROR_SPAWN_SETUP_FAILED         "org.freedesktop.DBus.Error.Spawn.FailedToSetup"
  363. /** We failed to setup the config parser correctly. */
  364. #define DBUS_ERROR_SPAWN_CONFIG_INVALID       "org.freedesktop.DBus.Error.Spawn.ConfigInvalid"
  365. /** Bus name was not valid. */
  366. #define DBUS_ERROR_SPAWN_SERVICE_INVALID      "org.freedesktop.DBus.Error.Spawn.ServiceNotValid"
  367. /** Service file not found in system-services directory. */
  368. #define DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND    "org.freedesktop.DBus.Error.Spawn.ServiceNotFound"
  369. /** Permissions are incorrect on the setuid helper. */
  370. #define DBUS_ERROR_SPAWN_PERMISSIONS_INVALID  "org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"
  371. /** Service file invalid (Name, User or Exec missing). */
  372. #define DBUS_ERROR_SPAWN_FILE_INVALID         "org.freedesktop.DBus.Error.Spawn.FileInvalid"
  373. /** Tried to get a UNIX process ID and it wasn't available. */
  374. #define DBUS_ERROR_SPAWN_NO_MEMORY            "org.freedesktop.DBus.Error.Spawn.NoMemory"
  375. /** Tried to get a UNIX process ID and it wasn't available. */
  376. #define DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN    "org.freedesktop.DBus.Error.UnixProcessIdUnknown"
  377. /** A type signature is not valid. */
  378. #define DBUS_ERROR_INVALID_SIGNATURE          "org.freedesktop.DBus.Error.InvalidSignature"
  379. /** A file contains invalid syntax or is otherwise broken. */
  380. #define DBUS_ERROR_INVALID_FILE_CONTENT       "org.freedesktop.DBus.Error.InvalidFileContent"
  381. /** Asked for SELinux security context and it wasn't available. */
  382. #define DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN    "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"
  383. /** Asked for ADT audit data and it wasn't available. */
  384. #define DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN     "org.freedesktop.DBus.Error.AdtAuditDataUnknown"
  385. /** There's already an object with the requested object path. */
  386. #define DBUS_ERROR_OBJECT_PATH_IN_USE         "org.freedesktop.DBus.Error.ObjectPathInUse"

  387. /* XML introspection format */

  388. /** XML namespace of the introspection format version 1.0 */
  389. #define DBUS_INTROSPECT_1_0_XML_NAMESPACE         "http://www.freedesktop.org/standards/dbus"
  390. /** XML public identifier of the introspection format version 1.0 */
  391. #define DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
  392. /** XML system identifier of the introspection format version 1.0 */
  393. #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
  394. /** XML document type declaration of the introspection format version 1.0 */
  395. #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"

  396. /** @} */

  397. #ifdef __cplusplus
  398. #if 0
  399. { /* avoids confusing emacs indentation */
  400. #endif
  401. }
  402. #endif

  403. #endif /* DBUS_PROTOCOL_H */
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值