4 #include <binder/IInterface.h>
5 #include <binder/IMemory.h>
10 HW_GETBUFFER
= IBinder::FIRST_CALL_TRANSACTION
,
19 HW_SET_REGISTRY_INDEX
,
20 HW_GET_REGISTRY_INDEX
,
24 class IAndroidShm
: public IInterface
{
26 DECLARE_META_INTERFACE(AndroidShm
);
28 virtual sp
<IMemoryHeap
> getBuffer(int index
) = 0;
29 virtual int sendCommand(const char *command
) = 0;
30 virtual int allocShm(const int size
) = 0; // if negative return value is error
31 virtual int removeShm(const unsigned int index
) = 0; // shared memory Á¦°Å
32 virtual int isAllocated(const unsigned int index
) = 0; // allocated ¿©ºÎ È®ÀÎ
33 virtual int setRegistryIndex(const unsigned int index
) = 0;
34 virtual int getRegistryIndex() = 0;
36 // for named semaphore simulation
37 virtual sp
<IMemoryHeap
> InitSemaphore(const char* name
) = 0;