diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-07-28 22:50:54 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-07-28 22:50:54 +0000 |
commit | 450db95711d187c6ccc052d4cbcd78fbc2ce40bd (patch) | |
tree | 5f749b5e10f9b615d385efd401bd3ef745840c9f /include/asterisk/channel.h | |
parent | d6246e579fe573bff336e4d8de3787273b3a4721 (diff) |
add macros for the pure and const attributes to compiler.h, in case they ever
need to be handled differently for a specific compiler
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 1af18717e..f60738cc3 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -116,6 +116,7 @@ extern "C" { #include "asterisk/utils.h" #include "asterisk/linkedlists.h" #include "asterisk/stringfields.h" +#include "asterisk/compiler.h" #define AST_MAX_FDS 8 @@ -955,14 +956,14 @@ int ast_channel_masquerade(struct ast_channel *original, struct ast_channel *clo * Give a name to a cause code * Returns the text form of the binary cause code given */ -const char *ast_cause2str(int state) __attribute__ ((pure)); +const char *ast_cause2str(int state) attribute_pure; /*! Convert the string form of a cause code to a number */ /*! * \param name string form of the cause * Returns the cause code */ -int ast_str2cause(const char *name) __attribute__ ((pure)); +int ast_str2cause(const char *name) attribute_pure; /*! Gives the string form of a given channel state */ /*! @@ -979,7 +980,7 @@ char *ast_state2str(int state); * See above * Returns the text form of the binary transfer capbility */ -char *ast_transfercapability2str(int transfercapability) __attribute__ ((const)); +char *ast_transfercapability2str(int transfercapability) attribute_const; /* Options: Some low-level drivers may implement "options" allowing fine tuning of the low level channel. See frame.h for options. Note that many channel drivers may support |