PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue Oct 23 12:26:33 PDT 2007


 polkit/polkit-types.h |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit b9137e6598ff1799f390110f387dfb5ec6d6e32d
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Oct 23 15:25:44 2007 -0400

    add docs for POLKIT_[BEGIN|END]_DECLS and also add POLKIT_GNUC_DEPRECATED

diff --git a/polkit/polkit-types.h b/polkit/polkit-types.h
index 529b18d..1a97dd3 100644
--- a/polkit/polkit-types.h
+++ b/polkit/polkit-types.h
@@ -34,10 +34,27 @@
 #  define POLKIT_BEGIN_DECLS extern "C" {
 #  define POLKIT_END_DECLS }
 #else
+/**
+ * POLKIT_BEGIN_DECLS:
+ *
+ * C++ include header guard
+ */
 #  define POLKIT_BEGIN_DECLS
+/**
+ * POLKIT_END_DECLS:
+ *
+ * C++ include header guard
+ */
 #  define POLKIT_END_DECLS
 #endif
 
+#if    __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+#define POLKIT_GNUC_DEPRECATED                            \
+  __attribute__((__deprecated__))
+#else
+#define POLKIT_GNUC_DEPRECATED
+#endif /* __GNUC__ */
+
 POLKIT_BEGIN_DECLS
 
 /**


More information about the hal-commit mailing list