Code sync
[apps/native/starter.git] / include / pkg_event.h
1  /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
4   * Licensed under the Flora License, Version 1.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.tizenopensource.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
18
19 #ifndef __NOTIFIER_H__
20 #define __NOTIFIER_H__
21 #include <stdbool.h>
22
23 #if !defined(PUBLIC)
24 #define PUBLIC          __attribute__((visibility("default")))  /**<All other from outside modules can access this typed API */
25 #endif
26
27 #if !defined(PROTECTED)
28 #define PROTECTED       __attribute__((visibility("hidden")))   /**<All other from outside modules can not access this directly */
29 #endif
30
31 #if !defined(PRIVATE)
32 #define PRIVATE         __attribute__((visibility("internal"))) /**<Does not export APIs to the other. only can be accessed in this module */
33 #endif
34
35
36 struct desktop_notifier {
37     int number;
38     int ifd;
39     Ecore_Fd_Handler *handler;
40 };
41
42
43 PRIVATE void pkg_event_init(void);
44 PRIVATE void pkg_event_fini(void);
45
46 #endif