mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
2e23effc15
Original commit message from CVS: * examples/gst/play.py: * gst/gst-types.defs: * gst/gst.override: * testsuite/Makefile.am: * testsuite/common.py: * testsuite/event.py: * testsuite/test_event.py: Use gst.element_factory_make in play example Use boxed instead of pointer for gst.Event, it was such an ugly hack. Ref the event when sending using gst.element_send_event. Add a bunch of testcases (and a C module), renamed event to test_event.py
23 lines
849 B
C
23 lines
849 B
C
#include <glib-object.h>
|
|
#include <gst/gstevent.h>
|
|
|
|
/* TestObject */
|
|
|
|
typedef struct {
|
|
GObject parent;
|
|
} TestObject;
|
|
|
|
typedef struct {
|
|
GObjectClass parent_class;
|
|
/* signals */
|
|
void (*event) (TestObject *object, GstEvent *event);
|
|
} TestObjectClass;
|
|
|
|
#define TEST_TYPE_OBJECT (test_object_get_type())
|
|
#define TEST_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_OBJECT, TestObject))
|
|
#define TEST_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_OBJECT, TestObjectClass))
|
|
#define TEST_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_OBJECT))
|
|
#define TEST_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), TEST_TYPE_OBJECT))
|
|
#define TEST_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TEST_TYPE_OBJECT, TestObjectClass))
|
|
|
|
GType test_object_get_type (void);
|