summaryrefslogtreecommitdiff
path: root/include/m_addcontact.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-10 14:42:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-10 14:42:51 +0000
commit33953cc6a0fab6a91af293c6838f8a46dd7922da (patch)
tree2dbbe718ad42545bde6c9f7672387827c530550a /include/m_addcontact.h
parente190a7fde521bd6af9ea485cc730f854aaf38e11 (diff)
HCONTACT, part 3
git-svn-id: http://svn.miranda-ng.org/main/trunk@8081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_addcontact.h')
-rw-r--r--include/m_addcontact.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/m_addcontact.h b/include/m_addcontact.h
index 383d9e48e8..b4dad7f90c 100644
--- a/include/m_addcontact.h
+++ b/include/m_addcontact.h
@@ -27,7 +27,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
typedef struct{
int handleType; // one of the HANDLE_ constants
- HANDLE handle; // hDbEvent if acs.handleType == HANDLE_EVENT, hContact if acs.handleType == HANDLE_CONTACT, ignored if acs.handleType == HANDLE_SEARCHRESULT
+ union {
+ HANDLE hDbEvent; // hDbEvent if acs.handleType == HANDLE_EVENT
+ HCONTACT hContact; // hContact if acs.handleType == HANDLE_CONTACT
+ // ignored if acs.handleType == HANDLE_SEARCHRESULT
+ };
const char *szProto; // ignored if acs.handleType != HANDLE_SEARCHRESULT
PROTOSEARCHRESULT *psr; // ignored if acs.handleType != HANDLE_SEARCHRESULT
}ADDCONTACTSTRUCT;