client/uiclient.c

changeset 983
1d7d24147961
parent 982
9102a53c5385
child 984
2cf5e6d55013
equal deleted inserted replaced
982:9102a53c5385 983:1d7d24147961
81 } 81 }
82 82
83 /* 83 /*
84 * This message callback is executed in the message handler input thread 84 * This message callback is executed in the message handler input thread
85 */ 85 */
86 void client_msg_received(cxmutstr msg) { 86 void client_msg_received(cxstring msg) {
87 // parse message 87 // parse message
88 CxJson json; 88 CxJson json;
89 cxJsonInit(&json, NULL); 89 cxJsonInit(&json, NULL);
90 90
91 cxJsonFilln(&json, msg.ptr, msg.length); 91 cxJsonFilln(&json, msg.ptr, msg.length);
180 cxmutstr title = jsonobj_getstring(value, "title"); 180 cxmutstr title = jsonobj_getstring(value, "title");
181 181
182 if(!obj_id.ptr) { 182 if(!obj_id.ptr) {
183 return 1; 183 return 1;
184 } 184 }
185 if(!id) { 185 if(!id.ptr) {
186 return 1; 186 return 1;
187 } 187 }
188 188
189 UiObject *obj = ui_simple_window(title.ptr, NULL); 189 UiObject *obj = ui_simple_window(title.ptr, NULL);
190 client_add_obj_mapping(obj, obj_id); 190 client_add_obj_mapping(obj, obj_id);

mercurial