blob: 5c3a140a90bfe62adf7a966397c4638e88a8bdbc [file] [log] [blame]
// AUTO_GENERATED FILE - DO NOT EDIT
// see system/tools/hidl/templates/ITemplate.h
#ifndef HIDL_GENERATED_android_hardware_tests_I_TestService_H_
#define HIDL_GENERATED_android_hardware_tests_I_TestService_H_
#include <hwbinder/IBinder.h>
#include <hwbinder/IInterface.h>
#include <hwbinder/Status.h>
#include <cstdint>
#include <utils/StrongPointer.h>
namespace android {
namespace hardware {
namespace tests {
template<typename T>
using hidl_ref = int;
class ITestService : public ::android::hardware::IInterface {
public:
template<typename T>
struct hidl_vec {
T *buffer;
size_t count;
};
DECLARE_HWBINDER_META_INTERFACE(TestService);
typedef struct {
uint32_t int1;
uint32_t int2;
hidl_vec<uint8_t> data;
} simple_t;
typedef struct {
uint8_t buffer[4096] ;
} lots_of_data;
using echoInteger_cb = std::function<void(int32_t ret)>;
using shareBufferWithRef_cb = std::function<void(int32_t ret)>;
virtual ::android::hardware::Status echoInteger(int32_t echo_me, const ITestService::simple_t *my_struct , echoInteger_cb _cb = nullptr ) = 0;
virtual ::android::hardware::Status shareBufferWithRef(hidl_ref<lots_of_data> buffer, shareBufferWithRef_cb _cb = nullptr ) = 0;
enum Call {
ECHOINTEGER = ::android::hardware::IBinder::FIRST_CALL_TRANSACTION + 0,
SHAREBUFFERWITHREF,
};
}; // class ITestService
} // namespace tests
} // namespace hardware
} // namespace android
#endif // HIDL_GENERATED_android_hardware_tests_I_TestService_H_