Initial driver registration mechanism
[libfprint.git] / libfprint / fp_internal.h
blob19f5ee5e3153216667bfd6759133b7cbb807e8f2
1 /*
2 * Internal/private definitions for libfprint
3 * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __FPRINT_INTERNAL_H__
21 #define __FPRINT_INTERNAL_H__
23 #include <stdint.h>
25 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a))
27 struct usb_id {
28 uint16_t vendor;
29 uint16_t product;
30 unsigned long driver_data;
33 struct fp_driver {
34 const char *name;
35 const char *full_name;
36 const struct usb_id * const id_table;
39 extern const struct fp_driver upekts_driver;
41 #endif