summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2006-04-21 22:46:33 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2006-04-21 22:46:33 +0000
commit95d162791f77b914174129acffc9ce6ca0a474e8 (patch)
tree2610cd29b4e73af68b81c32ae527797ef3ecdb0f /src
parent209a48cd6a925a73de77b9e36747385dc0ec9168 (diff)
downloadxine-lib-95d162791f77b914174129acffc9ce6ca0a474e8.tar.gz
xine-lib-95d162791f77b914174129acffc9ce6ca0a474e8.tar.bz2
Sentinel attributes for certain variadic functions.
CVS patchset: 7975 CVS date: 2006/04/21 22:46:33
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/info_helper.h6
-rw-r--r--src/xine-engine/xine_internal.h8
2 files changed, 11 insertions, 3 deletions
diff --git a/src/xine-engine/info_helper.h b/src/xine-engine/info_helper.h
index 281411f7a..5cf4b9a00 100644
--- a/src/xine-engine/info_helper.h
+++ b/src/xine-engine/info_helper.h
@@ -123,7 +123,11 @@ void _x_meta_info_set_generic(xine_stream_t *stream, int info, const char *str,
* ... one or more meta info, followed by a NULL pointer
*
*/
-void _x_meta_info_set_multi(xine_stream_t *stream, int info, ...);
+void _x_meta_info_set_multi(xine_stream_t *stream, int info, ...)
+#ifdef __GNUC__
+__attribute__((sentinel))
+#endif
+;
/*
* set a stream meta info
diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h
index 0fc083569..9ad198143 100644
--- a/src/xine-engine/xine_internal.h
+++ b/src/xine-engine/xine_internal.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_internal.h,v 1.171 2006/01/27 07:46:16 tmattern Exp $
+ * $Id: xine_internal.h,v 1.172 2006/04/21 22:46:33 dsalt Exp $
*
*/
@@ -358,7 +358,11 @@ void _x_handle_stream_end (xine_stream_t *stream, int non_user);
/* report message to UI. usually these are async errors */
-int _x_message(xine_stream_t *stream, int type, ...);
+int _x_message(xine_stream_t *stream, int type, ...)
+#ifdef __GNUC__
+__attribute__((sentinel))
+#endif
+;
/* flush the message queues */