cmus_play_file: Treat URLs specially
[cmus.git] / db.h
blob021f240dd30b08dbde1c6ec69ce3a39f71447e7f
1 /*
2 * Copyright 2004 Timo Hirvonen
3 */
5 #ifndef _DB_H
6 #define _DB_H
8 struct db;
10 struct db *db_new(const char *filename_base);
11 int db_load(struct db *db);
12 int db_close(struct db *db);
13 int db_insert(struct db *db, char *key, void *data, unsigned int data_size);
14 int db_remove(struct db *db, const char *key);
15 int db_query(struct db *db, const char *key, void **datap, unsigned int *data_sizep);
17 #endif