element-maker: Add debug category

This commit is contained in:
David Schleef 2011-01-02 19:38:01 -08:00
parent 73d85fa438
commit 36a3688015

View file

@ -133,6 +133,9 @@ grep -A 10000 '^% includes' $templatedir/$class | tail -n +2|grep -m 1 -B 10000
cat <<EOF cat <<EOF
#include "gstreplace.h" #include "gstreplace.h"
GST_DEBUG_CATEGORY_STATIC (gst_replace_debug);
#define GST_CAT_DEFAULT gst_replace_debug
/* prototypes */ /* prototypes */
EOF EOF
@ -165,8 +168,12 @@ cat <<EOF
/* class initialization */ /* class initialization */
GST_BOILERPLATE (GstReplace, gst_replace, GstBaseReplace, #define DEBUG_INIT(bla) \\
GST_TYPE_BASE_REPLACE); GST_DEBUG_CATEGORY_INIT (gst_replace_debug, "replace", 0, \\
"debug category for replace element");
GST_BOILERPLATE_FULL (GstReplace, gst_replace, GstBaseReplace,
GST_TYPE_BASE_REPLACE, DEBUG_INIT);
static void static void
gst_replace_base_init (gpointer g_class) gst_replace_base_init (gpointer g_class)