GstRTSPContext

GstRTSPContext — A client request context

Synopsis

struct              GstRTSPContext;
GstRTSPContext *    gst_rtsp_context_get_current        (void);
void                gst_rtsp_context_push_current       (GstRTSPContext *ctx);
void                gst_rtsp_context_pop_current        (GstRTSPContext *ctx);

Description

Last reviewed on 2013-07-11 (1.0.0)

Details

struct GstRTSPContext

struct GstRTSPContext {
  GstRTSPServer       *server;
  GstRTSPConnection   *conn;
  GstRTSPClient       *client;
  GstRTSPMessage      *request;
  GstRTSPUrl          *uri;
  GstRTSPMethod        method;
  GstRTSPAuth         *auth;
  GstRTSPToken        *token;
  GstRTSPSession      *session;
  GstRTSPSessionMedia *sessmedia;
  GstRTSPMediaFactory *factory;
  GstRTSPMedia        *media;
  GstRTSPStream       *stream;
  GstRTSPMessage      *response;
};

Information passed around containing the context of a request.

GstRTSPServer *server;

the server

GstRTSPConnection *conn;

the connection

GstRTSPClient *client;

the client

GstRTSPMessage *request;

the complete request

GstRTSPUrl *uri;

the complete url parsed from request

GstRTSPMethod method;

the parsed method of uri

GstRTSPAuth *auth;

the current auth object or NULL

GstRTSPToken *token;

authorisation token

GstRTSPSession *session;

the session, can be NULL

GstRTSPSessionMedia *sessmedia;

the session media for the url can be NULL

GstRTSPMediaFactory *factory;

the media factory for the url, can be NULL

GstRTSPMedia *media;

the media for the url can be NULL

GstRTSPStream *stream;

the stream for the url can be NULL

GstRTSPMessage *response;

the response

gst_rtsp_context_get_current ()

GstRTSPContext *    gst_rtsp_context_get_current        (void);

Get the current GstRTSPContext. This object is retrieved from the current thread that is handling the request for a client.

Returns :

a GstRTSPContext

gst_rtsp_context_push_current ()

void                gst_rtsp_context_push_current       (GstRTSPContext *ctx);

Pushes ctx onto the context stack. The current context can then be received using gst_rtsp_context_get_current().

ctx :

a #GstRTSPContext

gst_rtsp_context_pop_current ()

void                gst_rtsp_context_pop_current        (GstRTSPContext *ctx);

Pops ctx off the context stack (verifying that ctx is on the top of the stack).

ctx :

a GstRTSPContext

See Also

GstRTSPServer, GstRTSPClient