]>
Commit | Line | Data |
---|---|---|
a2fb5d21 JL |
1 | #ifndef _RTSP_H |
2 | #define _RTSP_H | |
3 | ||
1e07e1e0 MB |
4 | #include "player.h" |
5 | ||
847ad7fb | 6 | extern pthread_rwlock_t principal_conn_lock; |
986f9587 | 7 | extern rtsp_conn_info *principal_conn; |
f7717745 | 8 | extern rtsp_conn_info **conns; |
1e07e1e0 | 9 | |
3a02b79a MB |
10 | void *rtsp_listen_loop(__attribute((unused)) void *arg); |
11 | ||
6f7dc3d6 MB |
12 | void lock_player(); |
13 | void unlock_player(); | |
f1d45034 | 14 | |
b81fb39a MB |
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 | ||
f1d45034 | 18 | // initialise and completely delete the metadata stuff |
4986f065 MB |
19 | |
20 | void metadata_init(void); | |
f1d45034 | 21 | void metadata_stop(void); |
4986f065 | 22 | |
0edf91ce MB |
23 | // sends metadata out to the metadata pipe, if enabled. |
24 | // It is sent with the type 'ssnc' the given code, data and length | |
3cb86f40 MB |
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. | |
0edf91ce MB |
27 | // nothing is done automatically |
28 | ||
87a0475c | 29 | int send_ssnc_metadata(uint32_t code, char *data, uint32_t length, int block); |
0edf91ce | 30 | |
a2fb5d21 | 31 | #endif // _RTSP_H |