ui/ui/toolkit.h

branch
newapi
changeset 177
e79a60b3a7cb
parent 173
809581724cc7
child 181
c52d88ea020b
equal deleted inserted replaced
173:809581724cc7 177:e79a60b3a7cb
75 #ifndef TRUE 75 #ifndef TRUE
76 #define TRUE 1 76 #define TRUE 1
77 #endif 77 #endif
78 #ifndef FALSE 78 #ifndef FALSE
79 #define FALSE 0 79 #define FALSE 0
80 #endif
81
82 #ifndef UIEXPORT
83 #define UIEXPORT
80 #endif 84 #endif
81 85
82 #ifdef __cplusplus 86 #ifdef __cplusplus
83 extern "C" { 87 extern "C" {
84 #endif 88 #endif
282 /* list of observers */ 286 /* list of observers */
283 UiObserver *observers; 287 UiObserver *observers;
284 }; 288 };
285 289
286 290
287 void ui_init(char *appname, int argc, char **argv); 291 void ui_init(const char *appname, int argc, char **argv);
288 char* ui_appname(); 292 const char* ui_appname();
289 293
290 UiContext* ui_global_context(void); 294 UiContext* ui_global_context(void);
291 295
292 void ui_context_closefunc(UiContext *ctx, ui_callback fnc, void *udata); 296 void ui_context_closefunc(UiContext *ctx, ui_callback fnc, void *udata);
293 297

mercurial