+void cb_cfw_hup_activate(GtkWidget *widget, gpointer uudata)
+{
+ int tag;
+ struct dc_response *resp;
+
+ if(dc_connectsync2(dc_srv_local, DC_LATEST) < 0) {
+ msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not connect to server"));
+ return;
+ }
+ if(dc_login(NULL, 1, dc_convnone, NULL) != DC_LOGIN_ERR_SUCCESS) {
+ dc_disconnect();
+ msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not connect to server"));
+ return;
+ }
+ tag = dc_queuecmd(NULL, NULL, L"hup", NULL);
+ if((resp = dc_gettaggedrespsync(tag)) != NULL) {
+ if(resp->code != 200)
+ msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not connect to server"));
+ dc_freeresp(resp);
+ }
+ dc_disconnect();
+}
+
+void cb_cfw_save_activate(GtkWidget *widget, gpointer uudata)