tizen 2.4 release
[framework/multimedia/libmm-common.git] / include / mm_list_private.h
1 /*
2  * libmm-common
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jonghyuk Choi <jhchoi.choi@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23 /**
24  * This file declares data structures and functions of managing list.
25  *
26  * @file                mmf_list_private.h
27  * @author
28  * @version             1.0
29  * @brief               This file declares data structures and functions of managing list.
30  */
31
32 #ifndef __MMF_LIST_PRIVATE_H__
33 #define __MMF_LIST_PRIVATE_H__
34
35 #ifdef __cplusplus
36         extern "C" {
37 #endif
38
39
40 /**
41  * Append item to list
42  *
43  * @return
44  * @remark
45  * @see
46  */
47 int mmf_list_append(void *data);
48
49
50 /**
51  * Remove item from list
52  *
53  * @return
54  * @remark
55  * @see
56  */
57 int mmf_list_remove(int id);
58
59
60 /**
61  * Find data with its id
62  *
63  * @return
64  * @remark
65  * @see
66  */
67 void *mmf_list_find(int id);
68
69 /**
70  * Find id with its data
71  *
72  * @return
73  * @remark
74  * @see
75  */
76 int mmf_list_find_by_data(void *data);
77
78 #ifdef __cplusplus
79         }
80 #endif
81
82 #endif  /* __MMF_LIST_PRIVATE_H__ */