Add missing monitor file
[asterisk/asterisk.git] / include / asterisk / monitor.h
1 #ifndef _MONITOR_H
2 #define _MONITOR_H
3
4 #include <stdio.h>
5
6 #include <asterisk/channel.h>
7
8 struct ast_channel;
9
10 //! Responsible for channel monitoring data
11 struct ast_channel_monitor
12 {
13         struct ast_filestream *read_stream;
14         struct ast_filestream *write_stream;
15         char read_filename[ FILENAME_MAX ];
16         char write_filename[ FILENAME_MAX ];
17         char filename_base[ FILENAME_MAX ];
18         char *format;
19         int (*stop)( struct ast_channel *chan, int need_lock);
20 };
21
22 /* Start monitoring a channel */
23 int ast_monitor_start(  struct ast_channel *chan, const char *format_spec,
24                                                 const char *fname_base, int need_lock );
25
26 /* Stop monitoring a channel */
27 int ast_monitor_stop( struct ast_channel *chan, int need_lock);
28
29 /* Change monitoring filename of a channel */
30 int ast_monitor_change_fname(   struct ast_channel *chan,
31                                                                 const char *fname_base, int need_lock );
32
33 #endif /* _MONITOR_H */