forked from VendanAndrews/LSMIPC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLSMIPC.h
67 lines (54 loc) · 1.79 KB
/
LSMIPC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include <LSModule.h>
#include <windows.h>
class LSMIPC :
public LSModuleInterface
{
public:
LSMIPC(void);
~LSMIPC(void);
virtual bool Initialize(LSInterface *p_LSInterface);
virtual void Shutdown();
void RegisterCommands();
void RegisterAliases();
void RegisterDataTypes();
void RegisterTopLevelObjects();
void RegisterTriggers();
void RegisterEvents(); // Events should NOT get unregistered
void UnRegisterCommands();
void UnRegisterAliases();
void UnRegisterDataTypes();
void UnRegisterTopLevelObjects();
void UnRegisterTriggers();
};
extern LSInterface *pLSInterface;
extern LSMIPC *pModule;
#define printf pLSInterface->Printf
#define EzCheckTriggers(Text) IS_CheckTriggers(pExtension,pLSInterface,hTriggerService,Text)
extern LSTypeDefinition *pStringType;
extern LSTypeDefinition *pIntType;
extern LSTypeDefinition *pUintType;
extern LSTypeDefinition *pBoolType;
extern LSTypeDefinition *pFloatType;
extern LSTypeDefinition *pTimeType;
extern LSTypeDefinition *pByteType;
extern LSTypeDefinition *pIntPtrType;
extern LSTypeDefinition *pBoolPtrType;
extern LSTypeDefinition *pFloatPtrType;
extern LSTypeDefinition *pBytePtrType;
extern LSTypeDefinition *pIndexType;
extern LSTypeDefinition *pQueueType;
extern LSTypeDefinition *pSetType;
extern LSTypeDefinition *pCollectionType;
extern LSTypeDefinition *pStackType;
extern LSTypeDefinition *pIteratorType;
extern char IPC_Version[];
void IPCIndexEvent(int argc, char** argv, PLSOBJECT Object);
void IPCQueueEvent(int argc, char** argv, PLSOBJECT Object);
void IPCSetEvent(int argc, char** argv, PLSOBJECT Object);
void IPCCollectionEvent(int argc, char** argv, PLSOBJECT Object);
void IPCStackEvent(int argc, char** argv, PLSOBJECT Object);
#include "Commands.h"
#include "DataTypes.h"
#include "TopLevelObjects.h"
#include "Events.h"