1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (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 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef ANDROID_EFFECTSFACTORY_H_ 18 #define ANDROID_EFFECTSFACTORY_H_ 19 20 #include <cutils/log.h> 21 #include <pthread.h> 22 #include <dirent.h> 23 #include <media/EffectsFactoryApi.h> 24 25 #if __cplusplus 26 extern "C" { 27 #endif 28 29 30 typedef struct list_elem_s { 31 void *object; 32 struct list_elem_s *next; 33 } list_elem_t; 34 35 typedef struct lib_entry_s { 36 audio_effect_library_t *desc; 37 char *name; 38 char *path; 39 void *handle; 40 list_elem_t *effects; //list of effect_descriptor_t 41 pthread_mutex_t lock; 42 } lib_entry_t; 43 44 typedef struct effect_entry_s { 45 struct effect_interface_s *itfe; 46 effect_handle_t subItfe; 47 lib_entry_t *lib; 48 } effect_entry_t; 49 50 #if __cplusplus 51 } // extern "C" 52 #endif 53 54 55 #endif /*ANDROID_EFFECTSFACTORY_H_*/ 56