diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /include/m_fuse.h | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_fuse.h')
-rw-r--r-- | include/m_fuse.h | 32 |
1 files changed, 32 insertions, 0 deletions
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 |