New API function burn_scsi_transport_id()

This commit is contained in:
Thomas Schmitt 2009-12-26 08:01:35 +00:00
parent faa760d6ff
commit 7d49a67585
7 changed files with 28 additions and 8 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2009.12.25.223915"
#define Cdrskin_timestamP "2009.12.26.080301"

View File

@ -154,6 +154,13 @@ void burn_finish(void)
burn_running = 0;
}
/* ts A9122 */
/** API function. See libburn.h */
char *burn_scsi_transport_id(int flag)
{
return sg_initialize_msg;
}
/* ts A60813 */
/** API function. See libburn.h */

View File

@ -7,8 +7,8 @@ the transport level aspects of SCSI control and command i/o.
Present implementation: default dummy which enables libburn only to work
with stdio: pseudo drive addresses.
For real implementations see sg-linux.c or sg-freebsd.c
For real implementations see sg-linux.c, sg-freebsd.c,
sg-libcdio.c
*/
@ -39,6 +39,19 @@ Present implementation: default dummy which enables libburn only to work
extern struct libdax_msgs *libdax_messenger;
/** Performs global initialization of the SCSI transport adapter and eventually
needed operating system facilities. Checks for compatibility supporting
software components.
@param msg returns ids and/or error messages of eventual helpers
@param flag unused yet, submit 0
@return 1 = success, <=0 = failure
*/
int sg_initialize(char msg[1024], int flag)
{
strcpy(msg, "internal X/Open adapter sg-dummy");
return 1;
}
/** Returns the next index number and the next enumerated drive address.
The enumeration has to cover all available and accessible drives. It is
allowed to return addresses of drives which are not available but under

View File

@ -244,7 +244,7 @@ static void enumerate_common(char *fname, int bus_no, int host_no,
*/
int sg_initialize(char msg[1024], int flag)
{
/* nothing to be done */
strcpy(msg, "internal FreeBSD CAM adapter sg-freebsd-port");
return 1;
}

View File

@ -64,7 +64,7 @@ int mmc_function_spy(struct burn_drive *d, char * text);
*/
int sg_initialize(char msg[1024], int flag)
{
/* nothing to be done */
strcpy(msg, "internal FreeBSD CAM adapter sg-freebsd");
return 1;
}

View File

@ -223,8 +223,8 @@ int sg_initialize(char msg[1024], int flag)
char *version_text, *msg_pt;
int cdio_ver;
sprintf(msg, "Using sg-libcdio-%d with libcdio version ",
LIBCDIO_VERSION_NUM );
sprintf(msg, "sg-libcdio adapter v%d with libcdio version ",
LIBCDIO_VERSION_NUM);
#if LIBCDIO_VERSION_NUM < 83

View File

@ -1421,7 +1421,7 @@ static void enumerate_common(char *fname, int bus_no, int host_no,
*/
int sg_initialize(char msg[1024], int flag)
{
/* nothing to be done */
strcpy(msg, "internal Linux SG_IO adapter sg-linux");
return 1;
}