blob: 17ad3f01681be701d12a028cf54b0668f37c04b7 [file] [log] [blame]
Eric Laurent135ad072010-05-21 06:05:13 -07001/*
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/EffectFactoryApi.h>
24
25
26#if __cplusplus
27extern "C" {
28#endif
29
30typedef struct list_elem_s {
31 void *object;
32 struct list_elem_s *next;
33} list_elem_t;
34
35typedef struct lib_entry_s {
36 char path[PATH_MAX];
37 void *handle;
38 effect_CreateEffect_t createFx;
39 effect_ReleaseEffect_t releaseFx;
40 list_elem_t *effects; //list of effect_descriptor_t
41 pthread_mutex_t lock;
42} lib_entry_t;
43
44typedef struct effect_entry_s {
45 struct effect_interface_s *itfe;
46 effect_interface_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_*/