diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-02 02:33:04 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-02 02:33:04 +0000 |
commit | 748f3cf4565a694398bca176faa409e0320c8a68 (patch) | |
tree | ee050a5776fcef01d006a9c4e447f3240686014f /include/asterisk/config.h | |
parent | 927870cd7d4ae9cda8f269d1ca36373704999a8c (diff) |
Add attributes to various API calls, to help track down bugs (and remove a deprecated function)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115157 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/config.h')
-rw-r--r-- | include/asterisk/config.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h index da88e21a8..0129af456 100644 --- a/include/asterisk/config.h +++ b/include/asterisk/config.h @@ -182,8 +182,8 @@ int ast_category_exist(const struct ast_config *config, const char *category_nam * that unlike the variables in ast_config, the resulting list of variables * MUST be freed with ast_variables_destroy() as there is no container. */ -struct ast_variable *ast_load_realtime(const char *family, ...); -struct ast_variable *ast_load_realtime_all(const char *family, ...); +struct ast_variable *ast_load_realtime(const char *family, ...) __attribute__((sentinel)); +struct ast_variable *ast_load_realtime_all(const char *family, ...) __attribute__((sentinel)); /*! * \brief Retrieve realtime configuration @@ -194,7 +194,7 @@ struct ast_variable *ast_load_realtime_all(const char *family, ...); * is thus stored inside a taditional ast_config structure rather than * just returning a linked list of variables. */ -struct ast_config *ast_load_realtime_multientry(const char *family, ...); +struct ast_config *ast_load_realtime_multientry(const char *family, ...) __attribute__((sentinel)); /*! * \brief Update realtime configuration @@ -204,7 +204,7 @@ struct ast_config *ast_load_realtime_multientry(const char *family, ...); * This function is used to update a parameter in realtime configuration space. * */ -int ast_update_realtime(const char *family, const char *keyfield, const char *lookup, ...); +int ast_update_realtime(const char *family, const char *keyfield, const char *lookup, ...) __attribute__((sentinel)); /*! * \brief Create realtime configuration @@ -212,7 +212,7 @@ int ast_update_realtime(const char *family, const char *keyfield, const char *lo * This function is used to create a parameter in realtime configuration space. * */ -int ast_store_realtime(const char *family, ...); +int ast_store_realtime(const char *family, ...) __attribute__((sentinel)); /*! * \brief Destroy realtime configuration @@ -223,7 +223,7 @@ int ast_store_realtime(const char *family, ...); * Additional params are used as keys. * */ -int ast_destroy_realtime(const char *family, const char *keyfield, const char *lookup, ...); +int ast_destroy_realtime(const char *family, const char *keyfield, const char *lookup, ...) __attribute__((sentinel)); /*! * \brief Check if realtime engine is configured for family |