347e9b250ced3d9696dc72acb86c29871be72ce6
[apps/home/ug-myfile-efl.git] / src / include / mf-ug-inotify-handle.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
18
19
20
21 #ifndef __DEF_MF_UG_INOTIFY_HANDLE_H
22 #define __DEF_MF_UG_INOTIFY_HANDLE_H
23
24 typedef enum _mf_ug_inotify_event mf_ug_inotify_event;
25 enum _mf_ug_inotify_event {
26         UG_MF_INOTI_NONE = 0,
27         UG_MF_INOTI_CREATE,
28         UG_MF_INOTI_DELETE,
29         UG_MF_INOTI_MODIFY,
30         UG_MF_INOTI_MOVE_OUT,
31         UG_MF_INOTI_MOVE_IN,
32         UG_MF_INOTI_DELETE_SELF,
33         UG_MF_INOTI_MOVE_SELF,
34         UG_MF_INOTI_MAX,
35 };
36
37 typedef void (*mf_ug_inotify_cb) (mf_ug_inotify_event event, char *name, void *data);
38
39 int mf_ug_inotify_handle_init_inotify(void);
40 int mf_ug_inotify_handle_add_inotify_watch(const char *path, mf_ug_inotify_cb callback, void *user_data);
41 int mf_ug_inotify_handle_rm_inotify_watch(void);
42 void mf_ug_inotify_handle_finalize_inotify(void);
43
44 #endif