diff options
author | Mike Lockwood <lockwood@android.com> | 2010-05-16 16:39:32 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-05-17 10:57:09 -0400 |
commit | 9eff99e9d54aa8238a803f4410b5883e47334fd5 (patch) | |
tree | 4dac7007437f395baf4ad7d7552c5033d68d8cec /media/mtp/f_mtp.h | |
parent | da35551845b1ab47dbbae2194f1628442b6115d7 (diff) | |
download | frameworks_base-9eff99e9d54aa8238a803f4410b5883e47334fd5.zip frameworks_base-9eff99e9d54aa8238a803f4410b5883e47334fd5.tar.gz frameworks_base-9eff99e9d54aa8238a803f4410b5883e47334fd5.tar.bz2 |
Add -p option to mtptest program to run in PTP mode instead of MTP
Change-Id: Idbd1437756daab8d6141db49b07d4eb0814c9e7e
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/f_mtp.h')
-rw-r--r-- | media/mtp/f_mtp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/mtp/f_mtp.h b/media/mtp/f_mtp.h index 7307d74..82015a0 100644 --- a/media/mtp/f_mtp.h +++ b/media/mtp/f_mtp.h @@ -18,6 +18,11 @@ #ifndef __LINUX_USB_F_MTP_H #define __LINUX_USB_F_MTP_H +/* Constants for MTP_SET_INTERFACE_MODE */ +#define MTP_INTERFACE_MODE_MTP 0 +#define MTP_INTERFACE_MODE_PTP 1 + + struct mtp_file_range { /* path for file to transfer */ const char *path; @@ -35,5 +40,7 @@ struct mtp_file_range { * The file is created if it does not exist. */ #define MTP_RECEIVE_FILE _IOW('M', 1, struct mtp_file_range) +/* Sets the driver mode to either MTP or PTP */ +#define MTP_SET_INTERFACE_MODE _IOW('M', 2, int) #endif /* __LINUX_USB_F_MTP_H */ |