diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 06646d52..9fc05607 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.12.25.223915" +#define Cdrskin_timestamP "2009.12.26.080301" diff --git a/libburn/trunk/libburn/init.c b/libburn/trunk/libburn/init.c index d2c0aa70..71f0695f 100644 --- a/libburn/trunk/libburn/init.c +++ b/libburn/trunk/libburn/init.c @@ -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 */ diff --git a/libburn/trunk/libburn/sg-dummy.c b/libburn/trunk/libburn/sg-dummy.c index f33fc501..08378aae 100644 --- a/libburn/trunk/libburn/sg-dummy.c +++ b/libburn/trunk/libburn/sg-dummy.c @@ -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 diff --git a/libburn/trunk/libburn/sg-freebsd-port.c b/libburn/trunk/libburn/sg-freebsd-port.c index 18d8980b..7ade1d86 100644 --- a/libburn/trunk/libburn/sg-freebsd-port.c +++ b/libburn/trunk/libburn/sg-freebsd-port.c @@ -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; } diff --git a/libburn/trunk/libburn/sg-freebsd.c b/libburn/trunk/libburn/sg-freebsd.c index 1f86735b..7f56d843 100644 --- a/libburn/trunk/libburn/sg-freebsd.c +++ b/libburn/trunk/libburn/sg-freebsd.c @@ -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; } diff --git a/libburn/trunk/libburn/sg-libcdio.c b/libburn/trunk/libburn/sg-libcdio.c index eadc2d9a..bdd1dc17 100644 --- a/libburn/trunk/libburn/sg-libcdio.c +++ b/libburn/trunk/libburn/sg-libcdio.c @@ -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 diff --git a/libburn/trunk/libburn/sg-linux.c b/libburn/trunk/libburn/sg-linux.c index 088d054b..d2784bb8 100644 --- a/libburn/trunk/libburn/sg-linux.c +++ b/libburn/trunk/libburn/sg-linux.c @@ -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; }