]> git.ipfire.org Git - thirdparty/shairport-sync.git/blob - rtsp.h
Update check_classic_mac_basic.yml
[thirdparty/shairport-sync.git] / rtsp.h
1 #ifndef _RTSP_H
2 #define _RTSP_H
3
4 #include "player.h"
5
6 extern pthread_rwlock_t principal_conn_lock;
7 extern rtsp_conn_info *principal_conn;
8 extern rtsp_conn_info **conns;
9
10 void *rtsp_listen_loop(__attribute((unused)) void *arg);
11
12 void lock_player();
13 void unlock_player();
14
15 // this can be used to forcibly stop a play session
16 int get_play_lock(rtsp_conn_info *conn, int allow_session_interruption);
17
18 // initialise and completely delete the metadata stuff
19
20 void metadata_init(void);
21 void metadata_stop(void);
22
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
28
29 int send_ssnc_metadata(uint32_t code, char *data, uint32_t length, int block);
30
31 #endif // _RTSP_H