summaryrefslogtreecommitdiff
path: root/include/m_utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-22 13:04:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-22 13:04:15 +0000
commit7fb6cc1034f220d789b3889e069a01841f9efcae (patch)
treea9769b68251bced5552291dd5c4f551f1ad124e6 /include/m_utils.h
parenteacd84efa1666b3afc4c98e632fa3bb4289a43c2 (diff)
ISO code added to the country list
git-svn-id: http://svn.miranda-ng.org/main/trunk@2042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_utils.h')
-rw-r--r--include/m_utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/m_utils.h b/include/m_utils.h
index 14b2c0d62f..bfc5622c3a 100644
--- a/include/m_utils.h
+++ b/include/m_utils.h
@@ -109,6 +109,14 @@ or NULL on failure
*/
#define MS_UTILS_GETCOUNTRYBYNUMBER "Utils/GetCountryByNumber"
+/* Gets the name of a country given its ISO code v0.1.2.0+
+wParam = (char*)ISOcode
+lParam = 0
+Returns a pointer to the string containing the country name on success,
+or NULL on failure
+*/
+#define MS_UTILS_GETCOUNTRYBYISOCODE "Utils/GetCountryByISOCode"
+
/* Gets the full list of country IDs v0.1.2.0+
wParam = (WPARAM)(int*)piCount
lParam = (LPARAM)(struct CountryListEntry**)ppList
@@ -120,6 +128,7 @@ quicker to search numbers out of order than it is to search names out of order
struct CountryListEntry {
int id;
const char *szName;
+ char ISOcode[3];
};
#define MS_UTILS_GETCOUNTRYLIST "Utils/GetCountryList"