summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src/proto.h')
-rw-r--r--protocols/Weather/src/proto.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Weather/src/proto.h b/protocols/Weather/src/proto.h
index 3e990931d1..b44c193110 100644
--- a/protocols/Weather/src/proto.h
+++ b/protocols/Weather/src/proto.h
@@ -12,6 +12,21 @@ struct WIDATAITEM
CMStringW Value;
};
+struct WIDATAITEMLIST : public OBJLIST<WIDATAITEM>
+{
+ WIDATAITEMLIST() :
+ OBJLIST<WIDATAITEM>(20)
+ {}
+
+ WIDATAITEM* Find(const wchar_t *pwszName)
+ {
+ for (auto &it : *this)
+ if (!mir_wstrcmp(it->Name, pwszName))
+ return it;
+ return 0;
+ }
+};
+
struct WEATHERINFO
{
MCONTACT hContact;