*/
struct _GstTypeFind {
/* private to the caller of the typefind function */
- guint8 * (* peek) (gpointer data,
- gint64 offset,
- guint size);
+ const guint8 * (* peek) (gpointer data,
+ gint64 offset,
+ guint size);
- void (* suggest) (gpointer data,
- guint probability,
- const GstCaps * caps);
+ void (* suggest) (gpointer data,
+ guint probability,
+ GstCaps *caps);
- gpointer data;
+ gpointer data;
/* optional */
- guint64 (* get_length) (gpointer data);
+ guint64 (* get_length) (gpointer data);
/* <private> */
gpointer _gst_reserved[GST_PADDING];
GType gst_type_find_get_type (void);
/* typefind function interface */
-guint8 * gst_type_find_peek (GstTypeFind * find,
- gint64 offset,
- guint size);
+const guint8 * gst_type_find_peek (GstTypeFind * find,
+ gint64 offset,
+ guint size);
-void gst_type_find_suggest (GstTypeFind * find,
- guint probability,
- const GstCaps * caps);
+void gst_type_find_suggest (GstTypeFind * find,
+ guint probability,
+ GstCaps * caps);
-void gst_type_find_suggest_simple (GstTypeFind * find,
- guint probability,
- const char * media_type,
- const char * fieldname, ...);
+void gst_type_find_suggest_simple (GstTypeFind * find,
+ guint probability,
+ const char * media_type,
+ const char * fieldname, ...);
guint64 gst_type_find_get_length (GstTypeFind * find);
const gchar * name,
guint rank,
GstTypeFindFunction func,
- gchar ** extensions,
- const GstCaps * possible_caps,
+ const gchar * extensions,
+ GstCaps * possible_caps,
gpointer data,
GDestroyNotify data_notify);