diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-21 14:52:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-21 14:52:52 +0000 |
commit | 6e06694f2fdda33eb3237fe1a3aa7f6df94ad61c (patch) | |
tree | b63b77d66f136386786a80d6b30ce601a8ee7a2f /include | |
parent | 3986b91d0e344e11b5953657fa1fb3e85d6da869 (diff) |
- more effective binary search of MUUIDs;
- fix to prevent a loop creation if one forgets about UNSET_UID;
git-svn-id: http://svn.miranda-ng.org/main/trunk@15926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/newpluginapi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index e02d454caf..1226df7ccc 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -49,6 +49,13 @@ struct MUUID unsigned char d[8];
};
+__forceinline bool operator==(const MUUID &p1, const MUUID &p2)
+{ return memcmp(&p1, &p2, sizeof(MUUID)) == 0;
+}
+__forceinline bool operator!=(const MUUID &p1, const MUUID &p2)
+{ return memcmp(&p1, &p2, sizeof(MUUID)) != 0;
+}
+
MIR_APP_DLL(int) GetPluginLangId(const MUUID &uuid, int hLangpack);
MIR_APP_DLL(int) IsPluginLoaded(const MUUID &uuid);
|