mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-19 04:35:20 +00:00
added g_[s]list_delete_link
Original commit message from CVS: added g_[s]list_delete_link
This commit is contained in:
parent
515b9b770b
commit
7be0cd55de
2 changed files with 24 additions and 0 deletions
|
@ -5,6 +5,24 @@
|
||||||
#include "gobject2gtk.h"
|
#include "gobject2gtk.h"
|
||||||
|
|
||||||
|
|
||||||
|
// list functions not in glib 1.2
|
||||||
|
GList *
|
||||||
|
g_list_delete_link (GList *list, GList *llink)
|
||||||
|
{
|
||||||
|
GList *temp = g_list_remove_link(list, llink);
|
||||||
|
g_list_free(llink);
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
|
||||||
|
GSList *
|
||||||
|
g_slist_delete_link (GSList *list, GSList *llink)
|
||||||
|
{
|
||||||
|
GSList *temp = g_slist_remove_link(list, llink);
|
||||||
|
g_slist_free(llink);
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// GObject dummy implementation
|
// GObject dummy implementation
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -14,6 +14,12 @@
|
||||||
#define G_PI_4 0.78539816339744830962E0
|
#define G_PI_4 0.78539816339744830962E0
|
||||||
#define G_SQRT2 1.4142135623730950488E0
|
#define G_SQRT2 1.4142135623730950488E0
|
||||||
|
|
||||||
|
// lists functions not in glib 1.2
|
||||||
|
GList *g_list_delete_link (GList *list, GList *llink);
|
||||||
|
GSList *g_slist_delete_link (GSList *list, GSList *llink);
|
||||||
|
|
||||||
|
|
||||||
|
// GObject
|
||||||
typedef struct _GObject GObject;
|
typedef struct _GObject GObject;
|
||||||
typedef struct _GObjectClass GObjectClass;
|
typedef struct _GObjectClass GObjectClass;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue