element: remove more query_types
[platform/upstream/gstreamer.git] / gst / gsttrace.h
index 6372224..817ae1f 100644 (file)
@@ -30,13 +30,15 @@ G_BEGIN_DECLS
 
 /**
  * GstAllocTraceFlags:
- * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory
- * @GST_ALLOC_TRACE_MEM_LIVE: trace pointers of unfreed memory
+ * @GST_ALLOC_TRACE_NONE: No tracing specified or desired. Since 0.10.36.
+ * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory.
+ * @GST_ALLOC_TRACE_MEM_LIVE: Trace pointers of unfreed memory.
  *
  * Flags indicating which tracing feature to enable.
  */
 typedef enum {
-  GST_ALLOC_TRACE_LIVE         = (1 << 0),
+  GST_ALLOC_TRACE_NONE      = 0,
+  GST_ALLOC_TRACE_LIVE      = (1 << 0),
   GST_ALLOC_TRACE_MEM_LIVE     = (1 << 1)
 } GstAllocTraceFlags;
 
@@ -88,7 +90,7 @@ struct _GstTraceEntry {
   gchar message[112];
 };
 
-GstTrace*      gst_trace_new                   (gchar *filename, gint size);
+GstTrace*      gst_trace_new                   (const gchar *filename, gint size);
 
 void           gst_trace_destroy               (GstTrace *trace);
 void           gst_trace_flush                 (GstTrace *trace);
@@ -125,7 +127,7 @@ void                gst_trace_read_tsc              (gint64 *dst);
 extern GStaticMutex     _gst_trace_mutex;
 
 gboolean               gst_alloc_trace_available       (void);
-G_CONST_RETURN GList*  gst_alloc_trace_list            (void);
+const GList*           gst_alloc_trace_list            (void);
 GstAllocTrace*         _gst_alloc_trace_register       (const gchar *name);
 
 int                    gst_alloc_trace_live_all        (void);
@@ -223,7 +225,6 @@ extern gint _gst_trace_on;
 #pragma GCC poison     gst_trace_set_default
 #pragma GCC poison     _gst_trace_add_entry
 #pragma GCC poison     gst_trace_read_tsc
-#pragma GCC poison     gst_trace_add_entry
 #endif
 
 #define                gst_alloc_trace_register(name)  (NULL)