summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-nick.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-27 09:47:46 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-27 09:47:46 +0200
commitdf80aa5fc92bd5481fc8099a63dad4093405f2f4 (patch)
tree49388757d0b7d625e8dc25f484792c65d913d594 /src/plugins/irc/irc-nick.c
parente767346a193f0eb53a9324a04a75080d359b1951 (diff)
downloadweechat-df80aa5fc92bd5481fc8099a63dad4093405f2f4.zip
api: allow update for some variables of hdata, add new functions hdata_update and hdata_set
Diffstat (limited to 'src/plugins/irc/irc-nick.c')
-rw-r--r--src/plugins/irc/irc-nick.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c
index 00b7bb24e..0ceddf3ba 100644
--- a/src/plugins/irc/irc-nick.c
+++ b/src/plugins/irc/irc-nick.c
@@ -1031,17 +1031,18 @@ irc_nick_hdata_nick_cb (void *data, const char *hdata_name)
/* make C compiler happy */
(void) data;
- hdata = weechat_hdata_new (hdata_name, "prev_nick", "next_nick");
+ hdata = weechat_hdata_new (hdata_name, "prev_nick", "next_nick",
+ 0, NULL, NULL);
if (hdata)
{
- WEECHAT_HDATA_VAR(struct t_irc_nick, name, STRING, NULL, NULL);
- WEECHAT_HDATA_VAR(struct t_irc_nick, host, STRING, NULL, NULL);
- WEECHAT_HDATA_VAR(struct t_irc_nick, prefixes, STRING, NULL, NULL);
- WEECHAT_HDATA_VAR(struct t_irc_nick, prefix, STRING, NULL, NULL);
- WEECHAT_HDATA_VAR(struct t_irc_nick, away, INTEGER, NULL, NULL);
- WEECHAT_HDATA_VAR(struct t_irc_nick, color, STRING, NULL, NULL);
- WEECHAT_HDATA_VAR(struct t_irc_nick, prev_nick, POINTER, NULL, hdata_name);
- WEECHAT_HDATA_VAR(struct t_irc_nick, next_nick, POINTER, NULL, hdata_name);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, name, STRING, 0, NULL, NULL);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, host, STRING, 0, NULL, NULL);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, prefixes, STRING, 0, NULL, NULL);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, prefix, STRING, 0, NULL, NULL);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, away, INTEGER, 0, NULL, NULL);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, color, STRING, 0, NULL, NULL);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, prev_nick, POINTER, 0, NULL, hdata_name);
+ WEECHAT_HDATA_VAR(struct t_irc_nick, next_nick, POINTER, 0, NULL, hdata_name);
}
return hdata;
}