From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_fuse.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/m_fuse.h (limited to 'include/m_fuse.h') diff --git a/include/m_fuse.h b/include/m_fuse.h new file mode 100644 index 0000000000..8a2ff8169f --- /dev/null +++ b/include/m_fuse.h @@ -0,0 +1,32 @@ +#ifdef _ALPHA_FUSE_ +#ifndef _M_FUSE_ +#define _M_FUSE_ + +#define CALLSERVICE_NOTFOUND ((int)0x80000000) +#define MAXMODULELABELLENGTH 64 +typedef int (*MIRANDAHOOK)(WPARAM,LPARAM); +typedef INT_PTR (*MIRANDASERVICE)(WPARAM,LPARAM); + +#define FUSE_INIT 0 // core started, Param=**FUSE_LINK +#define FUSE_DEINIT 1 // core stopped +#define FUSE_DEFMOD 3 // LoadDefaultModules() return code, Param=*int +#define FUSE_DEATH 4 // DestroyingModularEngine() just got called + +typedef struct { + int cbSize; + HANDLE (*CreateHookableEvent)(const char *); + int (*DestroyHookableEvent)(HANDLE); + int (*NotifyEventHooks)(HANDLE,WPARAM,LPARAM); + HANDLE (*HookEvent)(const char *,MIRANDAHOOK); + HANDLE (*HookEventMessage)(const char *,HWND,UINT); + int (*UnhookEvent)(HANDLE); + HANDLE (*CreateServiceFunction)(const char *,MIRANDASERVICE); + HANDLE (*CreateTransientServiceFunction)(const char *,MIRANDASERVICE); + int (*DestroyServiceFunction)(HANDLE); + int (*CallService)(const char *,WPARAM,LPARAM); + int (*ServiceExists)(const char *); //v0.1.0.1+ + int (*CallServiceSync)(const char*,WPARAM,LPARAM); //v0.1.2.2+ +} FUSE_LINK; + +#endif +#endif \ No newline at end of file -- cgit v1.2.3