git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AxWin2 - Cleaned out messy code
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin2_src
/
WM
/
common.h
diff --git
a/Usermode/Applications/axwin2_src/WM/common.h
b/Usermode/Applications/axwin2_src/WM/common.h
index
00c8453
..
a515bdc
100644
(file)
--- a/
Usermode/Applications/axwin2_src/WM/common.h
+++ b/
Usermode/Applications/axwin2_src/WM/common.h
@@
-10,9
+10,17
@@
#include <stdint.h>
#include <acess/sys.h> // _SysDebug
#include <stdint.h>
#include <acess/sys.h> // _SysDebug
-typedef void tMessages_Handle_Callback(void*, size_t, void*);
+// === TYPES ===
+typedef struct sIPC_Type tIPC_Type;
typedef struct sFont tFont;
typedef struct sFont tFont;
+struct sIPC_Type
+{
+ int (*GetIdentSize)(void *Ident);
+ int (*CompareIdent)(void *Ident1, void *Ident2);
+ void (*SendMessage)(void *Ident, size_t, void *Data);
+};
+
#include "wm.h"
#include "image.h"
//#include "font.h"
#include "wm.h"
#include "image.h"
//#include "font.h"
@@
-70,14
+78,17
@@
extern int giMouseFD;
extern void memset32(void *ptr, uint32_t val, size_t count);
// --- Initialisation ---
extern void ParseCommandline(int argc, char *argv[]);
extern void memset32(void *ptr, uint32_t val, size_t count);
// --- Initialisation ---
extern void ParseCommandline(int argc, char *argv[]);
+// --- Messages / IPC ---
extern void IPC_Init(void);
extern void IPC_FillSelect(int *nfds, fd_set *set);
extern void IPC_HandleSelect(fd_set *set);
extern void IPC_Init(void);
extern void IPC_FillSelect(int *nfds, fd_set *set);
extern void IPC_HandleSelect(fd_set *set);
+// --- Input ---
extern void Input_FillSelect(int *nfds, fd_set *set);
extern void Input_HandleSelect(fd_set *set);
// --- Local WM ---
extern void Input_FillSelect(int *nfds, fd_set *set);
extern void Input_HandleSelect(fd_set *set);
// --- Local WM ---
-extern tApplication *AxWin_RegisterClient(
int IdentLen, void *Ident, tMessages_Handle_Callback *Cb
, const char *Name);
+extern tApplication *AxWin_RegisterClient(
tIPC_Type *Method, void *Ident
, const char *Name);
extern void AxWin_DeregisterClient(tApplication *App);
extern void AxWin_DeregisterClient(tApplication *App);
+extern tApplication *AxWin_GetClient(tIPC_Type *Method, void *Ident);
// --- Video ---
extern void Video_Setup(void);
extern void Video_Update(void);
// --- Video ---
extern void Video_Setup(void);
extern void Video_Update(void);
UCC
git Repository :: git.ucc.asn.au