summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_action.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_action.h')
-rw-r--r--apps/plugins/text_viewer/tv_action.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/apps/plugins/text_viewer/tv_action.h b/apps/plugins/text_viewer/tv_action.h
index f774f07422..fba008dbe9 100644
--- a/apps/plugins/text_viewer/tv_action.h
+++ b/apps/plugins/text_viewer/tv_action.h
@@ -42,16 +42,19 @@ enum
42}; 42};
43 43
44/* 44/*
45 * initialize modules 45 * initialize the action module
46 * 46 *
47 * [In] file 47 * [In/Out] buf
48 * read file name 48 * the start pointer of the buffer
49 *
50 * [In/Out] size
51 * buffer size
49 * 52 *
50 * return 53 * return
51 * true initialize success 54 * true initialize success
52 * false initialize failure 55 * false initialize failure
53 */ 56 */
54bool tv_init(const unsigned char *file); 57bool tv_init_action(unsigned char **buf, size_t *bufsize);
55 58
56/* 59/*
57 * finalize modules 60 * finalize modules
@@ -61,6 +64,18 @@ bool tv_init(const unsigned char *file);
61 */ 64 */
62void tv_exit(void *parameter); 65void tv_exit(void *parameter);
63 66
67/*
68 * load the file
69 *
70 * [In] file
71 * read file name
72 *
73 * return
74 * true load success
75 * false load failure
76 */
77bool tv_load_file(const unsigned char *file);
78
64/* draw the current page */ 79/* draw the current page */
65void tv_draw(void); 80void tv_draw(void);
66 81