diff options
| author | Benny Wong <Benny.Wong@motorola.com> | 2009-08-17 15:28:30 -0500 |
|---|---|---|
| committer | James Dong <jdong@google.com> | 2009-08-20 03:55:20 -0700 |
| commit | f99c18083e87ccf83430b29b53c7dea52a1675de (patch) | |
| tree | 602d616cdcc91d974299fca1e4f40fce00a2fbc4 /include/binder | |
| parent | 41b379da57d3125de038636d72fba95e2255483d (diff) | |
| download | frameworks_base-f99c18083e87ccf83430b29b53c7dea52a1675de.zip frameworks_base-f99c18083e87ccf83430b29b53c7dea52a1675de.tar.gz frameworks_base-f99c18083e87ccf83430b29b53c7dea52a1675de.tar.bz2 | |
Add offset handling in MemoryHeapBase class
Diffstat (limited to 'include/binder')
| -rw-r--r-- | include/binder/MemoryHeapBase.h | 4 |
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; |
