Galago - desktop presence framework

galago-utils-priv.h

Go to the documentation of this file.
00001 
00021 #ifndef _GALAGO_UTILS_PRIV_H_
00022 #define _GALAGO_UTILS_PRIV_H_
00023 
00024 #ifdef HAVE_CONFIG_H
00025 # include "config.h"
00026 #endif
00027 
00028 #include <stdlib.h>
00029 #include <libgalago/galago-dbus-compat.h>
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /**************************************************************************/
00037 /**************************************************************************/
00040 /* Thanks glib */
00041 #if !defined(GALAGO_VA_COPY)
00042 #  if defined(__GNUC__) && defined(__PPC__) && (defined(_CALL_SYSV) || defined(_WIN32))
00043 #    define GALAGO_VA_COPY(ap1, ap2)   (*(ap1) = *(ap2))
00044 #  elif defined (GALAGO_VA_COPY_AS_ARRAY)
00045 #    define GALAGO_VA_COPY(ap1, ap2)   g_memmove((ap1), (ap2), sizeof(va_list))
00046 #  else /* va_list is a pointer */
00047 #    define GALAGO_VA_COPY(ap1, ap2)   ((ap1) = (ap2))
00048 #  endif /* va_list is a pointer */
00049 #endif /* !GALAGO_VA_COPY */
00050 
00051 
00052 #define DEPRECATE_OLD_GET_CLASS(oldname, newname) \
00053 GalagoObjectClass * \
00054 oldname##_get_class(void) \
00055 { \
00056     galago_log_warning("%s_get_class() is deprecated. Please recompile " \
00057                        "your application to fix this error.\n", #oldname); \
00058     return newname##_get_class(); \
00059 }
00060 
00063 #ifdef __cplusplus
00064 }
00065 #endif
00066 
00067 #endif /* _GALAGO_UTILS_H_ */