3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #include <sys/mount.h>
22 #include "um_customize.h"
24 #define MTAB_FILE "/etc/mtab"
25 #define MOUNT_POINT "/opt/storage/usb"
29 int umGetDeviceInfo(UmMainData *ad);
30 void destroy_device(gpointer data);
31 int umReleaseAllDevice(UmMainData *ad);
32 void usb_host_added_cb(UmMainData *ad);
33 void usb_host_removed_cb(UmMainData *ad);
34 int find_host_fd(UmMainData *ad, char *appId);
35 int grantHostPermission(UmMainData *ad, char *appId, int vendor, int product);
36 int launch_host_app(char *appId);
37 Eina_Bool hasHostPermission(UmMainData *ad, char *appId, int vendor, int product);
38 int show_all_usb_devices(GList *devList, int option);
39 void free_func(gpointer data);
40 static int um_usb_storage_added();
41 static int um_usb_storage_removed();
42 int disconnectUsbHost(UmMainData *ad);
44 void add_host_noti_cb(void *data);
45 void remove_host_noti_cb(void *data);
46 void add_mass_storage_cb(keynode_t *in_key, void *data);
47 void remove_mass_storage_cb(keynode_t *in_key, void *data);