blob: 02cdec37c8a842b0d32242fe6c8c7ae5ba70b097 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001
2/*
3 * Copyright (C) 2008 The Android Open Source Project
4 *
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
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
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.
16 */
17
18#ifndef _UMS_H
19#define _UMS_H
20
21// these must match the corresponding strings in java/android/android/os/UsbListener.java
22#define VOLD_EVT_UMS_ENABLED "ums_enabled"
23#define VOLD_EVT_UMS_DISABLED "ums_disabled"
24#define VOLD_EVT_UMS_CONNECTED "ums_connected"
25#define VOLD_EVT_UMS_DISCONNECTED "ums_disconnected"
26
27
28int ums_send_status(void);
29int ums_enable(char *device_file, char *lun_syspath);
30int ums_disable(char *lun_syspath);
31#endif