New API function burn_set_messenger()
This commit is contained in:
parent
6367e324ec
commit
9face00707
@ -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;
|
||||
|
||||
@ -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