summaryrefslogtreecommitdiff
path: root/rtgui/include
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-11-26 09:28:06 +0000
committerbernard.xiong <[email protected]>2009-11-26 09:28:06 +0000
commit885045ef426614e669cbed538fbf135d974c1a36 (patch)
treeb9f8e68dd5972976489e962b113346c15046236c /rtgui/include
parent719f923718694c48a54827cd5dc03f3621557cc7 (diff)
add semaphore to protect sdcard driver read and write; fix window keyboard event handler.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@177 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/include')
-rw-r--r--rtgui/include/rtgui/filerw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtgui/include/rtgui/filerw.h b/rtgui/include/rtgui/filerw.h
index 0a9395fbb6..b05ce3f8e9 100644
--- a/rtgui/include/rtgui/filerw.h
+++ b/rtgui/include/rtgui/filerw.h
@@ -32,7 +32,7 @@ struct rtgui_filerw
typedef struct rtgui_filerw rtgui_filerw_t;
struct rtgui_filerw* rtgui_filerw_create_file(const char* filename, const char* mode);
-struct rtgui_filerw* rtgui_filerw_create_mem(rt_uint8_t* mem, rt_size_t size);
+struct rtgui_filerw* rtgui_filerw_create_mem(const rt_uint8_t* mem, rt_size_t size);
int rtgui_filerw_seek (struct rtgui_filerw* context, rt_off_t offset, int whence);
int rtgui_filerw_read (struct rtgui_filerw* context, void* buffer, rt_size_t size, rt_size_t count);
@@ -42,6 +42,6 @@ int rtgui_filerw_eof (struct rtgui_filerw* context);
int rtgui_filerw_close(struct rtgui_filerw* context);
/* get memory data from filerw memory object */
-rt_uint8_t* rtgui_filerw_mem_getdata(struct rtgui_filerw* context);
+const rt_uint8_t* rtgui_filerw_mem_getdata(struct rtgui_filerw* context);
#endif