Commit 73a94d98 authored by claes's avatar claes

Mismatch in ldhses and ldhwb fixed

parent 555f7ba5
...@@ -2668,9 +2668,10 @@ int WNav::menu_tree_search_children( char *name, wnav_sMenu *child_list, ...@@ -2668,9 +2668,10 @@ int WNav::menu_tree_search_children( char *name, wnav_sMenu *child_list,
return WNAV__NOTFOUND; return WNAV__NOTFOUND;
} }
int WNav::volume_attached( ldh_tSesContext ldhsession, int pop) int WNav::volume_attached( ldh_tWBContext wbcontext, ldh_tSesContext ldhsession, int pop)
{ {
ldhses = ldhsession; ldhses = ldhsession;
wbctx = wbcontext;
wccm_store_ldhses( (void *)this, ldhses); wccm_store_ldhses( (void *)this, ldhses);
if ( window_type != wnav_eWindowType_No) if ( window_type != wnav_eWindowType_No)
show_volume( pop); show_volume( pop);
......
...@@ -308,7 +308,7 @@ class WNav { ...@@ -308,7 +308,7 @@ class WNav {
int open_plc( pwr_tOid oid); int open_plc( pwr_tOid oid);
int is_editmode() { return editmode;}; int is_editmode() { return editmode;};
void set_editmode( int value); void set_editmode( int value);
int volume_attached( ldh_tSesContext ldhsession, int pop); int volume_attached( ldh_tWBContext wbcontext, ldh_tSesContext ldhsession, int pop);
int volume_detached(); int volume_detached();
void ldh_event( ldh_sEvent *event); void ldh_event( ldh_sEvent *event);
void ldh_refresh( pwr_tObjid new_open); void ldh_refresh( pwr_tObjid new_open);
......
...@@ -1123,7 +1123,7 @@ static int wnav_set_func( void *client_data, ...@@ -1123,7 +1123,7 @@ static int wnav_set_func( void *client_data,
return WNAV__SYNTAX; return WNAV__SYNTAX;
} }
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
termflg = ODD( dcli_get_qualifier( "/TERMINAL", arg2_str)); termflg = ODD( dcli_get_qualifier( "/TERMINAL", arg2_str));
...@@ -1183,7 +1183,7 @@ static int wnav_set_func( void *client_data, ...@@ -1183,7 +1183,7 @@ static int wnav_set_func( void *client_data,
int shodetecttext; int shodetecttext;
pwr_tStatus sts; pwr_tStatus sts;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/SIGNALOBJECTSEG" , str))) if ( ODD( dcli_get_qualifier( "/SIGNALOBJECTSEG" , str)))
...@@ -1393,7 +1393,7 @@ static int wnav_show_func( void *client_data, ...@@ -1393,7 +1393,7 @@ static int wnav_show_func( void *client_data,
else if ( strncmp( arg1_str, "VOLUMES", strlen( arg1_str)) == 0) else if ( strncmp( arg1_str, "VOLUMES", strlen( arg1_str)) == 0)
{ {
/* Command is "SHOW VOLUMES" */ /* Command is "SHOW VOLUMES" */
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( wnav->window_type == wnav_eWindowType_No) if ( wnav->window_type == wnav_eWindowType_No)
...@@ -1445,7 +1445,7 @@ static int wnav_show_func( void *client_data, ...@@ -1445,7 +1445,7 @@ static int wnav_show_func( void *client_data,
if ( wnav->window_type == wnav_eWindowType_No) if ( wnav->window_type == wnav_eWindowType_No)
return WNAV__CMDMODE; return WNAV__CMDMODE;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/NAME", name_str))) if ( ODD( dcli_get_qualifier( "/NAME", name_str)))
...@@ -1515,7 +1515,7 @@ static int wnav_show_func( void *client_data, ...@@ -1515,7 +1515,7 @@ static int wnav_show_func( void *client_data,
// Command is "SHOW OBJECTS" // Command is "SHOW OBJECTS"
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/OBJID", objid_str))) if ( ODD( dcli_get_qualifier( "/OBJID", objid_str)))
...@@ -1619,7 +1619,7 @@ static int wnav_show_func( void *client_data, ...@@ -1619,7 +1619,7 @@ static int wnav_show_func( void *client_data,
char msg[160]; char msg[160];
int size; int size;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/NAME", name_str))) if ( ODD( dcli_get_qualifier( "/NAME", name_str)))
...@@ -1691,7 +1691,7 @@ static int wnav_show_func( void *client_data, ...@@ -1691,7 +1691,7 @@ static int wnav_show_func( void *client_data,
//else //else
// volumestr_p = NULL; // volumestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_show_modules( wnav->ldhses, objidstr_p, namestr_p, sts = utl_show_modules( wnav->ldhses, objidstr_p, namestr_p,
...@@ -1917,7 +1917,7 @@ static int wnav_compile_func( void *client_data, ...@@ -1917,7 +1917,7 @@ static int wnav_compile_func( void *client_data,
int i; int i;
int size; int size;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt); sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt);
...@@ -1990,7 +1990,7 @@ static int wnav_compile_func( void *client_data, ...@@ -1990,7 +1990,7 @@ static int wnav_compile_func( void *client_data,
} }
else else
{ {
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_compile( wnav->ldhses, ldh_SessionToWB(wnav->ldhses), sts = utl_compile( wnav->ldhses, ldh_SessionToWB(wnav->ldhses),
...@@ -2024,7 +2024,7 @@ static int wnav_print_func( void *client_data, ...@@ -2024,7 +2024,7 @@ static int wnav_print_func( void *client_data,
document = EVEN( dcli_get_qualifier( "/NODOCUMENT", NULL)); document = EVEN( dcli_get_qualifier( "/NODOCUMENT", NULL));
overview = EVEN( dcli_get_qualifier( "/NOOVERVIEW", NULL)); overview = EVEN( dcli_get_qualifier( "/NOOVERVIEW", NULL));
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/PLCPGM", plcpgm_str))) if ( ODD( dcli_get_qualifier( "/PLCPGM", plcpgm_str)))
...@@ -2069,7 +2069,7 @@ static int wnav_print_func( void *client_data, ...@@ -2069,7 +2069,7 @@ static int wnav_print_func( void *client_data,
int i; int i;
int size; int size;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt); sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt);
...@@ -2128,7 +2128,7 @@ static int wnav_redraw_func( void *client_data, ...@@ -2128,7 +2128,7 @@ static int wnav_redraw_func( void *client_data,
if ( ODD( dcli_get_qualifier( "/ALL", NULL))) if ( ODD( dcli_get_qualifier( "/ALL", NULL)))
{ {
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/FROM_PLCPGM", from_str))) if ( ODD( dcli_get_qualifier( "/FROM_PLCPGM", from_str)))
...@@ -2149,7 +2149,7 @@ static int wnav_redraw_func( void *client_data, ...@@ -2149,7 +2149,7 @@ static int wnav_redraw_func( void *client_data,
} }
else if ( ODD( dcli_get_qualifier( "/PLCPGM", plcpgm_str))) else if ( ODD( dcli_get_qualifier( "/PLCPGM", plcpgm_str)))
{ {
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( wnav->parent_wid == 0) if ( wnav->parent_wid == 0)
...@@ -2166,7 +2166,7 @@ static int wnav_redraw_func( void *client_data, ...@@ -2166,7 +2166,7 @@ static int wnav_redraw_func( void *client_data,
else if ( ODD( dcli_get_qualifier( "/HIERARCHY", hier_str))) else if ( ODD( dcli_get_qualifier( "/HIERARCHY", hier_str)))
{ {
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( ODD( dcli_get_qualifier( "/FROM_PLCPGM", from_str))) if ( ODD( dcli_get_qualifier( "/FROM_PLCPGM", from_str)))
...@@ -2192,7 +2192,7 @@ static int wnav_redraw_func( void *client_data, ...@@ -2192,7 +2192,7 @@ static int wnav_redraw_func( void *client_data,
int i; int i;
int size; int size;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt); sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt);
...@@ -2244,7 +2244,7 @@ static int wnav_generate_func( void *client_data, ...@@ -2244,7 +2244,7 @@ static int wnav_generate_func( void *client_data,
{ {
int sts; int sts;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = ge_generate_web( wnav->ldhses); sts = ge_generate_web( wnav->ldhses);
...@@ -2326,7 +2326,7 @@ static int wnav_list_func( void *client_data, ...@@ -2326,7 +2326,7 @@ static int wnav_list_func( void *client_data,
strcat( descriptor_str, descstr); strcat( descriptor_str, descstr);
} }
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_list( wnav->ldhses, descriptor_str, hierstr_p, objectstr_p, sts = utl_list( wnav->ldhses, descriptor_str, hierstr_p, objectstr_p,
...@@ -2366,7 +2366,7 @@ static int wnav_list_func( void *client_data, ...@@ -2366,7 +2366,7 @@ static int wnav_list_func( void *client_data,
else else
volumestr_p = NULL; volumestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( !shortname) if ( !shortname)
...@@ -2456,7 +2456,7 @@ static int wnav_list_func( void *client_data, ...@@ -2456,7 +2456,7 @@ static int wnav_list_func( void *client_data,
else else
volumestr_p = NULL; volumestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
// Search for local signal list descriptor // Search for local signal list descriptor
...@@ -2511,7 +2511,7 @@ static int wnav_list_func( void *client_data, ...@@ -2511,7 +2511,7 @@ static int wnav_list_func( void *client_data,
else else
volumestr_p = NULL; volumestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
// Search for local signal list descriptor // Search for local signal list descriptor
...@@ -2595,7 +2595,7 @@ static int wnav_list_func( void *client_data, ...@@ -2595,7 +2595,7 @@ static int wnav_list_func( void *client_data,
else else
volumestr_p = NULL; volumestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
// Search for local signal list descriptor // Search for local signal list descriptor
...@@ -2630,7 +2630,7 @@ static int wnav_list_func( void *client_data, ...@@ -2630,7 +2630,7 @@ static int wnav_list_func( void *client_data,
// command is "LIST RTTLISTS" // command is "LIST RTTLISTS"
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
// Get the filename // Get the filename
...@@ -2820,7 +2820,7 @@ static int wnav_configure_func( void *client_data, ...@@ -2820,7 +2820,7 @@ static int wnav_configure_func( void *client_data,
else else
tablestr_p = NULL; tablestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_configure_card( wnav->ldhses, rack, cardname, cardclass, sts = utl_configure_card( wnav->ldhses, rack, cardname, cardclass,
...@@ -2864,7 +2864,7 @@ static int wnav_sort_func( void *client_data, ...@@ -2864,7 +2864,7 @@ static int wnav_sort_func( void *client_data,
if ( ODD( dcli_get_qualifier( "/PARENT", NULL))) if ( ODD( dcli_get_qualifier( "/PARENT", NULL)))
{ {
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_sortchildren( wnav->ldhses, parentstr, sorttype); sts = utl_sortchildren( wnav->ldhses, parentstr, sorttype);
...@@ -2883,7 +2883,7 @@ static int wnav_sort_func( void *client_data, ...@@ -2883,7 +2883,7 @@ static int wnav_sort_func( void *client_data,
int i; int i;
int size; int size;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt); sts = wnav->get_select( &sel_list, &sel_is_attr, &sel_cnt);
...@@ -2990,7 +2990,7 @@ static int wnav_copy_func( void *client_data, ...@@ -2990,7 +2990,7 @@ static int wnav_copy_func( void *client_data,
return WNAV__QUAL; return WNAV__QUAL;
} }
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_copy_objects( wnav->ldhses, sourcestr, destinationstr, namestr, sts = utl_copy_objects( wnav->ldhses, sourcestr, destinationstr, namestr,
...@@ -3294,7 +3294,7 @@ static int wnav_move_func( void *client_data, ...@@ -3294,7 +3294,7 @@ static int wnav_move_func( void *client_data,
return WNAV__QUAL; return WNAV__QUAL;
} }
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_move_object( wnav->ldhses, sourcestr, destinationstr_ptr, sts = utl_move_object( wnav->ldhses, sourcestr, destinationstr_ptr,
...@@ -3457,7 +3457,6 @@ static int wnav_create_func( void *client_data, ...@@ -3457,7 +3457,6 @@ static int wnav_create_func( void *client_data,
char *volumestr_p; char *volumestr_p;
pwr_tStatus sts; pwr_tStatus sts;
int allvolumes; int allvolumes;
int classvolumes;
// Command is "CREATE LOADFILES" // Command is "CREATE LOADFILES"
...@@ -3468,18 +3467,16 @@ static int wnav_create_func( void *client_data, ...@@ -3468,18 +3467,16 @@ static int wnav_create_func( void *client_data,
} }
allvolumes = ODD( dcli_get_qualifier( "/ALL", NULL)); allvolumes = ODD( dcli_get_qualifier( "/ALL", NULL));
classvolumes = ODD( dcli_get_qualifier( "/CLASS", NULL));
if ( ODD( dcli_get_qualifier( "/VOLUME" , volumestr))) if ( ODD( dcli_get_qualifier( "/VOLUME" , volumestr)))
volumestr_p = volumestr; volumestr_p = volumestr;
else else
volumestr_p = NULL; volumestr_p = NULL;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_create_loadfiles( wnav->ldhses, volumestr_p, allvolumes, sts = utl_create_loadfiles( wnav->ldhses, volumestr_p, allvolumes);
classvolumes);
if ( EVEN(sts)) if ( EVEN(sts))
wnav->message(' ', wnav_get_message(sts)); wnav->message(' ', wnav_get_message(sts));
return sts; return sts;
...@@ -3542,7 +3539,7 @@ static int wnav_create_func( void *client_data, ...@@ -3542,7 +3539,7 @@ static int wnav_create_func( void *client_data,
return WNAV__QUAL; return WNAV__QUAL;
} }
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_create_object( wnav->ldhses, namestr, classtr, destinationstr, sts = utl_create_object( wnav->ldhses, namestr, classtr, destinationstr,
...@@ -3558,6 +3555,8 @@ static int wnav_create_func( void *client_data, ...@@ -3558,6 +3555,8 @@ static int wnav_create_func( void *client_data,
char classtr[80]; char classtr[80];
char identitystr[80]; char identitystr[80];
pwr_tStatus sts; pwr_tStatus sts;
pwr_tCid cid;
pwr_tVid vid;
// Command is "CREATE VOLUME" // Command is "CREATE VOLUME"
...@@ -3571,16 +3570,33 @@ static int wnav_create_func( void *client_data, ...@@ -3571,16 +3570,33 @@ static int wnav_create_func( void *client_data,
if ( EVEN( dcli_get_qualifier( "/IDENTITY", identitystr))) if ( EVEN( dcli_get_qualifier( "/IDENTITY", identitystr)))
sts = 0; sts = 0;
if ( EVEN(sts)) if ( EVEN(sts)) {
{
wnav->message('E', "Qualifer required"); wnav->message('E', "Qualifer required");
return WNAV__QUAL; return WNAV__QUAL;
} }
sts = wnav_wccm_get_wbctx_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_create_volume ( wnav->wbctx, namestr, classtr, identitystr); sts = ldh_ClassNameToId( wnav->ldhses, &cid, classtr);
if ( EVEN(sts)) {
wnav->message(' ', wnav_get_message(sts));
return sts;
}
sts = cdh_StringToVolumeId( identitystr, &vid);
if ( EVEN(sts)) {
wnav->message(' ', wnav_get_message(sts));
return sts;
}
try {
wb_erep *erep = *(wb_env *)wnav->wbctx;
erep->createVolume( &sts, vid, cid, namestr);
}
catch ( wb_error &e) {
sts = e.sts();
}
if ( EVEN(sts)) if ( EVEN(sts))
wnav->message(' ', wnav_get_message(sts)); wnav->message(' ', wnav_get_message(sts));
return sts; return sts;
...@@ -3765,7 +3781,7 @@ static int wnav_delete_func( void *client_data, ...@@ -3765,7 +3781,7 @@ static int wnav_delete_func( void *client_data,
confirm = EVEN( dcli_get_qualifier( "/NOCONFIRM", NULL)); confirm = EVEN( dcli_get_qualifier( "/NOCONFIRM", NULL));
log = EVEN( dcli_get_qualifier( "/NOLOG", NULL)); log = EVEN( dcli_get_qualifier( "/NOLOG", NULL));
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_delete_objects( wnav->ldhses, hierstr_ptr, classtr_ptr, namestr_ptr, sts = utl_delete_objects( wnav->ldhses, hierstr_ptr, classtr_ptr, namestr_ptr,
...@@ -3795,7 +3811,7 @@ static int wnav_delete_func( void *client_data, ...@@ -3795,7 +3811,7 @@ static int wnav_delete_func( void *client_data,
confirm = EVEN( dcli_get_qualifier( "/NOCONFIRM", NULL)); confirm = EVEN( dcli_get_qualifier( "/NOCONFIRM", NULL));
log = EVEN( dcli_get_qualifier( "/NOLOG", NULL)); log = EVEN( dcli_get_qualifier( "/NOLOG", NULL));
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = utl_delete_tree( wnav->ldhses, namestr_ptr, confirm, log); sts = utl_delete_tree( wnav->ldhses, namestr_ptr, confirm, log);
...@@ -3927,7 +3943,7 @@ static int wnav_wb_func( void *client_data, ...@@ -3927,7 +3943,7 @@ static int wnav_wb_func( void *client_data,
else else
hierarchystr_p = 0; hierarchystr_p = 0;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->wbctx); sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
sts = ldh_WbDump( wnav->ldhses, hierarchystr_p, outputstr); sts = ldh_WbDump( wnav->ldhses, hierarchystr_p, outputstr);
if ( EVEN(sts)) if ( EVEN(sts))
...@@ -3945,6 +3961,8 @@ static int wnav_wb_func( void *client_data, ...@@ -3945,6 +3961,8 @@ static int wnav_wb_func( void *client_data,
return WNAV__QUAL; return WNAV__QUAL;
} }
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
sts = ldh_WbLoad( wnav->ldhses, loadfilestr); sts = ldh_WbLoad( wnav->ldhses, loadfilestr);
if ( EVEN(sts)) if ( EVEN(sts))
wnav->message(' ', wnav_get_message(sts)); wnav->message(' ', wnav_get_message(sts));
...@@ -4951,7 +4969,8 @@ int WNav::readcmdfile( char *incommand) ...@@ -4951,7 +4969,8 @@ int WNav::readcmdfile( char *incommand)
strcpy( input_str, incommand); strcpy( input_str, incommand);
dcli_remove_blank( input_str, input_str); dcli_remove_blank( input_str, input_str);
wnav_store_wnav( this); wnav_store_wnav( this);
wccm_store_ldhses( this, ldhses); if ( ldhses)
wccm_store_ldhses( this, ldhses);
// Read and execute the command file // Read and execute the command file
sts = ccm_file_exec( input_str, wnav_externcmd_func, sts = ccm_file_exec( input_str, wnav_externcmd_func,
......
...@@ -778,8 +778,8 @@ static int wtt_attach_volume_cb( ...@@ -778,8 +778,8 @@ static int wtt_attach_volume_cb(
(void *)wtt, (void *)wtt,
wtt_ldh_other_session_cb); wtt_ldh_other_session_cb);
wtt->wnav->volume_attached( wtt->ldhses, pop); wtt->wnav->volume_attached( wtt->wbctx, wtt->ldhses, pop);
wtt->wnavnode->volume_attached( wtt->ldhses, pop); wtt->wnavnode->volume_attached( wtt->wbctx, wtt->ldhses, pop);
wtt->palette->session_opened( wtt->ldhses, NULL); wtt->palette->session_opened( wtt->ldhses, NULL);
return 1; return 1;
...@@ -3599,8 +3599,8 @@ Wtt::Wtt( ...@@ -3599,8 +3599,8 @@ Wtt::Wtt(
if ( wbctx && volid) if ( wbctx && volid)
{ {
wnav->volume_attached( ldhses, 0); wnav->volume_attached( wbctx, ldhses, 0);
wnavnode->volume_attached( ldhses, 0); wnavnode->volume_attached( wbctx, ldhses, 0);
} }
menu_setup(); menu_setup();
*status = 1; *status = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment