2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
21 #ifndef __DEF_MF_UG_INOTIFY_HANDLE_H
22 #define __DEF_MF_UG_INOTIFY_HANDLE_H
24 typedef enum _mf_ug_inotify_event mf_ug_inotify_event;
25 enum _mf_ug_inotify_event {
32 UG_MF_INOTI_DELETE_SELF,
33 UG_MF_INOTI_MOVE_SELF,
37 typedef void (*mf_ug_inotify_cb) (mf_ug_inotify_event event, char *name, void *data);
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);