diff options
Diffstat (limited to 'utils/wpseditor/libwps/src/api.h')
-rw-r--r-- | utils/wpseditor/libwps/src/api.h | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/utils/wpseditor/libwps/src/api.h b/utils/wpseditor/libwps/src/api.h deleted file mode 100644 index 3fa351609f..0000000000 --- a/utils/wpseditor/libwps/src/api.h +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Rostilav Checkan | ||
10 | * $Id$ | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef API_H_INCLUDED | ||
23 | #define API_H_INCLUDED | ||
24 | #include <stdbool.h> | ||
25 | #include <stddef.h> | ||
26 | #include "defs.h" | ||
27 | #include "wpsstate.h" | ||
28 | #ifdef __PCTOOL__ | ||
29 | #include "dummies.h" | ||
30 | #endif | ||
31 | |||
32 | struct viewport_api { | ||
33 | int x; | ||
34 | int y; | ||
35 | int width; | ||
36 | int height; | ||
37 | int font; | ||
38 | int drawmode; | ||
39 | unsigned fg_pattern; | ||
40 | unsigned bg_pattern; | ||
41 | unsigned lss_pattern; | ||
42 | unsigned lse_pattern; | ||
43 | unsigned lst_pattern; | ||
44 | |||
45 | //TODO: ?? | ||
46 | int fontheight; | ||
47 | int fontwidth; | ||
48 | }; | ||
49 | |||
50 | struct proxy_api | ||
51 | { | ||
52 | bool (*load_remote_wps_backdrop)(char* file_name); | ||
53 | bool (*load_wps_backdrop)(char* file_name); | ||
54 | |||
55 | unsigned (*get_foreground)(void); | ||
56 | unsigned (*get_background)(void); | ||
57 | int (*getwidth)(void); | ||
58 | int (*getheight)(void); | ||
59 | |||
60 | void (*puts_scroll)(int x, int y, const unsigned char *string); | ||
61 | void (*putsxy)(int x, int y, const unsigned char *str); | ||
62 | int (*getfont)(); | ||
63 | int (*getstringsize)(const unsigned char *str, int *w, int *h); | ||
64 | void (*stop_scroll)(); | ||
65 | |||
66 | void (*transparent_bitmap_part)(const void *src, int src_x, int src_y, | ||
67 | int stride, int x, int y, int width, int height); | ||
68 | void (*bitmap_part)(const void *src, int src_x, int src_y, | ||
69 | int stride, int x, int y, int width, int height); | ||
70 | void (*hline)(int x1, int x2, int y); | ||
71 | void (*vline)(int x, int y1, int y2); | ||
72 | void (*drawpixel)(int x, int y); | ||
73 | void (*set_drawmode)(int mode); | ||
74 | void (*fillrect)(int x, int y, int width, int height); | ||
75 | |||
76 | |||
77 | void (*update)(); | ||
78 | void (*set_viewport)(struct viewport* vp); | ||
79 | void (*clear_display)(void); | ||
80 | void (*clear_viewport)(int x,int y,int w,int h, int color); | ||
81 | |||
82 | void* (*plugin_get_buffer)(size_t *buffer_size); | ||
83 | int (*read_bmp_file)(const char* filename,int *width, int *height); | ||
84 | void (*set_wpsstate)(struct wpsstate state); | ||
85 | void (*set_trackstate)(struct trackstate state); | ||
86 | void (*set_next_trackstate)(struct trackstate state); | ||
87 | void (*set_audio_status)(int status); | ||
88 | |||
89 | pfdebugf debugf; | ||
90 | int verbose; | ||
91 | |||
92 | |||
93 | /************************** | ||
94 | * OUT * | ||
95 | **************************/ | ||
96 | const char* (*get_model_name)(); | ||
97 | void (*get_current_vp)(struct viewport_api *avp); | ||
98 | |||
99 | |||
100 | }; | ||
101 | |||
102 | extern struct proxy_api *xapi; | ||
103 | |||
104 | EXPORT int set_api(struct proxy_api* api); | ||
105 | |||
106 | #endif // API_H_INCLUDED | ||