Update default jack location on windows, per new installers
[jack2.git] / android / IAndroidShm.h
bloba890162c4ef688e2de3ad778e28230a4423dfb85
1 #ifndef IANDROIDSHM
2 #define IANDROIDSHM
4 #include <binder/IInterface.h>
5 #include <binder/IMemory.h>
7 namespace android {
9 enum {
10 HW_GETBUFFER = IBinder::FIRST_CALL_TRANSACTION,
11 HW_MULTIPLY,
12 HW_STARTSERVER,
13 HW_MAKECLIENT,
14 HW_SENDCOMMAND,
15 HW_LOADSO,
16 HW_ALLOC_SHM,
17 HW_REMOVE_SHM,
18 HW_IS_ALLOCATED,
19 HW_SET_REGISTRY_INDEX,
20 HW_GET_REGISTRY_INDEX,
21 HW_INIT_SEMAPHORE
24 class IAndroidShm: public IInterface {
25 public:
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;
41 #endif