File: BpAndroidShm.h

package info (click to toggle)
jackd2 1.9.12~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,632 kB
  • sloc: cpp: 50,117; ansic: 29,194; python: 11,637; sh: 88; makefile: 68; objc: 39
file content (25 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef BPANDROIDSHM
#define BPANDROIDSHM

#include <binder/Parcel.h>
#include "IAndroidShm.h"
#include <binder/IMemory.h>

namespace android {
	class BpAndroidShm: public BpInterface<IAndroidShm> {
		public:
			BpAndroidShm( const sp<IBinder> & impl);
			virtual ~BpAndroidShm();
			virtual sp<IMemoryHeap> getBuffer(int index);
			virtual int sendCommand(const char *command);
			virtual int allocShm(const int size); // if negative return value is error
			virtual int removeShm(const unsigned int index); // shared memory  
			virtual int isAllocated(const unsigned int index); // allocated  Ȯ
			virtual int setRegistryIndex(const unsigned int index);
			virtual int getRegistryIndex();

			virtual sp<IMemoryHeap> InitSemaphore(const char* name);
	};
};

#endif