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:
Edward Hervey 2008-01-11 16:18:10 +00:00
parent 57fab036b1
commit 8efa9193a3
3 changed files with 39 additions and 1 deletions

View file

@ -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>
* ext/theora/theoradec.c: (gst_theora_dec_class_init),

View file

@ -451,6 +451,30 @@ gst_install_plugins_context_free (GstInstallPluginsContext * 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 *
gst_install_plugins_get_helper (void)
{

View file

@ -21,7 +21,7 @@
#ifndef __GST_PB_UTILS_INSTALL_PLUGINS_H__
#define __GST_PB_UTILS_INSTALL_PLUGINS_H__
#include <glib.h>
#include <glib-object.h>
G_BEGIN_DECLS
@ -96,6 +96,9 @@ typedef enum {
*
* Since: 0.10.12
*/
#define GST_TYPE_INSTALL_PLUGINS_CONTEXT (gst_install_plugins_context_get_type())
typedef struct _GstInstallPluginsContext GstInstallPluginsContext;
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,
guint xid);
GType gst_install_plugins_context_get_type (void);
/**
* GstInstallPluginsResultFunc:
* @result: whether the installation of the requested plugins succeeded or not