aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-14 12:31:02 +0100
committerDavid Robillard <d@drobilla.net>2020-11-14 12:39:38 +0100
commit5c1130819c60f52a3ab1a27711f4d8cca7a4cd14 (patch)
tree5ffa0df21d30d58e3e442bd9607e32981adbd5a4 /include
parent2bf875e89f98c64164f563a8d1fae2851d9c023c (diff)
downloadserd-5c1130819c60f52a3ab1a27711f4d8cca7a4cd14.tar.gz
serd-5c1130819c60f52a3ab1a27711f4d8cca7a4cd14.tar.bz2
serd-5c1130819c60f52a3ab1a27711f4d8cca7a4cd14.zip
Deprecate serd_uri_to_path()
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index c7da9fc7..6d822643 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -56,6 +56,16 @@
#define SERD_PURE_API SERD_API SERD_PURE_FUNC
#define SERD_CONST_API SERD_API SERD_CONST_FUNC
+#ifndef SERD_DISABLE_DEPRECATED
+# if defined(__clang__)
+# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("", rep)))
+# elif defined(__GNUC__)
+# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("Use " rep)))
+# else
+# define SERD_DEPRECATED_BY(rep)
+# endif
+#endif
+
#ifdef __cplusplus
extern "C" {
# if defined(__GNUC__)
@@ -352,7 +362,7 @@ static const SerdURI SERD_URI_NULL = {
encoding and other issues are not handled, to properly convert a file URI to
a path, use serd_file_uri_parse().
*/
-SERD_API
+SERD_API SERD_DEPRECATED_BY("serd_file_uri_parse")
const uint8_t* SERD_NULLABLE
serd_uri_to_path(const uint8_t* SERD_NONNULL uri);