Modify DCM message structure and so on
[platform/core/multimedia/media-server.git] / lib / include / media-util-dcm.h
1 /*
2  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
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
18 #ifndef _MEDIA_UTIL_DCM_H_
19 #define _MEDIA_UTIL_DCM_H_
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 enum {
26         DCM_REQUEST_MEDIA,
27         DCM_REQUEST_ALL_MEDIA,
28         DCM_REQUEST_START_FACE_DETECTION,
29         DCM_REQUEST_CANCEL_FACE,
30 };
31
32 typedef int (*FaceFunc) (int error_code, int count, void* data);
33
34 int dcm_request_extract_all(uid_t uid);
35 int dcm_request_extract_media(const char *path, uid_t uid);
36 int dcm_request_extract_face_async(const unsigned int request_id, const char *path, FaceFunc func, void *user_data, uid_t uid);
37 int dcm_request_cancel_face(const unsigned int request_id, const char *path);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* _MEDIA_UTIL_DCM_H_ */