forked from NWNX/nwnx2-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system.h
63 lines (47 loc) · 1.36 KB
/
system.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
#ifndef SYSTEM_H__
#define SYSTEM_H__ 1
//nwnx/core/pluginsloaded
//called after all plugins have been successfully initialised
//wParam=lParam=0
//used to resolve double-dependencies in the plugin load order
#define EV_CORE_PLUGINSLOADED "NWNX/Core/PluginsLoaded"
typedef int ( *FSortFunc )( void*, void* );
typedef struct
{
void** items;
int realCount;
int limit;
int increment;
FSortFunc sortFunc;
}
SortedList;
struct LIST_INTERFACE
{
int cbSize;
SortedList* ( *List_Create )( int, int );
void ( *List_Destroy )( SortedList* );
void* ( *List_Find )( SortedList*, void* );
int ( *List_GetIndex )( SortedList*, void*, int* );
int ( *List_Insert )( SortedList*, void*, int );
int ( *List_Remove )( SortedList*, int );
int ( *List_IndexOf )( SortedList*, void* );
#if MIRANDA_VER >= 0x0600
int ( *List_InsertPtr)( SortedList* list, void* p );
int ( *List_RemovePtr)( SortedList* list, void* p );
#endif
};
/* Missing service catcher
Is being called when one calls the non-existent service.
All parameters are stored in the special structure
The event handler takes 0 as wParam and TMissingServiceParams* as lParam.
0.4.3+ addition (2006/03/27)
*/
typedef struct
{
const char* name;
WPARAM wParam;
LPARAM lParam;
}
MISSING_SERVICE_PARAMS;
#define ME_SYSTEM_MISSINGSERVICE "System/MissingService"
#endif // M_SYSTEM_H