void AllExport() { try { client_export(); cat_export(); } catch (...) { cout << "Couldn't save data" << endl; return; } }
static int client_handle_request(struct client *client, const char *const *args, const char **error_r) { const char *cmd = args[0]; if (cmd == NULL) { *error_r = "Missing command"; return -1; } args++; if (strcmp(cmd, "EXPORT") == 0) return client_export(client, args, error_r); *error_r = "Unknown command"; return -1; }