OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 The Android Open Source Project | 2 * Copyright (C) 2008 The Android Open Source Project |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 * multiple concurrent interfaces and thus 'audio' is the module class | 218 * multiple concurrent interfaces and thus 'audio' is the module class |
219 * and 'primary' or 'a2dp' are module interfaces. This implies that the files | 219 * and 'primary' or 'a2dp' are module interfaces. This implies that the files |
220 * providing these modules would be named audio.primary.<variant>.so and | 220 * providing these modules would be named audio.primary.<variant>.so and |
221 * audio.a2dp.<variant>.so | 221 * audio.a2dp.<variant>.so |
222 * | 222 * |
223 * @return: 0 == success, <0 == error and *module == NULL | 223 * @return: 0 == success, <0 == error and *module == NULL |
224 */ | 224 */ |
225 int hw_get_module_by_class(const char *class_id, const char *inst, | 225 int hw_get_module_by_class(const char *class_id, const char *inst, |
226 const struct hw_module_t **module); | 226 const struct hw_module_t **module); |
227 | 227 |
228 /** | |
229 * Provide a function to handle log messages. | |
230 */ | |
231 typedef int (*hwcplus_log_fn_t)(int prio, const char* tag, const char* msg); | |
232 void hwcplus_set_log_fn(hwcplus_log_fn_t fn); | |
233 | |
234 __END_DECLS | 228 __END_DECLS |
235 | 229 |
236 #endif /* ANDROID_INCLUDE_HARDWARE_HARDWARE_H */ | 230 #endif /* ANDROID_INCLUDE_HARDWARE_HARDWARE_H */ |
OLD | NEW |