summaryrefslogtreecommitdiffstats
path: root/src/devicedb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devicedb.h')
-rw-r--r--src/devicedb.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/devicedb.h b/src/devicedb.h
new file mode 100644
index 0000000..5a96ca7
--- /dev/null
+++ b/src/devicedb.h
@@ -0,0 +1,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