Update scanner process
[platform/core/multimedia/libmedia-service.git] / src / include / common / media-svc-noti.h
1 /*
2  * libmedia-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@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 #ifndef _MEDIA_SVC_NOTI_H_
23 #define _MEDIA_SVC_NOTI_H_
24
25 #include "media-svc-types.h"
26 #include "media-svc-env.h"
27 #include "media-svc-debug.h"
28 #include <media-util-noti.h>
29 #include <media-util-noti-internal.h>
30
31 typedef struct _media_svc_noti_item media_svc_noti_item;
32
33 struct _media_svc_noti_item {
34         int pid;
35         media_item_type_e update_item;
36         media_item_update_type_e update_type;
37         media_type_e media_type;
38         char *media_uuid;
39         char *path;
40         char *mime_type;
41 };
42
43 void _media_svc_set_noti_from_pid(int pid);
44 int _media_svc_create_noti_list(int count);
45 int _media_svc_insert_item_to_noti_list(media_svc_content_info_s *content_info, int cnt);
46 int _media_svc_destroy_noti_list(int all_cnt);
47 int _media_svc_publish_noti_list(int all_cnt);
48 int _media_svc_destroy_noti_item(media_svc_noti_item *item);
49 int _media_svc_publish_noti(media_item_type_e update_item,
50                                                         media_item_update_type_e update_type,
51                                                         const char *path,
52                                                         media_type_e media_type,
53                                                         const char *uuid,
54                                                         const char *mime_type
55 );
56 int _media_svc_publish_dir_noti(media_item_type_e update_item,
57                                                         media_item_update_type_e update_type,
58                                                         const char *path,
59                                                         media_type_e media_type,
60                                                         const char *uuid,
61                                                         const char *mime_type,
62                                                         int pid
63 );
64 int _media_svc_publish_dir_noti_v2(media_item_type_e update_item,
65                                                         media_item_update_type_e update_type,
66                                                         const char *path,
67                                                         media_type_e media_type,
68                                                         const char *uuid,
69                                                         const char *mime_type,
70                                                         int pid
71 );
72
73
74
75
76
77 #endif /*_MEDIA_SVC_NOTI_H_*/
78