diff options
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/indications.h | 2 | ||||
-rwxr-xr-x | include/asterisk/logger.h | 10 | ||||
-rwxr-xr-x | include/asterisk/term.h | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/asterisk/indications.h b/include/asterisk/indications.h index 1ff4dacd3..0ee0fac1d 100755 --- a/include/asterisk/indications.h +++ b/include/asterisk/indications.h @@ -65,7 +65,7 @@ extern int ast_register_indication(struct tone_zone *zone, const char *indicatio extern int ast_unregister_indication(struct tone_zone *zone, const char *indication); /* Start a tone-list going */ -int ast_playtones_start(struct ast_channel *chan, int vol, const char* tonelist); +int ast_playtones_start(struct ast_channel *chan, int vol, const char* tonelist, int interruptible); /*! Stop the tones from playing */ void ast_playtones_stop(struct ast_channel *chan); diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 793ed30c7..62eb34f65 100755 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -37,7 +37,7 @@ extern "C" { * ast_log(LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?", "flux capacitor", 10); * where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to. */ -extern void ast_log(int level, char *file, int line, char *function, char *fmt, ...) +extern void ast_log(int level, const char *file, int line, const char *function, const char *fmt, ...) __attribute__ ((format (printf, 5, 6))); //! Send a verbose message (based on verbose level) @@ -48,12 +48,12 @@ extern void ast_log(int level, char *file, int line, char *function, char *fmt, * Note the abscence of a comma after the VERBOSE_PREFIX_3. This is important. * VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined. */ -extern void ast_verbose(char *fmt, ...) +extern void ast_verbose(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); -extern int ast_register_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete)); -extern int ast_unregister_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete)); -extern int ast_verbose_dmesg(void (*verboser)(char *string, int opos, int replacelast, int complete)); +extern int ast_register_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete)); +extern int ast_unregister_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete)); +extern int ast_verbose_dmesg(void (*verboser)(const char *string, int opos, int replacelast, int complete)); #define _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__ #define LOG_DEBUG 0, _A_ diff --git a/include/asterisk/term.h b/include/asterisk/term.h index 1b8f51eec..070547ea8 100755 --- a/include/asterisk/term.h +++ b/include/asterisk/term.h @@ -44,9 +44,9 @@ extern "C" { #define COLOR_WHITE 37 #define COLOR_BRWHITE 37 | 128 -extern char *term_color(char *outbuf, char *inbuf, int fgcolor, int bgcolor, int maxout); +extern char *term_color(char *outbuf, const char *inbuf, int fgcolor, int bgcolor, int maxout); -extern char *term_prompt(char *outbuf, char *inbuf, int maxout); +extern char *term_prompt(char *outbuf, const char *inbuf, int maxout); extern char *term_prep(void); |