]>
git.datanom.net - lensdb.git/blob - src/main.c
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,
29 #include <glib-object.h>
31 #include "sqlite-storage.h"
33 #include "lib/scanner.h"
35 gint
main(gint argc
, gchar
** argv
) {
38 // Scanner_t* sc = scanner_create("/home/mir/Pictures/Pictures/20211019_0012.jpg");
39 // Scanner_t* sc = scanner_create("/home/mir/Pictures/Pictures/2024/09/14/Lndskrona Foto Festival/Lndskrona Foto Festival-8.ORF");
40 // Scanner_t* sc = scanner_create("/home/mir/Pictures/Pictures/2024/08/21/Fototur til Hejresøen/Fototur til Hejresøen-6.NEF");
41 // gchar* response = get_lens_maker(sc);
42 // fprintf(stderr, "Maker: %s\n", response);
44 // response = get_lens_info(sc);
45 // fprintf(stderr, "Name: %s\n", response);
47 // response = get_lens_serial_number(sc);
48 // fprintf(stderr, "SN: %s\n", response);
50 // scanner_destroy(sc);
52 gchar
* path
= g_path_get_dirname(argv
[0]);
53 if ((status
= init_storage(path
)) > 0) {
54 fprintf(stderr
, "%s: Failed to open DB\n", path
);
56 gtk_init(&argc
, &argv
);
58 gchar
* err
= g_strdup_printf("Failed initializing GUI\n");
60 show_err_msg(GTK_MESSAGE_ERROR
, err
);
This page took 0.626885 seconds and 6 git commands to generate.