Lines Matching refs:module

49  * All module implementations must set the hw_module_t.hal_api_version field
50 * to this value when declaring the module with HAL_MODULE_INFO_SYM.
60 * Helper macros for module implementors.
63 * versions so that implementations can explicitly specify module/device
82 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
84 * followed by module specific information.
91 * The API version of the implemented module. The module owner is
92 * responsible for updating the version when a module interface has
96 * The module user must interpret the version field to decide whether or
97 * not to inter-operate with the supplied module implementation.
99 * it knows how to manage different versions of the gralloc-module API,
100 * and AudioFlinger must know how to do the same for audio-module API.
102 * The module API version should include a major and a minor component.
120 * The API version of the HAL module interface. This is meant to
132 /** Identifier of module */
135 /** Name of this module */
138 /** Author/owner/implementor of the module */
144 /** module's dso */
154 int (*open)(const struct hw_module_t* module, const char* id,
161 * followed by module specific public methods and attributes.
168 * Version of the module-specific device API. This value is used by
169 * the derived-module user to manage different device implementations.
171 * The module user is responsible for checking the module_api_version
173 * communicating with the specific module implementation.
175 * One module can support multiple devices with different versions. This
180 * This field is interpreted by the module user and is ignored by the
185 /** reference to the module this device belongs to */
186 struct hw_module_t* module;
207 * Get the module info associated with a module by id.
209 * @return: 0 == success, <0 == error and *module == NULL
211 int hw_get_module(const char *id, const struct hw_module_t **module);
214 * Get the module info associated with a module instance by class 'class_id'
218 * multiple concurrent interfaces and thus 'audio' is the module class
219 * and 'primary' or 'a2dp' are module interfaces. This implies that the files
223 * @return: 0 == success, <0 == error and *module == NULL
226 const struct hw_module_t **module);