mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
gst-libs/gst/pbutils/install-plugins.*: Add GBoxed GType for GstInstallPluginsContext, this eases the wrapping for bi...
Original commit message from CVS: * gst-libs/gst/pbutils/install-plugins.c: (gst_install_plugins_context_copy), (gst_install_plugins_context_get_type): * gst-libs/gst/pbutils/install-plugins.h: Add GBoxed GType for GstInstallPluginsContext, this eases the wrapping for bindings.
This commit is contained in:
parent
57fab036b1
commit
8efa9193a3
3 changed files with 39 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2008-01-11 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst-libs/gst/pbutils/install-plugins.c:
|
||||||
|
(gst_install_plugins_context_copy),
|
||||||
|
(gst_install_plugins_context_get_type):
|
||||||
|
* gst-libs/gst/pbutils/install-plugins.h:
|
||||||
|
Add GBoxed GType for GstInstallPluginsContext, this eases the wrapping
|
||||||
|
for bindings.
|
||||||
|
|
||||||
2008-01-11 Michael Smith <msmith@fluendo.com>
|
2008-01-11 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* ext/theora/theoradec.c: (gst_theora_dec_class_init),
|
* ext/theora/theoradec.c: (gst_theora_dec_class_init),
|
||||||
|
|
|
@ -451,6 +451,30 @@ gst_install_plugins_context_free (GstInstallPluginsContext * ctx)
|
||||||
g_free (ctx);
|
g_free (ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GstInstallPluginsContext *
|
||||||
|
gst_install_plugins_context_copy (GstInstallPluginsContext * ctx)
|
||||||
|
{
|
||||||
|
GstInstallPluginsContext *ret;
|
||||||
|
|
||||||
|
ret = gst_install_plugins_context_new ();
|
||||||
|
ret->xid = ctx->xid;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
GType
|
||||||
|
gst_install_plugins_context_get_type (void)
|
||||||
|
{
|
||||||
|
static GType gst_ipc_type = 0;
|
||||||
|
|
||||||
|
if (G_UNLIKELY (gst_ipc_type == 0)) {
|
||||||
|
gst_ipc_type = g_boxed_type_register_static ("GstInstallPluginsContext",
|
||||||
|
(GBoxedCopyFunc) gst_install_plugins_context_copy,
|
||||||
|
(GBoxedFreeFunc) gst_install_plugins_context_free);
|
||||||
|
}
|
||||||
|
return gst_ipc_type;
|
||||||
|
}
|
||||||
|
|
||||||
static const gchar *
|
static const gchar *
|
||||||
gst_install_plugins_get_helper (void)
|
gst_install_plugins_get_helper (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#ifndef __GST_PB_UTILS_INSTALL_PLUGINS_H__
|
#ifndef __GST_PB_UTILS_INSTALL_PLUGINS_H__
|
||||||
#define __GST_PB_UTILS_INSTALL_PLUGINS_H__
|
#define __GST_PB_UTILS_INSTALL_PLUGINS_H__
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib-object.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -96,6 +96,9 @@ typedef enum {
|
||||||
*
|
*
|
||||||
* Since: 0.10.12
|
* Since: 0.10.12
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define GST_TYPE_INSTALL_PLUGINS_CONTEXT (gst_install_plugins_context_get_type())
|
||||||
|
|
||||||
typedef struct _GstInstallPluginsContext GstInstallPluginsContext;
|
typedef struct _GstInstallPluginsContext GstInstallPluginsContext;
|
||||||
|
|
||||||
GstInstallPluginsContext * gst_install_plugins_context_new (void);
|
GstInstallPluginsContext * gst_install_plugins_context_new (void);
|
||||||
|
@ -105,6 +108,8 @@ void gst_install_plugins_context_free (GstInstallPluginsContext * ctx);
|
||||||
void gst_install_plugins_context_set_xid (GstInstallPluginsContext * ctx,
|
void gst_install_plugins_context_set_xid (GstInstallPluginsContext * ctx,
|
||||||
guint xid);
|
guint xid);
|
||||||
|
|
||||||
|
GType gst_install_plugins_context_get_type (void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstInstallPluginsResultFunc:
|
* GstInstallPluginsResultFunc:
|
||||||
* @result: whether the installation of the requested plugins succeeded or not
|
* @result: whether the installation of the requested plugins succeeded or not
|
||||||
|
|
Loading…
Reference in a new issue