aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/monitor.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-25 19:51:24 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-25 19:51:24 +0000
commit18e59eea4122770c018c770213abc1c053ffdd0a (patch)
tree1cb765313aacf98dd3795597d064526ad16a4294 /include/asterisk/monitor.h
parentbda20d3d74b5face92e4609b75276b8f946d599a (diff)
Add missing monitor file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@687 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/monitor.h')
-rwxr-xr-xinclude/asterisk/monitor.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/asterisk/monitor.h b/include/asterisk/monitor.h
new file mode 100755
index 000000000..206b3b557
--- /dev/null
+++ b/include/asterisk/monitor.h
@@ -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 */