Add missing monitor file
authorMark Spencer <markster@digium.com>
Tue, 25 Mar 2003 19:51:24 +0000 (19:51 +0000)
committerMark Spencer <markster@digium.com>
Tue, 25 Mar 2003 19:51:24 +0000 (19:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@687 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/monitor.h [new file with mode: 0755]

diff --git a/include/asterisk/monitor.h b/include/asterisk/monitor.h
new file mode 100755 (executable)
index 0000000..206b3b5
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef _MONITOR_H
+#define _MONITOR_H
+
+#include <stdio.h>
+
+#include <asterisk/channel.h>
+
+struct ast_channel;
+
+//! Responsible for channel monitoring data
+struct ast_channel_monitor
+{
+       struct ast_filestream *read_stream;
+       struct ast_filestream *write_stream;
+       char read_filename[ FILENAME_MAX ];
+       char write_filename[ FILENAME_MAX ];
+       char filename_base[ FILENAME_MAX ];
+       char *format;
+       int (*stop)( struct ast_channel *chan, int need_lock);
+};
+
+/* Start monitoring a channel */
+int ast_monitor_start( struct ast_channel *chan, const char *format_spec,
+                                               const char *fname_base, int need_lock );
+
+/* Stop monitoring a channel */
+int ast_monitor_stop( struct ast_channel *chan, int need_lock);
+
+/* Change monitoring filename of a channel */
+int ast_monitor_change_fname(  struct ast_channel *chan,
+                                                               const char *fname_base, int need_lock );
+
+#endif /* _MONITOR_H */