summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorBenny Wong <Benny.Wong@motorola.com>2009-08-17 15:28:30 -0500
committerJames Dong <jdong@google.com>2009-08-20 03:55:20 -0700
commitd4851d74ac9c737acda85f1fdbc028c68f481a36 (patch)
tree74e5f73442fdbe503aa82e751af1ddf9bb3e7691 /include/binder
parent8039e6edac4754113b31d6ed748b6a377874c65e (diff)
downloadframeworks_native-d4851d74ac9c737acda85f1fdbc028c68f481a36.zip
frameworks_native-d4851d74ac9c737acda85f1fdbc028c68f481a36.tar.gz
frameworks_native-d4851d74ac9c737acda85f1fdbc028c68f481a36.tar.bz2
Add offset handling in MemoryHeapBase class
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/MemoryHeapBase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/binder/MemoryHeapBase.h b/include/binder/MemoryHeapBase.h
index 83c7283..435540e 100644
--- a/include/binder/MemoryHeapBase.h
+++ b/include/binder/MemoryHeapBase.h
@@ -42,7 +42,7 @@ public:
* maps the memory referenced by fd. but DOESN'T take ownership
* of the filedescriptor (it makes a copy with dup()
*/
- MemoryHeapBase(int fd, size_t size, uint32_t flags = 0);
+ MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, uint32_t offset = 0);
/*
* maps memory from the given device
@@ -82,7 +82,7 @@ protected:
int flags = 0, const char* device = NULL);
private:
- status_t mapfd(int fd, size_t size);
+ status_t mapfd(int fd, size_t size, uint32_t offset = 0);
int mFD;
size_t mSize;