gsttracer.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* GStreamer
  2. * Copyright (C) 2013 Stefan Sauer <ensonic@users.sf.net>
  3. *
  4. * gsttracer.h: tracer base class
  5. *
  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.
  10. *
  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.
  15. *
  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.
  20. */
  21. #ifndef __GST_TRACER_H__
  22. #define __GST_TRACER_H__
  23. #include <glib.h>
  24. #include <glib-object.h>
  25. #include <gst/gstconfig.h>
  26. G_BEGIN_DECLS
  27. typedef struct _GstTracer GstTracer;
  28. typedef struct _GstTracerPrivate GstTracerPrivate;
  29. typedef struct _GstTracerClass GstTracerClass;
  30. #define GST_TYPE_TRACER (gst_tracer_get_type())
  31. #define GST_TRACER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TRACER,GstTracer))
  32. #define GST_TRACER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TRACER,GstTracerClass))
  33. #define GST_IS_TRACER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TRACER))
  34. #define GST_IS_TRACER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TRACER))
  35. #define GST_TRACER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_TRACER,GstTracerClass))
  36. #define GST_TRACER_CAST(obj) ((GstTracer *)(obj))
  37. struct _GstTracer {
  38. GstObject parent;
  39. /*< private >*/
  40. GstTracerPrivate *priv;
  41. gpointer _gst_reserved[GST_PADDING];
  42. };
  43. struct _GstTracerClass {
  44. GstObjectClass parent_class;
  45. /*< private >*/
  46. gpointer _gst_reserved[GST_PADDING];
  47. };
  48. GType gst_tracer_get_type (void);
  49. #ifdef GST_USE_UNSTABLE_API
  50. void gst_tracing_register_hook (GstTracer *tracer, const gchar *detail,
  51. GCallback func);
  52. /* tracing modules */
  53. gboolean gst_tracer_register (GstPlugin * plugin, const gchar * name, GType type);
  54. #endif
  55. #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
  56. G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTracer, gst_object_unref)
  57. #endif
  58. G_END_DECLS
  59. #endif /* __GST_TRACER_H__ */