]>
git.datanom.net - gtk_lensdatabase.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>
50 gint
init_storage(const gchar
* path
);
51 gchar
* storage_get_path();
53 gint
add_lens(Row
* row
);
54 gint
update_lens(const Row
* row
);
55 gint
update_lens_maker(const Row
* row
);
56 gint
add_maker(const gchar
* maker
, gchar
** err
);
57 gint
delete_maker(const gchar
* maker
, gchar
** err
);
59 gint
get_maker_id(const gchar
* maker
);
60 Maker
* get_maker(gint id
);
61 void update_maker(const Maker
* maker
);
62 void maker_free(Maker
* maker
);
63 gint
delete_lens(const Row
* row
);
64 GSList
* get_lens_by_maker(gint id
);
65 GSList
* get_lens_by_search(const Row
* row
);
67 void row_free(gpointer data
, gpointer user_data
);
68 void dump_storage(CsvParser
* parser
);
This page took 0.492005 seconds and 6 git commands to generate.