os/ossrv/ossrv_pub/dbus/inc/dbus-macros.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/* -*- mode: C; c-file-style: "gnu" -*- */
sl@0
     2
/* dbus-macros.h  generic macros
sl@0
     3
 *
sl@0
     4
 * Copyright (C) 2002  Red Hat Inc.
sl@0
     5
 *
sl@0
     6
 * Licensed under the Academic Free License version 2.1
sl@0
     7
 * 
sl@0
     8
 * This program is free software; you can redistribute it and/or modify
sl@0
     9
 * it under the terms of the GNU General Public License as published by
sl@0
    10
 * the Free Software Foundation; either version 2 of the License, or
sl@0
    11
 * (at your option) any later version.
sl@0
    12
 *
sl@0
    13
 * This program is distributed in the hope that it will be useful,
sl@0
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
sl@0
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
sl@0
    16
 * GNU General Public License for more details.
sl@0
    17
 * 
sl@0
    18
 * You should have received a copy of the GNU General Public License
sl@0
    19
 * along with this program; if not, write to the Free Software
sl@0
    20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
sl@0
    21
 *
sl@0
    22
 */
sl@0
    23
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
sl@0
    24
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
sl@0
    25
#endif
sl@0
    26
sl@0
    27
#ifndef DBUS_MACROS_H
sl@0
    28
#define DBUS_MACROS_H
sl@0
    29
sl@0
    30
#ifdef  __cplusplus
sl@0
    31
#  define DBUS_BEGIN_DECLS  extern "C" {
sl@0
    32
#  define DBUS_END_DECLS    }
sl@0
    33
#else
sl@0
    34
#  define DBUS_BEGIN_DECLS
sl@0
    35
#  define DBUS_END_DECLS
sl@0
    36
#endif
sl@0
    37
sl@0
    38
#ifndef TRUE
sl@0
    39
#  define TRUE 1
sl@0
    40
#endif
sl@0
    41
#ifndef FALSE
sl@0
    42
#  define FALSE 0
sl@0
    43
#endif
sl@0
    44
sl@0
    45
#ifndef NULL
sl@0
    46
#  ifdef __cplusplus
sl@0
    47
#    define NULL        (0L)
sl@0
    48
#  else /* !__cplusplus */
sl@0
    49
#    define NULL        ((void*) 0)
sl@0
    50
#  endif /* !__cplusplus */
sl@0
    51
#endif
sl@0
    52
sl@0
    53
#if  __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
sl@0
    54
#define DBUS_GNUC_DEPRECATED __attribute__((__deprecated__))
sl@0
    55
#else
sl@0
    56
#define DBUS_GNUC_DEPRECATED
sl@0
    57
#endif
sl@0
    58
sl@0
    59
/* Normally docs are in .c files, but there isn't a .c file for this. */
sl@0
    60
/**
sl@0
    61
 * @defgroup DBusMacros Utility macros
sl@0
    62
 * @ingroup  DBus
sl@0
    63
 * @brief #TRUE, #FALSE, #NULL, and so on
sl@0
    64
 *
sl@0
    65
 * Utility macros.
sl@0
    66
 *
sl@0
    67
 * @{
sl@0
    68
 */
sl@0
    69
sl@0
    70
/**
sl@0
    71
 * @def DBUS_BEGIN_DECLS
sl@0
    72
 *
sl@0
    73
 * Macro used prior to declaring functions in the D-Bus header
sl@0
    74
 * files. Expands to "extern "C"" when using a C++ compiler,
sl@0
    75
 * and expands to nothing when using a C compiler.
sl@0
    76
 *
sl@0
    77
 * Please don't use this in your own code, consider it
sl@0
    78
 * D-Bus internal.
sl@0
    79
 */
sl@0
    80
/**
sl@0
    81
 * @def DBUS_END_DECLS
sl@0
    82
 *
sl@0
    83
 * Macro used after declaring functions in the D-Bus header
sl@0
    84
 * files. Expands to "}" when using a C++ compiler,
sl@0
    85
 * and expands to nothing when using a C compiler.
sl@0
    86
 *
sl@0
    87
 * Please don't use this in your own code, consider it
sl@0
    88
 * D-Bus internal.
sl@0
    89
 */
sl@0
    90
/**
sl@0
    91
 * @def TRUE
sl@0
    92
 *
sl@0
    93
 * Expands to "1"
sl@0
    94
 */
sl@0
    95
/**
sl@0
    96
 * @def FALSE
sl@0
    97
 *
sl@0
    98
 * Expands to "0"
sl@0
    99
 */
sl@0
   100
/**
sl@0
   101
 * @def NULL
sl@0
   102
 *
sl@0
   103
 * A null pointer, defined appropriately for C or C++.
sl@0
   104
 */
sl@0
   105
/**
sl@0
   106
 * @def DBUS_GNUC_DEPRECATED
sl@0
   107
 *
sl@0
   108
 * Tells gcc to warn about a function or type if it's used.
sl@0
   109
 * Code marked in this way should also be enclosed in
sl@0
   110
 * @code
sl@0
   111
 * #ifndef DBUS_DISABLE_DEPRECATED
sl@0
   112
 *  deprecated stuff here
sl@0
   113
 * #endif
sl@0
   114
 * @endcode
sl@0
   115
 *
sl@0
   116
 * Please don't use this in your own code, consider it
sl@0
   117
 * D-Bus internal.
sl@0
   118
 */
sl@0
   119
sl@0
   120
/** @} */
sl@0
   121
sl@0
   122
#endif /* DBUS_MACROS_H */