2006-08-15 20:37:04 +00:00
|
|
|
/**
|
2006-09-01 22:31:10 +00:00
|
|
|
@author Mario Danic, Thomas Schmitt
|
2006-08-15 20:37:04 +00:00
|
|
|
|
|
|
|
@mainpage Libburn Documentation Index
|
|
|
|
|
|
|
|
@section intro Introduction
|
|
|
|
|
2006-09-01 22:31:10 +00:00
|
|
|
Libburn is an open-source library for reading, mastering and writing
|
|
|
|
optical discs. For now this means only CD-R and CD-RW.
|
2006-08-15 20:37:04 +00:00
|
|
|
|
2006-09-01 22:31:10 +00:00
|
|
|
The project comprises of several more or less interdependent parts which
|
|
|
|
together strive to be a usable foundation for application development.
|
|
|
|
These are libraries, language bindings, and middleware binaries which emulate
|
|
|
|
classical (and valuable) Linux tools.
|
2006-08-15 20:37:04 +00:00
|
|
|
|
2006-11-10 09:37:48 +00:00
|
|
|
Our scope is currently Linux 2.4 and 2.6 only. For ports to other systems
|
|
|
|
we would need : login on a development machine resp. a live OS on CD or DVD,
|
|
|
|
advise from a system person about the equivalent of Linux sg or FreeBSD CAM,
|
|
|
|
volunteers for testing of realistic use cases.
|
2006-09-01 22:31:10 +00:00
|
|
|
|
|
|
|
We do have a workable code base for burning data CDs, though. The burn API is
|
|
|
|
quite comprehensively documented and can be used to build a presentable
|
|
|
|
application.
|
|
|
|
We do have a functional binary which emulates parts of cdrecord in order to
|
|
|
|
prove that usability, and in order to allow you to explore libburn's scope
|
|
|
|
by help of existing cdrecord frontends.
|
|
|
|
|
2006-09-02 09:08:50 +00:00
|
|
|
@subsection components The project components (list subject to growth, hopefully):
|
2006-09-01 22:31:10 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
- libburn is the library by which preformatted data get onto optical media.
|
2006-09-01 22:31:10 +00:00
|
|
|
It uses either /dev/sgN (e.g. on kernel 2.4 with ide-scsi) or
|
|
|
|
/dev/hdX (e.g. on kernel 2.6).
|
|
|
|
libburn is the foundation of our cdrecord emulation.
|
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
- libisofs is the library to pack up hard disk files and directories into a
|
2006-09-01 22:31:10 +00:00
|
|
|
ISO 9660 disk image. This may then be brought to CD via libburn.
|
|
|
|
libisofs is to be the foundation of our upcoming mkisofs emulation.
|
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
- cdrskin is a limited cdrecord compatibility wrapper for libburn.
|
2006-09-01 22:31:10 +00:00
|
|
|
cdrecord is a powerful GPL'ed burn program included in Joerg
|
|
|
|
Schilling's cdrtools. cdrskin strives to be a second source for
|
|
|
|
the services traditionally provided by cdrecord.
|
|
|
|
cdrskin does not contain any bytes copied from cdrecord's sources.
|
|
|
|
Many bytes have been copied from the message output of cdrecord
|
|
|
|
runs, though.
|
|
|
|
See cdrskin/README for more.
|
|
|
|
|
2006-09-02 09:08:50 +00:00
|
|
|
- "test" is a collection of application gestures and examples given by the
|
2006-09-06 15:27:03 +00:00
|
|
|
authors of the library features. The main API example of libburn
|
|
|
|
is named test/libburner.c .
|
|
|
|
Explore these examples if you look for inspiration.
|
2006-09-01 22:31:10 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
We plan to be a responsive upstream. Bear with us.
|
|
|
|
|
|
|
|
|
|
|
|
@section using Using the libraries
|
|
|
|
|
|
|
|
Our build system is based on autotools.
|
2006-09-01 22:31:10 +00:00
|
|
|
User experience tells us that you will need at least autotools version 1.7.
|
|
|
|
|
|
|
|
To build libburn and its subprojects it should be sufficient to go into
|
|
|
|
its toplevel directory and execute
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
- ./bootstrap (needed if you downloaded from SVN)
|
|
|
|
|
|
|
|
- ./configure
|
|
|
|
|
|
|
|
- make
|
2006-09-01 22:31:10 +00:00
|
|
|
|
|
|
|
To make the libraries accessible for running resp. developing applications
|
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
- make install
|
2006-09-01 22:31:10 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
Both libraries are written in C language and get built by autotools.
|
|
|
|
Thus we expect them to be useable by a wide range of Linux-implemented
|
|
|
|
languages and development tools.
|
2006-09-02 09:50:22 +00:00
|
|
|
|
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
@section libburner Libburner
|
2006-09-02 09:55:46 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
libburner is a minimal demo application for the library libburn
|
|
|
|
(see: libburn/libburn.h) as provided on http://libburn.pykix.org .
|
|
|
|
It can list the available devices, can blank a CD-RW and
|
|
|
|
can burn to CD-R or CD-RW.
|
|
|
|
|
|
|
|
It's main purpose, nevertheless, is to show you how to use libburn and also
|
|
|
|
to serve the libburn team as reference application. libburner does indeed
|
|
|
|
define the standard way how above three gestures can be implemented and
|
|
|
|
stay upward compatible for a good while.
|
|
|
|
|
|
|
|
@subsection libburner-help Libburner --help
|
|
|
|
<pre>
|
|
|
|
Usage: test/libburner
|
|
|
|
[--drive <address>|<driveno>|"-"]
|
2006-10-20 13:58:53 +00:00
|
|
|
[--blank_fast|--blank_full] [--audio]
|
|
|
|
[--try_to_simulate] [--stdin_size <bytes>]
|
|
|
|
[<one or more imagefiles>|"-"]
|
2006-09-06 15:27:03 +00:00
|
|
|
Examples
|
|
|
|
A bus scan (needs rw-permissions to see a drive):
|
|
|
|
test/libburner --drive -
|
|
|
|
Burn a file to drive chosen by number:
|
2006-10-20 13:58:53 +00:00
|
|
|
test/libburner --drive 0 my_image_file
|
2006-09-06 15:27:03 +00:00
|
|
|
Burn a file to drive chosen by persistent address:
|
2006-10-20 13:58:53 +00:00
|
|
|
test/libburner --drive /dev/hdc my_image_file
|
2006-09-06 15:27:03 +00:00
|
|
|
Blank a used CD-RW (is combinable with burning in one run):
|
2006-10-20 13:58:53 +00:00
|
|
|
test/libburner --drive /dev/hdc --blank_fast
|
|
|
|
Burn two audio tracks
|
|
|
|
lame --decode -t /path/to/track1.mp3 track1.cd
|
|
|
|
test/dewav /path/to/track2.wav -o track2.cd
|
|
|
|
test/libburner --drive /dev/hdc --audio track1.cd track2.cd
|
2006-09-06 15:27:03 +00:00
|
|
|
Burn a compressed afio archive on-the-fly, pad up to 700 MB:
|
|
|
|
( cd my_directory ; find . -print | afio -oZ - ) | \
|
2006-10-20 13:58:53 +00:00
|
|
|
test/libburner --drive /dev/hdc --stdin_size 734003200 -
|
|
|
|
To be read from *not mounted* CD via: afio -tvZ /dev/hdc
|
2006-09-06 15:27:03 +00:00
|
|
|
Program tar would need a clean EOF which our padded CD cannot deliver.
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
@subsection libburner-source Sourceode of libburner
|
|
|
|
|
|
|
|
Click on blue names of functions, structures, variables, etc in oder to
|
|
|
|
get to the according specs of libburn API or libburner sourcecode.
|
2006-09-02 09:55:46 +00:00
|
|
|
|
2006-08-15 20:37:04 +00:00
|
|
|
*/
|