chiark / gitweb /
Much better error handling.
[ypp-sc-tools.main.git] / pctb / convert.h
1 #ifndef CONVERT_H
2 #define CONVERT_H
3
4 #include "common.h"
5 #include "ocr.h"
6
7 #include <pam.h>
8 #include <time.h>
9 #include <limits.h>
10
11 #include <sys/time.h>
12
13
14 /*----- from structure.c -----*/
15
16 void find_structure(CanonImage *im);
17 void read_screenshots(void);
18 void read_one_screenshot(void);
19 void analyse(void);
20
21 /*----- from convert.c -----*/
22
23 extern FILE *screenshots_file;
24
25 void vwarning(const char *fmt, va_list) FMT(1,0);
26 void warning(const char *fmt, ...)      FMT(1,2);
27
28 void vprogress(const char *fmt, va_list) FMT(1,0);
29 void progress(const char *fmt, ...)      FMT(1,2);
30
31 void vprogress_log(const char *fmt, va_list) FMT(1,0);
32 void progress_log(const char *fmt, ...)      FMT(1,2);
33
34 void vprogress_spinner(const char *fmt, va_list) FMT(1,0);
35 void progress_spinner(const char *fmt, ...)      FMT(1,2);
36
37 /*----- from pages.c -----*/
38
39 void screenshot_startup(void);
40 void set_yppclient_window(unsigned long wul);
41 void find_yppclient_window(void);
42 void take_screenshots(void);
43 void take_one_screenshot(void);
44
45 #define MAX_PAGES 100
46 extern CanonImage *page_images[MAX_PAGES];
47 extern int npages;
48
49 extern char *ocean, *pirate;
50
51
52 #endif /*CONVERT_H*/