jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
779B

  1. #ifndef BPANDROIDSHM
  2. #define BPANDROIDSHM
  3. #include <binder/Parcel.h>
  4. #include "IAndroidShm.h"
  5. #include <binder/IMemory.h>
  6. namespace android {
  7. class BpAndroidShm: public BpInterface<IAndroidShm> {
  8. public:
  9. BpAndroidShm( const sp<IBinder> & impl);
  10. virtual ~BpAndroidShm();
  11. virtual sp<IMemoryHeap> getBuffer(int index);
  12. virtual int sendCommand(const char *command);
  13. virtual int allocShm(const int size); // if negative return value is error
  14. virtual int removeShm(const unsigned int index); // shared memory Á¦°Å
  15. virtual int isAllocated(const unsigned int index); // allocated ¿©ºÎ È®ÀÎ
  16. virtual int setRegistryIndex(const unsigned int index);
  17. virtual int getRegistryIndex();
  18. virtual sp<IMemoryHeap> InitSemaphore(const char* name);
  19. };
  20. };
  21. #endif