| 32 #include <inttypes.h> |
32 #include <inttypes.h> |
| 33 #include "../ui/toolkit.h" |
33 #include "../ui/toolkit.h" |
| 34 #include "../common/context.h" |
34 #include "../common/context.h" |
| 35 #include "../common/object.h" |
35 #include "../common/object.h" |
| 36 |
36 |
| |
37 #include <cx/string.h> |
| |
38 |
| 37 #ifdef __cplusplus |
39 #ifdef __cplusplus |
| 38 extern "C" { |
40 extern "C" { |
| 39 #endif |
41 #endif |
| |
42 |
| |
43 typedef struct UiServerEvent UiServerEvent; |
| |
44 typedef struct UiServerEventData UiServerEventData; |
| |
45 typedef void(*ui_srvevent_func)(UiServerEventData *event, void *userdata); |
| |
46 |
| |
47 struct UiServerEventData { |
| |
48 UiObject *obj; |
| |
49 cxmutstr str; |
| |
50 int intvalue; |
| |
51 }; |
| 40 |
52 |
| |
53 struct UiServerEvent { |
| |
54 UiServerEventData event; |
| |
55 ui_srvevent_func callback; |
| |
56 void *userdata; |
| |
57 }; |
| |
58 |
| |
59 void ui_server_message_received(cxstring msg); |
| 41 |
60 |
| 42 |
61 |
| 43 #ifdef __cplusplus |
62 #ifdef __cplusplus |
| 44 } |
63 } |
| 45 #endif |
64 #endif |