context: defing a GType for the context

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710018
This commit is contained in:
Wim Taymans 2013-11-12 11:21:55 +01:00
parent e756324490
commit d443f8546b
2 changed files with 5 additions and 1 deletions

View file

@ -26,10 +26,12 @@
#include "rtsp-context.h"
G_DEFINE_POINTER_TYPE (GstRTSPContext, gst_rtsp_context);
static GPrivate current_context;
/**
* gst_rtsp_context_get_current: (skip)
* gst_rtsp_context_get_current:
*
* Get the current #GstRTSPContext. This object is retrieved from the
* current thread that is handling the request for a client.

View file

@ -71,6 +71,8 @@ struct _GstRTSPContext {
GstRTSPMessage *response;
};
GType gst_rtsp_context_get_type (void);
GstRTSPContext * gst_rtsp_context_get_current (void);
void gst_rtsp_context_push_current (GstRTSPContext * ctx);
void gst_rtsp_context_pop_current (GstRTSPContext * ctx);