d3768eec123ff445ca699f38e9e7ae714186d0d7
[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  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef _MEDIA_SVC_NOTI_H_
21 #define _MEDIA_SVC_NOTI_H_
22
23 #include <media-util-noti.h>
24 #include "media-svc-util.h"
25
26 typedef struct _media_svc_noti_item media_svc_noti_item;
27
28 struct _media_svc_noti_item {
29         int pid;
30         media_item_type_e update_item;
31         media_item_update_type_e update_type;
32         media_type_e media_type;
33         char *media_uuid;
34         char *path;
35         char *mime_type;
36 };
37
38 void _media_svc_set_noti_from_pid(int pid);
39 void _media_svc_initialize_noti_list(void);
40 void _media_svc_insert_item_to_noti_list(media_svc_content_info_s *content_info);
41 void _media_svc_publish_noti_list(void);
42 void _media_svc_destroy_noti_item(media_svc_noti_item *item);
43 int _media_svc_publish_noti(media_item_update_type_e update_type, const char *path, media_type_e media_type, const char *uuid, const char *mime_type);
44 int _media_svc_publish_dir_noti(media_item_update_type_e update_type, const char *path, const char *uuid, int pid);
45
46 #endif /*_MEDIA_SVC_NOTI_H_*/