~ubuntu-branches/ubuntu/oneiric/fprint-demo/oneiric

« back to all changes in this revision

Viewing changes to src/fprint_demo.h

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Gea Milvaques
  • Date: 2008-03-28 19:07:12 UTC
  • Revision ID: james.westby@ubuntu.com-20080328190712-p8884w7rqabqr0r3
Tags: upstream-20080202
ImportĀ upstreamĀ versionĀ 20080202

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * fprint_demo: Demonstration of libfprint's capabilities
 
3
 * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org>
 
4
 * 
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 * 
 
10
 * This program 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
 
13
 * GNU General Public License for more details.
 
14
 * 
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
17
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
18
 */
 
19
 
 
20
#ifndef __FPRINT_DEMO_H__
 
21
#define __FPRINT_DEMO_H__
 
22
 
 
23
#include <gtk/gtk.h>
 
24
#include <gdk-pixbuf/gdk-pixbuf.h>
 
25
#include <libfprint/fprint.h>
 
26
 
 
27
/* main.c */
 
28
extern struct fp_dev *fpdev;
 
29
extern struct fp_dscv_print **fp_dscv_prints;
 
30
extern GtkWidget *mwin_window;
 
31
const char *fingerstr(enum fp_finger finger);
 
32
void pixbuf_destroy(guchar *pixels, gpointer data);
 
33
unsigned char *img_to_rgbdata(struct fp_img *img);
 
34
GdkPixbuf *img_to_pixbuf(struct fp_img *img);
 
35
void mwin_refresh_prints(void);
 
36
 
 
37
/* tabs */
 
38
struct fpd_tab {
 
39
        const char *name;
 
40
        GtkWidget *(*create)(void);
 
41
        void (*activate_dev)(void);
 
42
        void (*clear)(void);
 
43
        void (*refresh)(void);
 
44
};
 
45
 
 
46
extern struct fpd_tab enroll_tab;
 
47
extern struct fpd_tab verify_tab;
 
48
extern struct fpd_tab identify_tab;
 
49
extern struct fpd_tab img_tab;
 
50
 
 
51
#endif