diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-03 10:56:51 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-03 10:56:51 +0200 |
commit | 3a53257032a0df8aa5f3b31f14a8e6f4e1f07595 (patch) | |
tree | 23d16979c6ee884220afbe148b32981338f7f690 /src/plugins/irc/irc-channel.h | |
parent | 2b1d7df86c745367cfdf4de13629790197b523b3 (diff) | |
download | weechat-3a53257032a0df8aa5f3b31f14a8e6f4e1f07595.zip |
Add "const" keyword for some "char *" function arguments (core and plugins API)
Diffstat (limited to 'src/plugins/irc/irc-channel.h')
-rw-r--r-- | src/plugins/irc/irc-channel.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/irc/irc-channel.h b/src/plugins/irc/irc-channel.h index 7aa4ca493..ac8a268f3 100644 --- a/src/plugins/irc/irc-channel.h +++ b/src/plugins/irc/irc-channel.h @@ -56,22 +56,22 @@ struct t_irc_channel extern struct t_irc_channel *irc_channel_new (struct t_irc_server *server, int channel_type, - char *channel_name, + const char *channel_name, int switch_to_channel); extern void irc_channel_free (struct t_irc_server *server, struct t_irc_channel *channel); extern void irc_channel_free_all (struct t_irc_server *server); extern struct t_irc_channel *irc_channel_search (struct t_irc_server *server, - char *channel_name); + const char *channel_name); extern struct t_irc_channel *irc_channel_search_any (struct t_irc_server *server, - char *channel_name); + const char *channel_name); extern struct t_irc_channel *irc_channel_search_any_without_buffer (struct t_irc_server *server, - char *channel_name); -extern int irc_channel_is_channel (char *string); + const char *channel_name); +extern int irc_channel_is_channel (const char *string); extern void irc_channel_remove_away (struct t_irc_channel *channel); extern void irc_channel_check_away (struct t_irc_server *server, struct t_irc_channel *channel, int force); -extern void irc_channel_set_away (struct t_irc_channel *channel, char *nick, +extern void irc_channel_set_away (struct t_irc_channel *channel, const char *nick, int is_away); extern int irc_channel_get_notify_level (struct t_irc_server *server, struct t_irc_channel *channel); @@ -79,7 +79,7 @@ extern void irc_channel_set_notify_level (struct t_irc_server *server, struct t_irc_channel *channel, int notify); extern void irc_channel_add_nick_speaking (struct t_irc_channel *channel, - char *nick); + const char *nick); extern void irc_channel_print_log (struct t_irc_channel *channel); #endif /* irc-channel.h */ |