1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/dbus-1.0/dbus/dbus-macros.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,122 @@
1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
1.5 +/* dbus-macros.h generic macros
1.6 + *
1.7 + * Copyright (C) 2002 Red Hat Inc.
1.8 + *
1.9 + * Licensed under the Academic Free License version 2.1
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License
1.22 + * along with this program; if not, write to the Free Software
1.23 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.24 + *
1.25 + */
1.26 +#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
1.27 +#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
1.28 +#endif
1.29 +
1.30 +#ifndef DBUS_MACROS_H
1.31 +#define DBUS_MACROS_H
1.32 +
1.33 +#ifdef __cplusplus
1.34 +# define DBUS_BEGIN_DECLS extern "C" {
1.35 +# define DBUS_END_DECLS }
1.36 +#else
1.37 +# define DBUS_BEGIN_DECLS
1.38 +# define DBUS_END_DECLS
1.39 +#endif
1.40 +
1.41 +#ifndef TRUE
1.42 +# define TRUE 1
1.43 +#endif
1.44 +#ifndef FALSE
1.45 +# define FALSE 0
1.46 +#endif
1.47 +
1.48 +#ifndef NULL
1.49 +# ifdef __cplusplus
1.50 +# define NULL (0L)
1.51 +# else /* !__cplusplus */
1.52 +# define NULL ((void*) 0)
1.53 +# endif /* !__cplusplus */
1.54 +#endif
1.55 +
1.56 +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
1.57 +#define DBUS_GNUC_DEPRECATED __attribute__((__deprecated__))
1.58 +#else
1.59 +#define DBUS_GNUC_DEPRECATED
1.60 +#endif
1.61 +
1.62 +/* Normally docs are in .c files, but there isn't a .c file for this. */
1.63 +/**
1.64 + * @defgroup DBusMacros Utility macros
1.65 + * @ingroup DBus
1.66 + * @brief #TRUE, #FALSE, #NULL, and so on
1.67 + *
1.68 + * Utility macros.
1.69 + *
1.70 + * @{
1.71 + */
1.72 +
1.73 +/**
1.74 + * @def DBUS_BEGIN_DECLS
1.75 + *
1.76 + * Macro used prior to declaring functions in the D-Bus header
1.77 + * files. Expands to "extern "C"" when using a C++ compiler,
1.78 + * and expands to nothing when using a C compiler.
1.79 + *
1.80 + * Please don't use this in your own code, consider it
1.81 + * D-Bus internal.
1.82 + */
1.83 +/**
1.84 + * @def DBUS_END_DECLS
1.85 + *
1.86 + * Macro used after declaring functions in the D-Bus header
1.87 + * files. Expands to "}" when using a C++ compiler,
1.88 + * and expands to nothing when using a C compiler.
1.89 + *
1.90 + * Please don't use this in your own code, consider it
1.91 + * D-Bus internal.
1.92 + */
1.93 +/**
1.94 + * @def TRUE
1.95 + *
1.96 + * Expands to "1"
1.97 + */
1.98 +/**
1.99 + * @def FALSE
1.100 + *
1.101 + * Expands to "0"
1.102 + */
1.103 +/**
1.104 + * @def NULL
1.105 + *
1.106 + * A null pointer, defined appropriately for C or C++.
1.107 + */
1.108 +/**
1.109 + * @def DBUS_GNUC_DEPRECATED
1.110 + *
1.111 + * Tells gcc to warn about a function or type if it's used.
1.112 + * Code marked in this way should also be enclosed in
1.113 + * @code
1.114 + * #ifndef DBUS_DISABLE_DEPRECATED
1.115 + * deprecated stuff here
1.116 + * #endif
1.117 + * @endcode
1.118 + *
1.119 + * Please don't use this in your own code, consider it
1.120 + * D-Bus internal.
1.121 + */
1.122 +
1.123 +/** @} */
1.124 +
1.125 +#endif /* DBUS_MACROS_H */