dbus-macros.inc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. { -*- mode: C; c-file-style: "gnu" -*- }
  2. { dbus-macros.h generic macros
  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., 51 Franklin Street, Fifth Floor, Boston,
  21. * MA 02110-1301, USA.
  22. *
  23. }
  24. { Normally docs are in .c files, but there isn't a .c file for this. }
  25. {
  26. * @defgroup DBusMacros Utility macros
  27. * @ingroup DBus
  28. * @brief #TRUE, #FALSE, #NULL, and so on
  29. *
  30. * Utility macros.
  31. *
  32. }
  33. {
  34. * @def DBUS_BEGIN_DECLS
  35. *
  36. * Macro used prior to declaring functions in the D-Bus header
  37. * files. Expands to "extern "C"" when using a C++ compiler,
  38. * and expands to nothing when using a C compiler.
  39. }
  40. {
  41. * @def DBUS_END_DECLS
  42. *
  43. * Macro used after declaring functions in the D-Bus header
  44. * files. Expands to "}{" when using a C++ compiler,
  45. * and expands to nothing when using a C compiler.
  46. }
  47. {
  48. * @def TRUE
  49. *
  50. * Expands to "1"
  51. }
  52. {
  53. * @def FALSE
  54. *
  55. * Expands to "0"
  56. }
  57. {
  58. * @def NULL
  59. *
  60. * A null pointer, defined appropriately for C or C++.
  61. }