]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
lib: define NOTMUCH_DEPRECATED macro, document its use.
[notmuch] / lib / notmuch.h
index c8edc84dcbd702a3916b6204a6171d786b9956d2..9b5046b423c43963882d7af3c3cfb043786033e9 100644 (file)
@@ -59,6 +59,8 @@ NOTMUCH_BEGIN_DECLS
 #define LIBNOTMUCH_MINOR_VERSION       2
 #define LIBNOTMUCH_MICRO_VERSION       0
 
+#define NOTMUCH_DEPRECATED(major,minor) \
+    __attribute__ ((deprecated ("function deprecated as of libnotmuch " #major "." #minor)))
 #endif /* __DOXYGEN__ */
 
 /**