[asterisk-commits] rmudgett: trunk r358263 - /trunk/include/asterisk/channel.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 5 15:55:32 CST 2012
Author: rmudgett
Date: Mon Mar 5 15:55:28 2012
New Revision: 358263
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=358263
Log:
Make usage of DECLARE_STRINGFIELD_SETTERS_FOR() not look so odd.
Modified:
trunk/include/asterisk/channel.h
Modified: trunk/include/asterisk/channel.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=358263&r1=358262&r2=358263
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Mon Mar 5 15:55:28 2012
@@ -2145,7 +2145,7 @@
*
* \param capabilities to pick best codec out of
* \param result stucture to store the best codec in.
- * \retval on success, pointer to result structure
+ * \retval on success, pointer to result structure
* \retval on failure, NULL
*/
struct ast_format *ast_best_codec(struct ast_format_cap *cap, struct ast_format *result);
@@ -3656,23 +3656,24 @@
/*! \brief Set the channel name */
void ast_channel_name_set(struct ast_channel *chan, const char *name);
-#define DECLARE_STRINGFIELD_SETTERS_FOR(field) void ast_channel_##field##_set(struct ast_channel *chan, const char *field); \
-void ast_channel_##field##_build_va(struct ast_channel *chan, const char *fmt, va_list ap) __attribute__((format(printf, 2, 0))); \
-void ast_channel_##field##_build(struct ast_channel *chan, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
-
-DECLARE_STRINGFIELD_SETTERS_FOR(name)
-DECLARE_STRINGFIELD_SETTERS_FOR(language)
-DECLARE_STRINGFIELD_SETTERS_FOR(musicclass)
-DECLARE_STRINGFIELD_SETTERS_FOR(accountcode)
-DECLARE_STRINGFIELD_SETTERS_FOR(peeraccount)
-DECLARE_STRINGFIELD_SETTERS_FOR(userfield)
-DECLARE_STRINGFIELD_SETTERS_FOR(call_forward)
-DECLARE_STRINGFIELD_SETTERS_FOR(uniqueid)
-DECLARE_STRINGFIELD_SETTERS_FOR(linkedid)
-DECLARE_STRINGFIELD_SETTERS_FOR(parkinglot)
-DECLARE_STRINGFIELD_SETTERS_FOR(hangupsource)
-DECLARE_STRINGFIELD_SETTERS_FOR(dialcontext)
-
+#define DECLARE_STRINGFIELD_SETTERS_FOR(field) \
+ void ast_channel_##field##_set(struct ast_channel *chan, const char *field); \
+ void ast_channel_##field##_build_va(struct ast_channel *chan, const char *fmt, va_list ap) __attribute__((format(printf, 2, 0))); \
+ void ast_channel_##field##_build(struct ast_channel *chan, const char *fmt, ...) __attribute__((format(printf, 2, 3)))
+
+DECLARE_STRINGFIELD_SETTERS_FOR(name);
+DECLARE_STRINGFIELD_SETTERS_FOR(language);
+DECLARE_STRINGFIELD_SETTERS_FOR(musicclass);
+DECLARE_STRINGFIELD_SETTERS_FOR(accountcode);
+DECLARE_STRINGFIELD_SETTERS_FOR(peeraccount);
+DECLARE_STRINGFIELD_SETTERS_FOR(userfield);
+DECLARE_STRINGFIELD_SETTERS_FOR(call_forward);
+DECLARE_STRINGFIELD_SETTERS_FOR(uniqueid);
+DECLARE_STRINGFIELD_SETTERS_FOR(linkedid);
+DECLARE_STRINGFIELD_SETTERS_FOR(parkinglot);
+DECLARE_STRINGFIELD_SETTERS_FOR(hangupsource);
+DECLARE_STRINGFIELD_SETTERS_FOR(dialcontext);
+
const char *ast_channel_name(const struct ast_channel *chan);
const char *ast_channel_language(const struct ast_channel *chan);
const char *ast_channel_musicclass(const struct ast_channel *chan);
More information about the asterisk-commits
mailing list