diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-05 23:32:42 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-05 23:32:42 +0000 |
commit | ec3737e8352a7e366a47323e2d01d3aff005d602 (patch) | |
tree | 76ff7f6c897bdfda963986fdaacae6e6ffc39542 /include | |
parent | cf7c7b4b3d9f4a61b6a6650e1b08aca32d126cb7 (diff) |
const-ify some more APIs, and fix rev 49710 from branch-1.4 in a better way here
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49711 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/astdb.h | 2 | ||||
-rw-r--r-- | include/asterisk/pbx.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/asterisk/astdb.h b/include/asterisk/astdb.h index 828fe9725..887d9af5b 100644 --- a/include/asterisk/astdb.h +++ b/include/asterisk/astdb.h @@ -35,7 +35,7 @@ struct ast_db_entry { int ast_db_get(const char *family, const char *key, char *out, int outlen); -int ast_db_put(const char *family, const char *key, char *value); +int ast_db_put(const char *family, const char *key, const char *value); int ast_db_del(const char *family, const char *key); diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index 0c94ea323..56d50eb56 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -74,8 +74,8 @@ struct ast_custom_function { const char *synopsis; /*!< Short description for "show functions" */ const char *desc; /*!< Help text that explains it all */ const char *syntax; /*!< Syntax description */ - int (*read)(struct ast_channel *, char *, char *, char *, size_t); /*!< Read function, if read is supported */ - int (*write)(struct ast_channel *, char *, char *, const char *); /*!< Write function, if write is supported */ + int (*read)(struct ast_channel *, const char *, char *, char *, size_t); /*!< Read function, if read is supported */ + int (*write)(struct ast_channel *, const char *, char *, const char *); /*!< Write function, if write is supported */ AST_RWLIST_ENTRY(ast_custom_function) acflist; }; @@ -844,7 +844,7 @@ int ast_active_calls(void); * * \return zero on success, non-zero on failure */ -int ast_func_read(struct ast_channel *chan, char *function, char *workspace, size_t len); +int ast_func_read(struct ast_channel *chan, const char *function, char *workspace, size_t len); /*! * \brief executes a write operation on a function @@ -857,7 +857,7 @@ int ast_func_read(struct ast_channel *chan, char *function, char *workspace, siz * * \return zero on success, non-zero on failure */ -int ast_func_write(struct ast_channel *chan, char *function, const char *value); +int ast_func_write(struct ast_channel *chan, const char *function, const char *value); void ast_hint_state_changed(const char *device); |