ui/server/toolkit.c

changeset 956
4cdfbfd2038d
parent 950
39641cf150eb
child 981
1d47e71f26b6
equal deleted inserted replaced
955:ea9a999b4fc8 956:4cdfbfd2038d
33 33
34 #include "toolkit.h" 34 #include "toolkit.h"
35 35
36 #include "../common/message.h" 36 #include "../common/message.h"
37 #include "../common/threadpool.h" 37 #include "../common/threadpool.h"
38 #include "../common/app.h"
38 39
39 static const char *ui_app_name; 40 static const char *ui_app_name;
40 41
41 static UiMessageHandler *message_handler; 42 static UiMessageHandler *message_handler;
42 43
51 message_handler = uic_simple_msg_handler(STDIN_FILENO, STDOUT_FILENO, ui_server_message_received); 52 message_handler = uic_simple_msg_handler(STDIN_FILENO, STDOUT_FILENO, ui_server_message_received);
52 } 53 }
53 54
54 const char* ui_appname() { 55 const char* ui_appname() {
55 return ui_app_name; 56 return ui_app_name;
56 }
57
58 void ui_onstartup(ui_callback f, void *userdata) {
59 onstartup = f;
60 onstartupdata = userdata;
61 } 57 }
62 58
63 void ui_add_styledata(const char *styledata, int len) { 59 void ui_add_styledata(const char *styledata, int len) {
64 // NOOP 60 // NOOP
65 } 61 }

mercurial