diff options
Diffstat (limited to 'gst/rtsp/rtspconnection.h')
-rw-r--r-- | gst/rtsp/rtspconnection.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gst/rtsp/rtspconnection.h b/gst/rtsp/rtspconnection.h index aeb85375..720c1471 100644 --- a/gst/rtsp/rtspconnection.h +++ b/gst/rtsp/rtspconnection.h @@ -24,33 +24,30 @@ #include <rtspdefs.h> #include <rtspurl.h> -#include <rtspstream.h> #include <rtspmessage.h> G_BEGIN_DECLS typedef struct _RTSPConnection { - gint fd; + gint fd; /* our socket */ - gint cseq; - gchar session_id[512]; - - RTSPState state; - - int num_streams; - RTSPStream **streams; + gint cseq; /* sequence number */ + gchar session_id[512]; /* session id */ + RTSPState state; /* state of the connection */ } RTSPConnection; +/* opening/closing a connection */ RTSPResult rtsp_connection_open (RTSPUrl *url, RTSPConnection **conn); RTSPResult rtsp_connection_create (gint fd, RTSPConnection **conn); +RTSPResult rtsp_connection_close (RTSPConnection *conn); +RTSPResult rtsp_connection_free (RTSPConnection *conn); +/* sending/receiving messages */ RTSPResult rtsp_connection_send (RTSPConnection *conn, RTSPMessage *message); RTSPResult rtsp_connection_receive (RTSPConnection *conn, RTSPMessage *message); -RTSPResult rtsp_connection_close (RTSPConnection *conn); - G_END_DECLS #endif /* __RTSP_CONNECTION_H__ */ |