From ced4b4876b71412fec76153db0c4a1e67af10c20 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Tue, 27 May 2014 18:38:14 +0000 Subject: [PATCH] Some work on the developer doc (log functions and lowlevel sound) --- bochs/doc/docbook/development/development.dbk | 55 ++++++++++++++++--- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/bochs/doc/docbook/development/development.dbk b/bochs/doc/docbook/development/development.dbk index 51a2a33b2..eaf59f6a2 100644 --- a/bochs/doc/docbook/development/development.dbk +++ b/bochs/doc/docbook/development/development.dbk @@ -680,11 +680,28 @@ The put() methods are used to set up the log module prefix that appears in the log file and the log module name that appears in the config interface. If the name is not specified, the prefix is used instead. + +The setio() method sets up the iofunctions +class for the log file output. This method is only used by the logfunctions +constructors. + + +The getonoff() and setonoff() methods +are used by the config interface to display and change the log actions for a +Bochs facility. + + +The get_default_action() and set_default_action() +methods are also used by the config interface to set up the default action for a +log level. + + +The get_name() and getprefix() methods return +the strings set up with the put() method. The config interface +is also using them to build the menu / dialog to set up the log functions. + - -&FIXME; To be continued. - @@ -1495,7 +1512,6 @@ site.
int stopwaveplayback() - This function is called at the end of a wave data transfer. It should do the following: @@ -1509,9 +1525,9 @@ and it's not going to be opened soon. Which is almost impossible to tell.
int closewaveoutput() - -This function is called just before Bochs exits. It should do the following: +This function is called just before the Bochs simulation quits. It should do +the following: @@ -1566,7 +1582,10 @@ Store the device name so that the device can be opened in startwaverec In addition to this the record handler value should be stored and the record timer -should be registered. +should be registered. This is the definition of record handler callback function: + +typedef Bit32u (*sound_record_handler_t)(void *arg, Bit32u len); + @@ -1608,9 +1627,27 @@ sound output and it takes the same argument list. It should set up the input dev for recording, calculate the size of the recording packet for 0.1 second and start the record timer. +
+
+int getwavepacket(int length, Bit8u data[]) -&FIXME; To be completed. +This method is called from the record handler method of the sound emulation device +to retrieve the recorded wave data packet. + +
+ +
int stopwaverecord() + +This function is called to stop the wave recording. It deactivates the timer that +calls the method to perform the recording. + +
+ +
int closewaveinput() + +This function is called just before the Bochs simulation quits. It is very +similar to the closewaveoutput() method.
@@ -2688,7 +2725,7 @@ cd doc/docbook; touch */*.html Do make install_win32 into /tmp or someplace: -make install_win32 prefix=/tmp/bochs-2.5 +make install_win32 INSTDIR=/tmp/bochs-2.5 This copies all the files into /tmp/bochs-2.5 and then creates a binary ZIP at /tmp/bochs-2.5.zip. Rename that bochs-2.5.win32-bin.zip.