]>
git.datanom.net - lensdb.git/blob - lib/scanner.cpp
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 2 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,
32 Scanner_t
* scanner_create(const char* file
) {
36 s
= g_new0(Scanner_t
, 1);
37 obj
= new ExifScanner(file
);
43 void scanner_destroy(Scanner_t
* s
) {
47 delete static_cast<ExifScanner
*>(s
->obj
);
51 gchar
* get_lens_maker(Scanner_t
* s
) {
57 obj
= static_cast<ExifScanner
*>(s
->obj
);
58 return obj
->get_cscring(obj
->get_maker());
61 gchar
* get_lens_serial_number(Scanner_t
* s
) {
67 obj
= static_cast<ExifScanner
*>(s
->obj
);
68 return obj
->get_cscring(obj
->get_serial_number());
71 gchar
* get_lens_info(Scanner_t
* s
) {
77 obj
= static_cast<ExifScanner
*>(s
->obj
);
78 return obj
->get_cscring(obj
->get_lens());
This page took 0.825432 seconds and 6 git commands to generate.