29 #ifndef ISHAREDBUFFER_H_
30 #define ISHAREDBUFFER_H_
32 #include <utils/RefBase.h>
33 #include <binder/IInterface.h>
34 #include <binder/Parcel.h>
35 #include <utils/String8.h>
37 #define SHARED_BUFFER_SERVICE "net.int.SharedBuffer"
38 #define STR_BUFFER_LEN 32
40 using namespace android;
45 DECLARE_META_INTERFACE(SharedBuffer);
54 virtual int getFd(String8 &name) = 0;
63 virtual int setFd(String8 ¶m, int32_t fd) = 0;
79 virtual status_t onTransact(uint32_t code,
const Parcel &data,
80 Parcel *reply, uint32_t flags = 0);
83 #endif // ISHAREDBUFFER_H_