6 extern pthread_rwlock_t principal_conn_lock
;
7 extern rtsp_conn_info
*principal_conn
;
8 extern rtsp_conn_info
**conns
;
10 void *rtsp_listen_loop(__attribute((unused
)) void *arg
);
15 // this can be used to forcibly stop a play session
16 int get_play_lock(rtsp_conn_info
*conn
, int allow_session_interruption
);
18 // initialise and completely delete the metadata stuff
20 void metadata_init(void);
21 void metadata_stop(void);
23 // sends metadata out to the metadata pipe, if enabled.
24 // It is sent with the type 'ssnc' the given code, data and length
25 // The handler at the other end must know what to do with the data
26 // e.g. if it's malloced, to free it, etc.
27 // nothing is done automatically
29 int send_ssnc_metadata(uint32_t code
, char *data
, uint32_t length
, int block
);