void purge_command(command_struct *command, entry *entry_head, snapshot *snapshot_head) { STATUS status = purge_entry(command->args_malloc_ptr[1], entry_head, snapshot_head); switch(status) { case OK: printf("ok\n"); break; default: printf("whoops (purge command: %d)", status); break; } }
bool purgeByID(unsigned int db_id) { return purge_entry(byID(db_id)); }
bool purgeByFilename(const QString &file_name) { return purge_entry(byFilename(file_name)); }