Commit 8efa9193 authored by Edward Hervey's avatar Edward Hervey 🤘
Browse files

gst-libs/gst/pbutils/install-plugins.*: Add GBoxed GType for...

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.
parent 57fab036
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),
......@@ -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)
{
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment