From 06f898cc1240a29b293de0e97ad95a4fdc971254 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Jul 2013 20:11:57 +0200 Subject: tag: convert to C++ --- src/input_stream.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/input_stream.h') diff --git a/src/input_stream.h b/src/input_stream.h index 811aae3f9..b5b251f59 100644 --- a/src/input_stream.h +++ b/src/input_stream.h @@ -29,6 +29,7 @@ #include #include +struct Tag; struct input_stream; #ifdef __cplusplus @@ -174,12 +175,12 @@ input_stream_lock_eof(struct input_stream *is); * * The caller must lock the mutex. * - * @return a tag object which must be freed with tag_free(), or NULL + * @return a tag object which must be freed by the caller, or nullptr * if the tag has not changed since the last call */ gcc_nonnull(1) gcc_malloc -struct tag * +Tag * input_stream_tag(struct input_stream *is); /** @@ -188,7 +189,7 @@ input_stream_tag(struct input_stream *is); */ gcc_nonnull(1) gcc_malloc -struct tag * +Tag * input_stream_lock_tag(struct input_stream *is); /** -- cgit v1.2.3