mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
context: defing a GType for the context
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710018
This commit is contained in:
parent
e756324490
commit
d443f8546b
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue