]>
git.datanom.net - lensdb.git/blob - src/sqlite-storage.h
4 * Copyright 2024 Michael Rasmussen <mir@datanom.net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 #ifndef __SQLITE_STORAGE_H__
23 #define __SQLITE_STORAGE_H__
30 #include <glib-object.h>
49 gint
init_storage(const gchar
* path
);
51 gint
add_lens(Row
* row
);
52 gint
update_lens(const Row
* row
);
53 gint
add_maker(const gchar
* maker
, gchar
** err
);
54 gint
delete_maker(const gchar
* maker
, gchar
** err
);
56 gint
get_maker_id(const gchar
* maker
);
57 Maker
* get_maker(gint id
);
58 void update_maker(const Maker
* maker
);
59 void maker_free(Maker
* maker
);
60 gint
delete_lens(const Row
* row
);
61 GSList
* get_lens_by_maker(gint id
);
62 GSList
* get_lens_by_search(const Row
* row
);
64 void row_free(gpointer data
, gpointer user_data
);
This page took 0.630719 seconds and 6 git commands to generate.