libcdio  0.93
mmc_util.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010, 2012 Rocky Bernstein <rocky@gnu.org>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
25 #ifndef CDIO_MMC_UTIL_H_
26 #define CDIO_MMC_UTIL_H_
27 
28 #include <cdio/device.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33 
36  typedef enum {
89 
94  const char *mmc_feature2str( int i_feature );
95 
104  void mmc_get_drive_cap ( CdIo_t *p_cdio,
105  /*out*/ cdio_drive_read_cap_t *p_read_cap,
106  /*out*/ cdio_drive_write_cap_t *p_write_cap,
107  /*out*/ cdio_drive_misc_cap_t *p_misc_cap);
108 
112  const char *mmc_feature_profile2str( int i_feature_profile );
113 
120 
122 #define MMC_READ_TIMEOUT_DEFAULT 3*60*1000
123 
128  extern uint32_t mmc_read_timeout_ms;
129 
133  extern const char mmc_sense_key2str[16][40];
134 
138 #define MMC_TIMEOUT_DEFAULT 6000
139 
144  extern uint32_t mmc_timeout_ms;
145 
146 #ifdef __cplusplus
147 }
148 #endif /* __cplusplus */
149 
150 #endif /* CDIO_MMC_UTIL_H_ */
151 /*
152  * Local variables:
153  * c-file-style: "gnu"
154  * tab-width: 8
155  * indent-tabs-mode: nil
156  * End:
157  */
Definition: mmc_util.h:61
Definition: mmc_util.h:58
Definition: mmc_util.h:37
Definition: mmc_util.h:70
Definition: mmc_util.h:69
uint32_t mmc_timeout_ms
Definition: mmc_util.h:79
Definition: mmc_util.h:39
const char mmc_sense_key2str[16][40]
bool mmc_is_disctype_rewritable(cdio_mmc_feature_profile_t disctype)
Definition: mmc_util.h:44
Definition: mmc_util.h:71
uint32_t cdio_drive_write_cap_t
Definition: device.h:37
void mmc_get_drive_cap(CdIo_t *p_cdio, cdio_drive_read_cap_t *p_read_cap, cdio_drive_write_cap_t *p_write_cap, cdio_drive_misc_cap_t *p_misc_cap)
Definition: mmc_util.h:68
Definition: mmc_util.h:82
cdio_mmc_feature_profile_t
Definition: mmc_util.h:36
bool mmc_is_disctype_dvd(cdio_mmc_feature_profile_t disctype)
uint32_t cdio_drive_read_cap_t
Definition: device.h:36
Definition: mmc_util.h:77
Definition: mmc_util.h:56
Definition: mmc_util.h:59
Definition: mmc_util.h:55
Definition: mmc_util.h:80
Definition: mmc_util.h:48
bool mmc_is_disctype_bd(cdio_mmc_feature_profile_t disctype)
Definition: mmc_util.h:83
Definition: mmc_util.h:52
const char * mmc_feature_profile2str(int i_feature_profile)
bool mmc_is_disctype_overwritable(cdio_mmc_feature_profile_t disctype)
struct _CdIo CdIo_t
Definition: cdio.h:47
const char * mmc_feature2str(int i_feature)
Definition: mmc_util.h:72
bool mmc_is_disctype_hd_dvd(cdio_mmc_feature_profile_t disctype)
Definition: mmc_util.h:63
Definition: mmc_util.h:41
Definition: mmc_util.h:73
C header for driver- or device-related libcdio calls. ("device" includes CD-image reading devices)...
Definition: mmc_util.h:86
Definition: mmc_util.h:50
Definition: mmc_util.h:65
uint32_t cdio_drive_misc_cap_t
Definition: device.h:38
Definition: mmc_util.h:46
Definition: mmc_util.h:76
Definition: mmc_util.h:67
Definition: mmc_util.h:84
bool mmc_is_disctype_cdrom(cdio_mmc_feature_profile_t disctype)
uint32_t mmc_read_timeout_ms