CD Manager API
Home
About PdN
Philtered Team
Published
Projects
Wireless
0xC0D3
Tech Support
Links

Description

This is a small C++ API to handle CD-ROM drives under Linux. There is also included a test program for the use of the API. This test program operates the cdrom drive from command line, executes, and returns (unlike default workbone, for example, which ties up the console.) This small application is useful as an alarm - run it from cron to start the cdrom drive in the morning, etc.

Downloads

  1. cdmgr-1.0.tar.gz - Version 1.0
  2. CD Manager Source Code - Version 1.0
  3. CD Manager Documentation - Version 1.0

Installation and Use

In order to make the makefiles you will need to alter the distributed makefiles *.mk in this directory for your system, or get TMAKE from ftp://ftp.troll.no/pub/freebies and run the tmake utility against the provided project files.

There shouldn't be any need for you to 'install' this library on an end user's system. However, if you have a relatively large program this might be the most advantageous thing to do. If you want to compile this as static libraries or dynamic libraries:

	tmake -o library.mk library.pro
	make -f library.mk
	make -f library.mk install

In most cases you will want to compile the cdmgr library as an object file and then link the object file directly into your application (since its so small) in which case, you will include the header file in whatever files use the CdManager API and then in your make file, you do something like this:

	g++ -c -o cdmgr.o cdmgr.cpp
	g++ -c -o foo.o foo.cpp
	g++ -o foo_app cdmgr.o foo.o

To test the functionality of the CdManager library for your platform you want to run the following command(s):

	tmake -o cdmgr.mk cdmgr.pro
	make -f cdmgr.mk

Then run './cdm -a' to see if it will start playing an audio CdRom in your drive.

Other than that, there's not much to it... read the documentation on the API in the docs directory. cheers, Polywog -- E.M. Recio; Philadelphia, PA 19103; USA Email: n2wog@usa.net Homepage: http://polywog.navpoint.com Sociology and Philosophy Student at Drexel University