sync with private git. updated the license and the boilerplates
[apps/home/quickpanel.git] / daemon / notifications / noti_node.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 __QUICKPANEL_NOTI_NODE_H__
18 #define __QUICKPANEL_NOTI_NODE_H__
19
20 #include <glib.h>
21 #include <notification.h>
22
23 typedef struct _noti_node {
24         GHashTable *table;
25         int n_ongoing;
26         int n_noti;
27 } noti_node;
28
29 typedef struct _noti_node_item {
30         notification_h noti;
31         void *view;
32 } noti_node_item;
33
34 void noti_node_create(noti_node **handle);
35 void noti_node_destroy(noti_node **handle);
36 noti_node_item *noti_node_add(noti_node *handle, notification_h noti, void *view);
37 void noti_node_remove(noti_node *handle, int priv_id);
38 noti_node_item *noti_node_get(noti_node *handle, int priv_id);
39 int noti_node_get_item_count(noti_node *handle, notification_type_e noti_type);
40
41 #endif