mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
change Iface to Interface
Original commit message from CVS: change Iface to Interface
This commit is contained in:
parent
5dadf605a6
commit
a98000dd65
2 changed files with 7 additions and 7 deletions
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include <gst/navigation/navigation.h>
|
#include <gst/navigation/navigation.h>
|
||||||
|
|
||||||
static void gst_navigation_class_init (GstNavigationIface *iface);
|
static void gst_navigation_class_init (GstNavigationInterface *iface);
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_navigation_get_type (void)
|
gst_navigation_get_type (void)
|
||||||
|
@ -34,7 +34,7 @@ gst_navigation_get_type (void)
|
||||||
|
|
||||||
if (!gst_navigation_type) {
|
if (!gst_navigation_type) {
|
||||||
static const GTypeInfo gst_navigation_info = {
|
static const GTypeInfo gst_navigation_info = {
|
||||||
sizeof (GstNavigationIface),
|
sizeof (GstNavigationInterface),
|
||||||
(GBaseInitFunc) gst_navigation_class_init,
|
(GBaseInitFunc) gst_navigation_class_init,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -54,7 +54,7 @@ gst_navigation_get_type (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_navigation_class_init (GstNavigationIface *iface)
|
gst_navigation_class_init (GstNavigationInterface *iface)
|
||||||
{
|
{
|
||||||
/* default virtual functions */
|
/* default virtual functions */
|
||||||
iface->send_event = NULL;
|
iface->send_event = NULL;
|
||||||
|
@ -63,7 +63,7 @@ gst_navigation_class_init (GstNavigationIface *iface)
|
||||||
void
|
void
|
||||||
gst_navigation_send_event (GstNavigation *navigation, GstCaps *caps)
|
gst_navigation_send_event (GstNavigation *navigation, GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstNavigationIface *iface = GST_NAVIGATION_GET_IFACE (navigation);
|
GstNavigationInterface *iface = GST_NAVIGATION_GET_IFACE (navigation);
|
||||||
|
|
||||||
if (iface->send_event) {
|
if (iface->send_event) {
|
||||||
iface->send_event (navigation, caps);
|
iface->send_event (navigation, caps);
|
||||||
|
|
|
@ -34,18 +34,18 @@ G_BEGIN_DECLS
|
||||||
#define GST_IS_NAVIGATION(obj) \
|
#define GST_IS_NAVIGATION(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_NAVIGATION))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_NAVIGATION))
|
||||||
#define GST_NAVIGATION_GET_IFACE(obj) \
|
#define GST_NAVIGATION_GET_IFACE(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_NAVIGATION, GstNavigationIface))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_NAVIGATION, GstNavigationInterface))
|
||||||
|
|
||||||
typedef struct _GstNavigation GstNavigation;
|
typedef struct _GstNavigation GstNavigation;
|
||||||
|
|
||||||
typedef struct _GstNavigationIface {
|
typedef struct _GstNavigationInterface {
|
||||||
GTypeInterface g_iface;
|
GTypeInterface g_iface;
|
||||||
|
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
void (*send_event) (GstNavigation *navigation, GstCaps *caps);
|
void (*send_event) (GstNavigation *navigation, GstCaps *caps);
|
||||||
|
|
||||||
GST_CLASS_PADDING
|
GST_CLASS_PADDING
|
||||||
} GstNavigationIface;
|
} GstNavigationInterface;
|
||||||
|
|
||||||
GType gst_navigation_get_type (void);
|
GType gst_navigation_get_type (void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue