diff options
author | Lauri Aalto <laalto@iki.fi> | 2008-10-06 09:54:05 +0000 |
---|---|---|
committer | Lauri Aalto <laalto@iki.fi> | 2008-10-06 09:54:05 +0000 |
commit | 76b3f937ca28be30cef66974a1f623bff1d83efb (patch) | |
tree | 439e76afb63b7857d438d7caee69105207b2f7ab /src/raptor_locator.c | |
parent | 3b91be53551ab09208e9056b8c0a35ec673d162f (diff) | |
download | raptor-76b3f937ca28be30cef66974a1f623bff1d83efb.tar.gz |
Added API flag RAPTOR_V2_AVAILABLE.
Flagged v1 functions replaced with v2 variants with RAPTOR_V1 - easy to deprecate later.
Wrapped v1 functions replaced with v2 variabrs in #ifndef RAPTOR_DISABLE_V1 - easy to remove old implementations if needed.
Diffstat (limited to 'src/raptor_locator.c')
-rw-r--r-- | src/raptor_locator.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/raptor_locator.c b/src/raptor_locator.c index 9722a55e..bdbb369a 100644 --- a/src/raptor_locator.c +++ b/src/raptor_locator.c @@ -48,6 +48,7 @@ #include "raptor_internal.h" +#ifndef RAPTOR_DISABLE_V1 /** * raptor_print_locator: * @stream: stream to print to @@ -63,6 +64,7 @@ raptor_print_locator(FILE *stream, raptor_locator* locator) { raptor_print_locator_v2(raptor_world_instance(), stream, locator); } +#endif /** @@ -94,6 +96,7 @@ raptor_print_locator_v2(raptor_world* world, FILE *stream, raptor_locator* locat } +#ifndef RAPTOR_DISABLE_V1 /** * raptor_format_locator: * @buffer: buffer to store format @@ -116,6 +119,7 @@ raptor_format_locator(char *buffer, size_t length, raptor_locator* locator) { return raptor_format_locator_v2(raptor_world_instance(), buffer, length, locator); } +#endif /** @@ -244,6 +248,8 @@ raptor_locator_file(raptor_locator *locator) return locator->file; } + +#ifndef RAPTOR_DISABLE_V1 /** * raptor_locator_uri: * @locator: locator @@ -263,6 +269,7 @@ raptor_locator_uri(raptor_locator *locator) { return raptor_locator_uri_v2(raptor_world_instance(), locator); } +#endif /** |