diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-21 17:52:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-21 17:52:29 +0000 |
commit | 11354effc08a8d1b1b0fc95b5c473256f33c8ec3 (patch) | |
tree | 0b404c3b617605c13d02a3a0bedc06dbd0b1fb31 /include/m_protocols.h | |
parent | 45216fbba8af5d8e9d4173808741df52fb5ded11 (diff) |
- MS_PROTO_ISPROTOCOLLOADED now switched back to protocols instead of accounts;
- calls of MS_PROTO_ISPROTOCOLLOADED replaced with ProtoGetAccount() wherever possible
git-svn-id: http://svn.miranda-ng.org/main/trunk@11558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_protocols.h')
-rw-r--r-- | include/m_protocols.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/m_protocols.h b/include/m_protocols.h index fc21f8d9a4..a437e5aa5f 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -217,12 +217,16 @@ typedef struct { #define MS_PROTO_ENUMPROTOS "Proto/EnumProtos"
// determines if a protocol module is loaded or not
-// wParam = 0
+// wParam = 0 (unused)
// lParam = (LPARAM)(const char*)szName
-// Returns a pointer to the PROTOACCOUNT if the protocol is loaded, or
+// Returns a pointer to the PROTOCOLDESCRIPTOR if the protocol is loaded, or
// NULL if it isn't.
#define MS_PROTO_ISPROTOCOLLOADED "Proto/IsProtocolLoaded"
+__forceinline PROTOCOLDESCRIPTOR* IsProtocolLoaded(const char *szProto)
+{ return (PROTOCOLDESCRIPTOR*)CallService(MS_PROTO_ISPROTOCOLLOADED, 0, (LPARAM)szProto);
+}
+
// gets the network-level protocol associated with a contact
// wParam = (MCONTACT)hContact
// lParam = 0
|