summaryrefslogtreecommitdiffstats
path: root/src/devicedb.h
blob: 5a96ca70b2f319ad7fdb95c8b8298ecd8021b84f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * devicedb.h
 * Internal device database interface (not installed)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef IRECV_DEVICEDB_H
#define IRECV_DEVICEDB_H

#include "libirecovery.h"

/* built-in table generated from data/devices.txt; terminated by a NULL entry */
extern struct irecv_device irecv_devices_builtin[];

void irecv_devicedb_init(void);
void irecv_devicedb_cleanup(void);
void irecv_devicedb_set_debug(int level);

/* NULL-terminated table (built-in data merged with the device files).
 * Never NULL, and the returned table stays valid until library unload. */
struct irecv_device* irecv_devicedb_get(void);

#endif