chiark / gitweb /
copyright messages
[ypp-sc-tools.web-live.git] / pctb / convert.h
1 /*
2  * general header file for ypp-commodities
3  */
4 /*
5  *  This is part of ypp-sc-tools, a set of third-party tools for assisting
6  *  players of Yohoho Puzzle Pirates.
7  * 
8  *  Copyright (C) 2009 Ian Jackson <ijackson@chiark.greenend.org.uk>
9  * 
10  *  This program is free software: you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation, either version 3 of the License, or
13  *  (at your option) any later version.
14  * 
15  *  This program is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *  GNU General Public License for more details.
19  * 
20  *  You should have received a copy of the GNU General Public License
21  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
22  * 
23  *  Yohoho and Puzzle Pirates are probably trademarks of Three Rings and
24  *  are used without permission.  This program is not endorsed or
25  *  sponsored by Three Rings.
26  */
27
28 #ifndef CONVERT_H
29 #define CONVERT_H
30
31 #include "common.h"
32 #include "ocr.h"
33
34 #include <pam.h>
35 #include <time.h>
36 #include <limits.h>
37
38 #include <sys/time.h>
39
40
41 /*----- from structure.c -----*/
42
43 void find_structure(CanonImage *im);
44 void read_screenshots(void);
45 void read_one_screenshot(void);
46 void analyse(void);
47
48 /*----- from convert.c -----*/
49
50 extern FILE *screenshots_file;
51
52 void vwarning(const char *fmt, va_list) FMT(1,0);
53 void warning(const char *fmt, ...)      FMT(1,2);
54
55 void vprogress(const char *fmt, va_list) FMT(1,0);
56 void progress(const char *fmt, ...)      FMT(1,2);
57
58 void vprogress_log(const char *fmt, va_list) FMT(1,0);
59 void progress_log(const char *fmt, ...)      FMT(1,2);
60
61 void vprogress_spinner(const char *fmt, va_list) FMT(1,0);
62 void progress_spinner(const char *fmt, ...)      FMT(1,2);
63
64 /*----- from pages.c -----*/
65
66 void screenshot_startup(void);
67 void set_yppclient_window(unsigned long wul);
68 void find_yppclient_window(void);
69 void take_screenshots(void);
70 void take_one_screenshot(void);
71
72 #define MAX_PAGES 100
73 extern CanonImage *page_images[MAX_PAGES];
74 extern int npages;
75
76 extern char *ocean, *pirate;
77
78
79 #endif /*CONVERT_H*/