dbus-types.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. { -*- mode: C; c-file-style: "gnu" -*- }
  2. { dbus-types.h types such as dbus_bool_t
  3. *
  4. * Copyright (C) 2002 Red Hat Inc.
  5. *
  6. * Licensed under the Academic Free License version 2.1
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. }
  23. //#include <stddef.h>
  24. //#include <dbus/dbus-arch-deps.h>
  25. type
  26. dbus_unichar_t = dbus_uint32_t;
  27. { boolean size must be fixed at 4 bytes due to wire protocol! }
  28. dbus_bool_t = dbus_uint32_t;
  29. PPPChar = ^PPChar;
  30. va_list = Pointer;
  31. { Normally docs are in .c files, but there isn't a .c file for this. }
  32. {
  33. * @defgroup DBusTypes Basic types
  34. * @ingroup DBus
  35. * @brief dbus_bool_t, dbus_int32_t, etc.
  36. *
  37. * Typedefs for common primitive types.
  38. *
  39. }
  40. {
  41. * @typedef dbus_bool_t
  42. *
  43. * A boolean, valid values are #TRUE and #FALSE.
  44. }
  45. {
  46. * @typedef dbus_uint32_t
  47. *
  48. * A 32-bit unsigned integer on all platforms.
  49. }
  50. {
  51. * @typedef dbus_int32_t
  52. *
  53. * A 32-bit signed integer on all platforms.
  54. }
  55. {
  56. * @typedef dbus_uint16_t
  57. *
  58. * A 16-bit unsigned integer on all platforms.
  59. }
  60. {
  61. * @typedef dbus_int16_t
  62. *
  63. * A 16-bit signed integer on all platforms.
  64. }
  65. {
  66. * @typedef dbus_uint64_t
  67. *
  68. * A 64-bit unsigned integer on all platforms that support it.
  69. * If supported, #DBUS_HAVE_INT64 will be defined.
  70. *
  71. * C99 requires a 64-bit type and most likely all interesting
  72. * compilers support one. GLib for example flat-out requires
  73. * a 64-bit type.
  74. }
  75. {
  76. * @typedef dbus_int64_t
  77. *
  78. * A 64-bit signed integer on all platforms that support it.
  79. * If supported, #DBUS_HAVE_INT64 will be defined.
  80. *
  81. * C99 requires a 64-bit type and most likely all interesting
  82. * compilers support one. GLib for example flat-out requires
  83. * a 64-bit type.
  84. }
  85. {
  86. * @def DBUS_INT64_CONSTANT
  87. *
  88. * Declare a 64-bit signed integer constant. The macro
  89. * adds the necessary "LL" or whatever after the integer,
  90. * giving a literal such as "325145246765LL"
  91. }
  92. {
  93. * @def DBUS_UINT64_CONSTANT
  94. *
  95. * Declare a 64-bit unsigned integer constant. The macro
  96. * adds the necessary "ULL" or whatever after the integer,
  97. * giving a literal such as "325145246765ULL"
  98. }