New API function burn_set_messenger()
This commit is contained in:
parent
7654785d43
commit
f379a2c91a
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2007.09.15.171844"
|
||||
#define Cdrskin_timestamP "2007.09.15.172141"
|
||||
|
@ -25,6 +25,8 @@
|
||||
#include "libdax_msgs.h"
|
||||
struct libdax_msgs *libdax_messenger= NULL;
|
||||
|
||||
static int libdax_messenger_is_own = 1;
|
||||
|
||||
|
||||
int burn_running = 0;
|
||||
|
||||
@ -292,7 +294,7 @@ void burn_set_signal_handling(void *handle, burn_abort_handler_t handler,
|
||||
strncpy(abort_message_prefix, (char *) handle,
|
||||
sizeof(abort_message_prefix)-1);
|
||||
abort_message_prefix[sizeof(abort_message_prefix)-1] = 0;
|
||||
abort_control_pid= getpid();
|
||||
abort_control_pid = getpid();
|
||||
Cleanup_set_handlers(handle, (Cleanup_app_handler_T) handler, mode|4);
|
||||
}
|
||||
|
||||
@ -303,3 +305,14 @@ void burn_allow_untested_profiles(int yes)
|
||||
burn_support_untested_profiles = !!yes;
|
||||
}
|
||||
|
||||
|
||||
/* ts A70915 : API */
|
||||
int burn_set_messenger(void *messenger)
|
||||
{
|
||||
if (libdax_messenger_is_own)
|
||||
libdax_msgs_destroy(&libdax_messenger, 0);
|
||||
libdax_messenger = (struct libdax_msgs *) messenger;
|
||||
libdax_messenger_is_own = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -1875,6 +1875,17 @@ int burn_msgs_obtain(char *minimum_severity,
|
||||
char severity[]);
|
||||
|
||||
|
||||
/* ts A70915 */
|
||||
/** Replace the messenger object handle of libburn by a compatible handle
|
||||
obtained from a related library. The own message object gets destroyed,
|
||||
so it is IMPORTANT to shut down libburn BEFORE the library which provides
|
||||
the messenger object. See also: libisofs, API function iso_get_messenger().
|
||||
@param messenger The foreign but compatible message handle.
|
||||
@return 1 : success, <=0 : failure
|
||||
*/
|
||||
int burn_set_messenger(void *messenger);
|
||||
|
||||
|
||||
/* ts A61002 */
|
||||
/** The prototype of a handler function suitable for burn_set_abort_handling().
|
||||
Such a function has to return -2 if it does not want the process to
|
||||
|
Loading…
Reference in New Issue
Block a user