Browse CVS Repository
Contents of /enbanfukusyaya/EnbanFukusyaYa/DriveAccess/option.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.14 -
( show annotations)
( download)
( as text)
Mon Nov 1 14:34:11 2010 UTC
(13 years, 5 months ago)
by bananajinn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +11 -11 lines
File MIME type: text/x-chdr
*** empty log message ***
| 1 |
/** |
| 2 |
* @file option.h |
| 3 |
* @brief 複写設定 |
| 4 |
* @author BananaJinn |
| 5 |
* @version $Id: option.h,v 1.13 2010/09/05 16:15:22 bananajinn Exp $ |
| 6 |
* 円盤複写屋 |
| 7 |
* Copyright (C) 2004-2006 BananaJinn<banana@mxh.mesh.ne.jp>. |
| 8 |
*/ |
| 9 |
#ifndef __OPTION_H__ |
| 10 |
#define __OPTION_H__ |
| 11 |
|
| 12 |
#include <aspi.h> |
| 13 |
#include "cmd.h" |
| 14 |
|
| 15 |
typedef struct { |
| 16 |
int read_speed; /* 0 で最大速/標準速 */ |
| 17 |
int write_speed; /* 0 で最大速/標準速 */ |
| 18 |
BOOL bufe; /* Buffer Underrun Free Enable */ |
| 19 |
BOOL test_write; /* Test write */ |
| 20 |
BOOL on_the_fly; /* on-the-fly */ |
| 21 |
BOOL dao; /* Disc at once */ |
| 22 |
BYTE *readable_speed; /* 読込可能速度配列 */ |
| 23 |
int num_readable_speed; |
| 24 |
BYTE *writable_speed; /* 書込可能速度配列 */ |
| 25 |
int num_writable_speed; |
| 26 |
WORD flags; /* 有効な項目を示す */ |
| 27 |
char temppath[_MAX_PATH]; |
| 28 |
BOOL outside; |
| 29 |
} OPTIONS; |
| 30 |
|
| 31 |
/* flags value */ |
| 32 |
#define OPFLG_BUFE (1<<0) |
| 33 |
#define OPFLG_TESTWRITE (1<<1) |
| 34 |
#define OPFLG_ONTHEFLY (1<<2) |
| 35 |
#define OPFLG_DAO (1<<3) |
| 36 |
#define OPFLG_TEMPPATH (1<<4) |
| 37 |
#define OPFLG_DVD (1<<5) // DVD系かどうか |
| 38 |
#define OPFLG_BD (1<<6) // BD系かどうか |
| 39 |
#define OPFLG_OUTSIDE (1<<7) |
| 40 |
|
| 41 |
#ifdef __cplusplus |
| 42 |
extern "C" { |
| 43 |
#endif |
| 44 |
|
| 45 |
extern int SetOption(CMDDRIVE *reader, CMDDRIVE *writer, int disc_type); |
| 46 |
extern OPTIONS *GetOption(); |
| 47 |
|
| 48 |
#if defined(WIN32) |
| 49 |
void GetRegString(const char *key, char *string_ret, DWORD size); |
| 50 |
void WriteRegString(const char *key, const char *string); |
| 51 |
#endif /* WIN32 */ |
| 52 |
|
| 53 |
#ifdef __cplusplus |
| 54 |
} |
| 55 |
#endif |
| 56 |
|
| 57 |
|
| 58 |
#endif /* !__OPTION_H__ */ |
|