New API call Xorriso_start_msg_watcher()

This commit is contained in:
2012-09-14 17:52:21 +00:00
parent cce834f76f
commit 7e448296c4
10 changed files with 407 additions and 9 deletions

View File

@ -575,6 +575,17 @@ struct XorrisO { /* the global context of xorriso */
int write_to_channel_lock_ini;
pthread_mutex_t write_to_channel_lock;
int msg_watcher_lock_ini;
pthread_mutex_t msg_watcher_lock;
int msg_watcher_state; /* 0= inactive
1= registered
2= started
3= request to end
*/
int (*msgw_result_handler)(struct XorrisO *xorriso, char *text);
int (*msgw_info_handler)(struct XorrisO *xorriso, char *text);
int msgw_stack_handle;
int status_history_max; /* for -status long_history */
/* 0= no logging of SCSI commands, 1= to stderr */