diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-08 10:49:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-08 10:49:29 +0000 |
commit | 017b7066ab8c82880a62f9208e25c36c43c76a03 (patch) | |
tree | ec1c940848a51bfd77b0ac1c87a53d8e99f9ae7a /plugins/Variables/src/contact.h | |
parent | 6cb46f5857189fc42e05981ca2c01bb00e65e59f (diff) |
Variables:
- massive code simplification;
- old shit removed and replaced with lists;
- version bump.
git-svn-id: http://svn.miranda-ng.org/main/trunk@16613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/contact.h')
-rw-r--r-- | plugins/Variables/src/contact.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/plugins/Variables/src/contact.h b/plugins/Variables/src/contact.h index 052e969d2c..f5968d2e03 100644 --- a/plugins/Variables/src/contact.h +++ b/plugins/Variables/src/contact.h @@ -74,20 +74,6 @@ #define PROTOID_HANDLE "_HANDLE_"
-// Note: The hContacts array needs to be freed after use using mir_free
-
-typedef struct {
- int cbSize; // Set this to sizeof(CONTACTSINFO).
- union {
- char *szContact; // String to search for, e.g. last name (can't be NULL).
- WCHAR *wszContact;
- TCHAR *tszContact;
- };
- MCONTACT *hContacts; // (output) Array of contacts found.
- DWORD flags; // Contact details that will be matched with the search
- // string (flags can be combined).
-} CONTACTSINFO;
-
// Possible flags:
#define CI_PROTOID 0x00000001 // The contact in the string is encoded
// in the format <PROTOID:UNIQUEID>, e.g.
@@ -103,17 +89,9 @@ typedef struct { // (contact details).
#define CI_UNIQUEID 0x00000040 // Search unique ids of the contac, e.g.
// UIN.
-#define CI_CNFINFO 0x40000000 // Searches one of the CNF_* flags (set
+#define CI_CNFINFO 0x40000000 // Searches one of the CNF_* flags (set
// flags to CI_CNFINFO|CNF_X), only one
// CNF_ type possible
-#define CI_UNICODE 0x80000000 // tszContact is a unicode string
- // (WCHAR*).
-
-#if defined(UNICODE) || defined(_UNICODE)
-#define CI_TCHAR CI_UNICODE // Strings in structure are TCHAR*.
-#else
-#define CI_TCHAR 0
-#endif
+#define CI_NEEDCOUNT 0x80000000 // returns contacts count
TCHAR *encodeContactToString(MCONTACT hContact);
-MCONTACT decodeContactFromString(TCHAR *tszContact);
|