diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-16 11:48:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-16 11:48:41 +0000 |
commit | ce6e5ab03d58151c4eda36d05a8436d337b2d3c0 (patch) | |
tree | 4743bda7441f8093cb0a31d4141e77cb5cfbc174 /include/m_database.h | |
parent | f627d0bf7a1978a9b8360ada9c199ba9667977b1 (diff) |
removed clutch for GCC (it already exists in m_system.h)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1575 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_database.h')
-rw-r--r-- | include/m_database.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/m_database.h b/include/m_database.h index e39fb8b884..1b2b1e8453 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -434,6 +434,7 @@ typedef struct { DWORD cbBlob; //size of pBlob in bytes
PBYTE pBlob; //pointer to buffer containing module-defined event data
} DBEVENTINFO;
+
#define EVENTTYPE_MESSAGE 0
#define EVENTTYPE_URL 1
#define EVENTTYPE_CONTACTS 2 //v0.1.2.2+
@@ -442,6 +443,10 @@ typedef struct { #define EVENTTYPE_FILE 1002 //specific limit has been raised to 2000
#define MS_DB_EVENT_ADD "DB/Event/Add"
+__forceinline HANDLE DbGetAuthEventContact(DBEVENTINFO* dbei)
+{ return (HANDLE)(*(DWORD*)&dbei->pBlob[sizeof(DWORD)]);
+}
+
/* DB/Event/Delete
Removes a single event from the database
wParam = (WPARAM)(HANDLE)hContact
@@ -499,17 +504,17 @@ typedef struct { #define MS_DB_EVENT_GETTEXT "DB/Event/GetText"
-__inline static char* DbGetEventTextA(DBEVENTINFO* dbei, int codepage)
+__forceinline char* DbGetEventTextA(DBEVENTINFO* dbei, int codepage)
{ DBEVENTGETTEXT temp = { dbei, DBVT_ASCIIZ, codepage };
return (char*)CallService(MS_DB_EVENT_GETTEXT, 0, (LPARAM)&temp);
}
-__inline static WCHAR* DbGetEventTextW(DBEVENTINFO* dbei, int codepage)
+__forceinline WCHAR* DbGetEventTextW(DBEVENTINFO* dbei, int codepage)
{ DBEVENTGETTEXT temp = { dbei, DBVT_WCHAR, codepage };
return (WCHAR*)CallService(MS_DB_EVENT_GETTEXT, 0, (LPARAM)&temp);
}
-__inline static TCHAR* DbGetEventTextT(DBEVENTINFO* dbei, int codepage)
+__forceinline TCHAR* DbGetEventTextT(DBEVENTINFO* dbei, int codepage)
{ DBEVENTGETTEXT temp = { dbei, DBVT_TCHAR, codepage };
return (TCHAR*)CallService(MS_DB_EVENT_GETTEXT, 0, (LPARAM)&temp);
}
@@ -540,7 +545,7 @@ Caller must free the result using mir_free #define MS_DB_EVENT_GETSTRINGT "DB/Event/GetStringT"
-__inline static TCHAR* DbGetEventStringT(DBEVENTINFO* dbei, const char* str)
+__forceinline TCHAR* DbGetEventStringT(DBEVENTINFO* dbei, const char* str)
{
return (TCHAR*)CallService(MS_DB_EVENT_GETSTRINGT, (WPARAM)dbei, (LPARAM)str);
}
|