2 * Copyright (C) 2013 Stefan Sauer <ensonic@users.sf.net>
4 * gsttracerfactory.c: tracing subsystem
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 * SECTION:gsttracerfactory
24 * @short_description: Information about registered tracer functions
26 * Use gst_tracer_factory_get_list() to get a list of tracer factories known to
30 #include "gst_private.h"
32 #include "gsttracerfactory.h"
33 #include "gstregistry.h"
35 GST_DEBUG_CATEGORY (tracer_debug);
36 #define GST_CAT_DEFAULT tracer_debug
40 GST_DEBUG_CATEGORY_INIT (tracer_debug, "GST_TRACER", \
41 GST_DEBUG_FG_BLUE, "tracing subsystem"); \
44 #define gst_tracer_factory_parent_class parent_class
45 G_DEFINE_TYPE_WITH_CODE (GstTracerFactory, gst_tracer_factory,
46 GST_TYPE_PLUGIN_FEATURE, _do_init);
49 gst_tracer_factory_class_init (GstTracerFactoryClass * klass)
54 gst_tracer_factory_init (GstTracerFactory * factory)
59 * gst_tracer_factory_get_list:
61 * Gets the list of all registered tracer factories. You must free the
62 * list using gst_plugin_feature_list_free().
64 * The returned factories are sorted by factory name.
66 * Free-function: gst_plugin_feature_list_free
68 * Returns: (transfer full) (element-type Gst.TracerFactory): the list of all
69 * registered #GstTracerFactory.
74 gst_tracer_factory_get_list (void)
76 return gst_registry_get_feature_list (gst_registry_get (),
77 GST_TYPE_TRACER_FACTORY);