2 * general header file for ypp-commodities
5 * This is part of ypp-sc-tools, a set of third-party tools for assisting
6 * players of Yohoho Puzzle Pirates.
8 * Copyright (C) 2009 Ian Jackson <ijackson@chiark.greenend.org.uk>
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.
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.
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/>.
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.
41 /*----- from structure.c -----*/
43 void find_structure(CanonImage *im, int *max_relevant_y_r);
44 void check_correct_commodities(void);
45 void read_screenshots(void);
46 void read_one_screenshot(void);
47 void analyse(FILE *tsv_output);
49 /*----- from convert.c -----*/
51 extern FILE *screenshot_file;
53 void vwarning(const char *fmt, va_list) FMT(1,0);
54 void warning(const char *fmt, ...) FMT(1,2);
56 void vprogress(const char *fmt, va_list) FMT(1,0);
57 void progress(const char *fmt, ...) FMT(1,2);
59 void vprogress_log(const char *fmt, va_list) FMT(1,0);
60 void progress_log(const char *fmt, ...) FMT(1,2);
62 void vprogress_spinner(const char *fmt, va_list) FMT(1,0);
63 void progress_spinner(const char *fmt, ...) FMT(1,2);
65 /*----- from pages.c -----*/
67 void screenshot_startup(void);
68 void set_yppclient_window(unsigned long wul);
69 void find_yppclient_window(void);
70 void take_screenshots(void);
71 void take_one_screenshot(void);
74 extern CanonImage *page_images[MAX_PAGES];
77 extern char *ocean, *pirate;