summaryrefslogtreecommitdiff
path: root/includes/interface.h
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-10-20 21:31:19 (GMT)
committer Simon <simon@hardwired.org.uk>2010-10-20 21:31:19 (GMT)
commit92b28b7879f55fdf1a496ba9a7c4001585a78cfe (patch)
tree271245440bd10756e2fc4f74d87b4e2b372cb350 /includes/interface.h
parentaf09f466d21baaef2db1d0a0889ee8c5eb9dfef4 (diff)
downloadpowder-92b28b7879f55fdf1a496ba9a7c4001585a78cfe.zip
powder-92b28b7879f55fdf1a496ba9a7c4001585a78cfe.tar.gz
New Open UI - Half Complete
Diffstat (limited to 'includes/interface.h')
-rw-r--r--includes/interface.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/includes/interface.h b/includes/interface.h
index 00b175a..30908a9 100644
--- a/includes/interface.h
+++ b/includes/interface.h
@@ -73,6 +73,26 @@ struct ui_edit
};
typedef struct ui_edit ui_edit;
+struct save_info
+{
+ char *title;
+ char *name;
+ char *author;
+ char *date;
+ char *description;
+ int publish;
+ int voteup;
+ int votedown;
+ int vote;
+ int myvote;
+ int myfav;
+ char *tags;
+ int comment_count;
+ char *comments[6];
+ char *commentauthors[6];
+};
+typedef struct save_info save_info;
+
struct ui_checkbox
{
int x, y;
@@ -170,6 +190,10 @@ char *download_ui(pixel *vid_buf, char *uri, int *len);
int search_ui(pixel *vid_buf);
+int open_ui(pixel *vid_buf, char *save_id);
+
+int info_parse(void *info_data, save_info *info);
+
int search_results(char *str, int votes);
int execute_tagop(pixel *vid_buf, char *op, char *tag);
@@ -178,6 +202,10 @@ void execute_save(pixel *vid_buf);
void execute_delete(pixel *vid_buf, char *id);
+void execute_report(pixel *vid_buf, char *id);
+
+void execute_fav(pixel *vid_buf, char *id);
+
int execute_vote(pixel *vid_buf, char *id, char *action);
#endif