diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2009-06-15 16:07:23 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2009-06-15 16:07:23 +0000 |
commit | 6c5987811c7c3decff795e46f5b371fa931475fe (patch) | |
tree | 890da581f24a2e3e5d3947988627e6a294bed01d /include/asterisk/monitor.h | |
parent | d224f78dd552131c387d1ccb8dae33d7883ea3a6 (diff) |
Redesigned 'optional API' support.
This patch provides a new implementation of the optional API support defined
in asterisk/optional_api.h; this new version provides solves compatibility
issues with the use of linker version scripts for suppressing global symbols.
In addition, there is now a functional (and tested!) implementation for Mac OS/X,
so module writers no longer need to use special tests before calling optional
API functions. All future implementations must provide these same semantics,
so that module writers can rely on them.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/monitor.h')
-rw-r--r-- | include/asterisk/monitor.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/include/asterisk/monitor.h b/include/asterisk/monitor.h index 4014939bb..e29622ea8 100644 --- a/include/asterisk/monitor.h +++ b/include/asterisk/monitor.h @@ -51,27 +51,34 @@ struct ast_channel_monitor { }; /* Start monitoring a channel */ -AST_OPTIONAL_API(int, ast_monitor_start, (struct ast_channel *chan, const char - *format_spec, const char *fname_base, int need_lock, int stream_action), - { return -1; }); +AST_OPTIONAL_API(int, ast_monitor_start, + (struct ast_channel *chan, const char *format_spec, + const char *fname_base, int need_lock, int stream_action), + { return -1; }); /* Stop monitoring a channel */ -AST_OPTIONAL_API(int, ast_monitor_stop, (struct ast_channel *chan, int - need_lock), { return -1; }); +AST_OPTIONAL_API(int, ast_monitor_stop, + (struct ast_channel *chan, int need_lock), + { return -1; }); /* Change monitoring filename of a channel */ -AST_OPTIONAL_API(int, ast_monitor_change_fname, (struct ast_channel *chan, - const char *fname_base, int need_lock), { return -1; }); +AST_OPTIONAL_API(int, ast_monitor_change_fname, + (struct ast_channel *chan, const char *fname_base, + int need_lock), + { return -1; }); -AST_OPTIONAL_API(void, ast_monitor_setjoinfiles, (struct ast_channel *chan, - int turnon), { return; }); +AST_OPTIONAL_API(void, ast_monitor_setjoinfiles, + (struct ast_channel *chan, int turnon), + { return; }); /* Pause monitoring of a channel */ -AST_OPTIONAL_API(int, ast_monitor_pause, (struct ast_channel *chan), - { return -1; }); +AST_OPTIONAL_API(int, ast_monitor_pause, + (struct ast_channel *chan), + { return -1; }); /* Unpause monitoring of a channel */ -AST_OPTIONAL_API(int, ast_monitor_unpause, (struct ast_channel *chan), - { return -1; }); +AST_OPTIONAL_API(int, ast_monitor_unpause, + (struct ast_channel *chan), + { return -1; }); #endif /* _ASTERISK_MONITOR_H */ |