gst/: Sprinkle NULL_TERMINATED to taste.
authorAndy Wingo <wingo@pobox.com>
Mon, 21 Nov 2005 18:41:39 +0000 (18:41 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 Nov 2005 18:41:39 +0000 (18:41 +0000)
Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gsttagsetter.h:
* gst/gsttaglist.h:
* gst/gststructure.h:
* gst/gstcaps.h:
* gst/gstutils.h: Sprinkle NULL_TERMINATED to taste.

ChangeLog
gst/gstcaps.h
gst/gststructure.h
gst/gsttaglist.h
gst/gsttagsetter.h
gst/gstutils.h

index b8663a78ece5cbd40d777d02b6fa0547f66a54d2..c605a79fa3a6290564c38ca837d93441051133f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-11-21  Andy Wingo  <wingo@pobox.com>
 
+       * gst/gsttagsetter.h: 
+       * gst/gsttaglist.h: 
+       * gst/gststructure.h: 
+       * gst/gstcaps.h: 
+       * gst/gstutils.h: Sprinkle NULL_TERMINATED to taste.
+
        * gst/gsterror.c (_gst_core_errors_init):
        * gst/gsterror.h (GST_CORE_ERROR_MISSING_PLUGIN): New error
        category.
index c06536fe2de77be6d25aa8b3172cec9d5b7a14a5..61cac61838022d553985a8138c99d6dbc9d23e97 100644 (file)
@@ -198,7 +198,7 @@ GstStructure *           gst_caps_get_structure                         (const G
 GstCaps *               gst_caps_copy_nth                              (const GstCaps * caps, guint nth);
 void                    gst_caps_truncate                              (GstCaps * caps);
 void                     gst_caps_set_simple                            (GstCaps       *caps,
-                                                                        char          *field, ...);
+                                                                        char          *field, ...) G_GNUC_NULL_TERMINATED;
 void                     gst_caps_set_simple_valist                     (GstCaps       *caps,
                                                                         char          *field,
                                                                         va_list        varargs);
index fbba358aaf2b83b99abc2130389f13e2e285196e..9acc07e880d7f36c228f2280011a3faaafc5b4fa 100644 (file)
@@ -114,7 +114,7 @@ void                    gst_structure_set_value            (GstStructure
                                                            const GValue            *value);
 void                    gst_structure_set                  (GstStructure            *structure,
                                                            const gchar             *fieldname,
-                                                           ...);
+                                                           ...) G_GNUC_NULL_TERMINATED;
 void                    gst_structure_set_valist           (GstStructure            *structure,
                                                            const gchar             *fieldname,
                                                            va_list varargs);
@@ -126,7 +126,7 @@ void                    gst_structure_remove_field         (GstStructure
                                                            const gchar             *fieldname);
 void                    gst_structure_remove_fields        (GstStructure            *structure,
                                                             const gchar            *fieldname,
-                                                           ...);
+                                                           ...) G_GNUC_NULL_TERMINATED;
 void                    gst_structure_remove_fields_valist (GstStructure             *structure,
                                                            const gchar             *fieldname,
                                                            va_list                  varargs);
index 282b3d1bb610c65b858ba0bc34691808e31814f1..9bf358698675c16b023e2bd6dd45482ea33a1a08 100644 (file)
@@ -113,11 +113,11 @@ guint             gst_tag_list_get_tag_size       (const GstTagList *     list,
 void           gst_tag_list_add                (GstTagList *           list,
                                                 GstTagMergeMode        mode,
                                                 const gchar *          tag,
-                                                ...);
+                                                ...) G_GNUC_NULL_TERMINATED;
 void           gst_tag_list_add_values         (GstTagList *           list,
                                                 GstTagMergeMode        mode,
                                                 const gchar *          tag,
-                                                ...);
+                                                ...) G_GNUC_NULL_TERMINATED;
 void           gst_tag_list_add_valist         (GstTagList *           list,
                                                 GstTagMergeMode        mode,
                                                 const gchar *          tag,
index 01e73b5c9f8415d7eab5a1c15e3f256a26ca7531..fca04bb50c45608d2f65774f3cc76d2e7c4e710a 100644 (file)
@@ -54,12 +54,12 @@ void                gst_tag_setter_merge            (GstTagSetter *         setter,
 void           gst_tag_setter_add              (GstTagSetter *         setter,
                                                 GstTagMergeMode        mode,
                                                 const gchar *          tag,
-                                                ...);
+                                                ...) G_GNUC_NULL_TERMINATED;
 
 void           gst_tag_setter_add_values       (GstTagSetter *         setter,
                                                 GstTagMergeMode        mode,
                                                 const gchar *          tag,
-                                                ...);
+                                                ...) G_GNUC_NULL_TERMINATED;
 
 void            gst_tag_setter_add_valist      (GstTagSetter *         setter,
                                                 GstTagMergeMode        mode,
index e0bf667e6a435f421b03b7fc3421bf50940b0160..f74853bd38b4e4c5154340fd16b0319938d844f7 100644 (file)
@@ -490,13 +490,13 @@ G_CONST_RETURN gchar*   gst_element_state_get_name      (GstState state);
 
 gboolean               gst_element_link                (GstElement *src, GstElement *dest);
 gboolean               gst_element_link_many           (GstElement *element_1,
-                                                        GstElement *element_2, ...);
+                                                        GstElement *element_2, ...) G_GNUC_NULL_TERMINATED;
 gboolean               gst_element_link_filtered       (GstElement * src,
                                                          GstElement * dest,
                                                          GstCaps *filter);
 void                    gst_element_unlink              (GstElement *src, GstElement *dest);
 void                    gst_element_unlink_many         (GstElement *element_1,
-                                                        GstElement *element_2, ...);
+                                                        GstElement *element_2, ...) G_GNUC_NULL_TERMINATED;
 
 gboolean               gst_element_link_pads           (GstElement *src, const gchar *srcpadname,
                                                         GstElement *dest, const gchar *destpadname);
@@ -520,7 +520,7 @@ gboolean                gst_element_query_convert       (GstElement *element, Gs
 
 /* element class functions */
 void                   gst_element_class_install_std_props (GstElementClass * klass,
-                                                        const gchar * first_name, ...);
+                                                        const gchar * first_name, ...) G_GNUC_NULL_TERMINATED;
 
 /* pad functions */
 gboolean                gst_pad_can_link                (GstPad *srcpad, GstPad *sinkpad);
@@ -541,8 +541,8 @@ gboolean                gst_pad_query_convert           (GstPad *pad, GstFormat
                                                         GstFormat *dest_format, gint64 *dest_val);
 
 /* bin functions */
-void                   gst_bin_add_many                (GstBin *bin, GstElement *element_1, ...);
-void                   gst_bin_remove_many             (GstBin *bin, GstElement *element_1, ...);
+void                   gst_bin_add_many                (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
+void                   gst_bin_remove_many             (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
 
 /* buffer functions */
 GstBuffer *            gst_buffer_merge                (GstBuffer * buf1, GstBuffer * buf2);