| #define param_list ::android::String16* _aidl_return |
| // SECTION i_h |
| // START file |
| // AUTO_GENERATED FILE - DO NOT EDIT |
| // see system/tools/hidl/templates/ITemplate.h |
| #ifndef HIDL_GENERATED_namespace_underscores_I_header_guard_H_ |
| #define HIDL_GENERATED_namespace_underscores_I_header_guard_H_ |
| |
| #include <hwbinder/IBinder.h> |
| #include <hwbinder/IInterface.h> |
| #include <hwbinder/Status.h> |
| #include <cstdint> |
| #include <utils/StrongPointer.h> |
| // START imports_section |
| //#include <namespace_slashes/import_name.h> // ALL import_line_old |
| #include <import_name.h> // ALL import_line |
| // END imports_section |
| // START namespace_open_section |
| namespace namespace_name {//ALL namespace_open_line |
| //END namespace_open_section |
| |
| template<typename T> |
| using hidl_ref = int; |
| |
| #ifndef HIDL_TYPES |
| #define HIDL_TYPES |
| template<typename T> |
| struct hidl_vec { |
| T *buffer; |
| size_t count; |
| }; |
| struct hidl_string { |
| char *buffer; |
| ptrdiff_t length; |
| }; |
| #endif // HIDL_TYPES |
| |
| class Ipackage_name : public ::android::hardware::IInterface { |
| public: |
| |
| DECLARE_HWBINDER_META_INTERFACE(package_name); |
| |
| // START code_snips |
| |
| //START code_for_const |
| // constexpr const_name = const_value; |
| //END code_for_const |
| |
| typedef struct { // START code_for_struct_decl |
| int field_filler; // ALL struct_fields |
| } struct_name; |
| |
| // END code_for_struct_decl |
| typedef union { // START code_for_union_decl |
| int field_filler; // ALL union_fields |
| } union_name; |
| |
| // END code_for_union_decl |
| |
| // START code_for_enum_decl |
| enum class enum_name : enum_base_type { enum_fields }; |
| const char* GetNameOf(enum_name f) { |
| static const char* names[] = {quoted_fields_of_enum }; |
| //do errror checking |
| return names[int(f)]; |
| } |
| // size_t enum_limits<foo>::max() { return 1; } |
| // END code_for_enum_decl |
| // END code_snips |
| // START callback_decls |
| /* |
| function_name_cb _cb = nullptr // ALL callback_param // Used in callback_description |
| const Ipackage_name::struct_name ¶m_name // ALL param_decl_struct_type |
| const hidl_vec<decl_base_type> ¶m_name // ALL param_decl_vec |
| base_type_name param_name[array_size] // ALL param_decl_array_all |
| base_type_name param_name[array_size] // ALL field_decl_array_all |
| hidl_vec<decl_base_type> param_name// ALL field_decl_vec_all |
| const native_handle_t *param_name// ALL field_decl_handle |
| sp<import_name> param_name // ALL param_decl_import |
| Ipackage_name::the_type_name//ALL describe_named_type |
| hidl_vec<base_type_name>//ALL describe_type_vec |
| */ |
| using function_name_cb = std::function<void(return_param_list)>; // ALL callback_decl_line |
| // END callback_decls |
| |
| // START declarations |
| // START declare_function |
| virtual ::android::hardware::Status function_name(params_and_callback) = 0; |
| // END declare_function |
| "param_name" // ALL enum_quoted_name_default |
| // END declarations |
| enum Call { |
| // START call_enum_list |
| call_enum_name = ::android::hardware::IBinder::FIRST_CALL_TRANSACTION + 0, // ALL first_call_enum |
| // END call_enum_list |
| }; |
| }; // class Ipackage_name |
| |
| // START namespace_close_section |
| } // namespace namespace_name //ALL namespace_close_line |
| //END namespace_close_section |
| |
| #endif // HIDL_GENERATED_namespace_underscores_I_header_guard_H_ |
| // END file |