[gst-debugger] debugserver: Use G_DECLARE_FINAL_TYPE to define tracer plugin
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gst-debugger] debugserver: Use G_DECLARE_FINAL_TYPE to define tracer plugin
- Date: Sat, 7 Oct 2017 09:26:28 +0000 (UTC)
commit 4fa469d690e4500e32e86448c577431f32b0a0e5
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Oct 7 10:25:16 2017 +0100
debugserver: Use G_DECLARE_FINAL_TYPE to define tracer plugin
src/debugserver/gstdebugserver.h | 24 ++----------------------
1 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/src/debugserver/gstdebugserver.h b/src/debugserver/gstdebugserver.h
index ff9eb9d..31e3169 100644
--- a/src/debugserver/gstdebugserver.h
+++ b/src/debugserver/gstdebugserver.h
@@ -36,26 +36,13 @@
G_BEGIN_DECLS
-#define GST_TYPE_DEBUGSERVER_TRACER \
- (gst_debugserver_tracer_get_type())
-#define GST_DEBUGSERVER_TRACER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DEBUGSERVER_TRACER,GstDebugserverTracer))
-#define GST_DEBUGSERVER_TRACER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DEBUGSERVER_TRACER,GstDebugserverTracerClass))
-#define GST_IS_DEBUGSERVER_TRACER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DEBUGSERVER_TRACER))
-#define GST_IS_DEBUGSERVER_TRACER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEBUGSERVER_TRACER))
-#define GST_DEBUGSERVER_TRACER_CAST(obj) ((GstDebugserverTracer *)(obj))
-
-typedef struct _GstDebugserverTracer GstDebugserverTracer;
-typedef struct _GstDebugserverTracerClass GstDebugserverTracerClass;
-
/**
* GstDebugserverTracer:
*
* Opaque #GstDebugserverTracer data structure
*/
+G_DECLARE_FINAL_TYPE(GstDebugserverTracer, gst_debugserver_tracer, GST, DEBUGSERVER_TRACER, GstTracer)
+
struct _GstDebugserverTracer {
GstTracer parent;
@@ -71,13 +58,6 @@ struct _GstDebugserverTracer {
GstDebugserverBuffer *buffer;
};
-struct _GstDebugserverTracerClass {
- GstTracerClass parent_class;
-
- /* signals */
-};
-
-G_GNUC_INTERNAL GType gst_debugserver_tracer_get_type (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]