summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-08-29 12:10:58 (GMT)
committer Simon <simon@hardwired.org.uk>2010-08-29 12:10:58 (GMT)
commit1af2d330de825a585c2c5ad8b6f840c639237034 (patch)
tree17f95500b7ab8545949b2a3cb4d00c64c1949a0f /interface.h
parentc0563111f822f5253264c7805917a864e1ddda5d (diff)
downloadpowder-1af2d330de825a585c2c5ad8b6f840c639237034.zip
powder-1af2d330de825a585c2c5ad8b6f840c639237034.tar.gz
Moves and fixes
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/interface.h b/interface.h
index 14ae878..182f1f8 100644
--- a/interface.h
+++ b/interface.h
@@ -1,5 +1,7 @@
#ifndef INTERFACE_H
#define INTERFACE_H
+#include <SDL/SDL.h>
+#include "graphics.h"
struct menu_section
{
@@ -98,8 +100,30 @@ extern char svf_tags[256];
extern void *svf_last;
extern int svf_lsize;
+extern char *search_ids[GRID_X*GRID_Y];
+extern int search_votes[GRID_X*GRID_Y];
+extern int search_publish[GRID_X*GRID_Y];
+extern int search_scoredown[GRID_X*GRID_Y];
+extern int search_scoreup[GRID_X*GRID_Y];
+extern char *search_names[GRID_X*GRID_Y];
+extern char *search_owners[GRID_X*GRID_Y];
+extern void *search_thumbs[GRID_X*GRID_Y];
+extern int search_thsizes[GRID_X*GRID_Y];
+
+extern int search_own;
+extern int search_date;
+extern int search_page;
+extern char search_expr[256];
+
+extern char *tag_names[TAG_MAX];
+extern int tag_votes[TAG_MAX];
+
extern int Z_keysym;
+extern int zoom_en;
+extern int zoom_x, zoom_y;
+extern int zoom_wx, zoom_wy;
+
void menu_count(void);
void get_sign_pos(int i, int *x0, int *y0, int *w, int *h);
@@ -139,4 +163,8 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx,
int sdl_poll(void);
void set_cmode(int cm);
+
+char *download_ui(pixel *vid_buf, char *uri, int *len);
+
+int search_ui(pixel *vid_buf);
#endif \ No newline at end of file