VirtualBox

Ignore:
Timestamp:
Jul 23, 2010 4:00:09 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64005
Message:

Main: rename ISession::close() to ISession::unlockMachine(); API documentation

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r28800 r31070  
    416416     * Aborted which may have unwanted side effects like killing the saved
    417417     * state file (if the machine was in the Saved state before). */
    418     session->Close();
     418    session->UnlockMachine();
    419419
    420420    EventQueue::getMainEventQueue()->processEventQueue(0);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r31019 r31070  
    881881    } while (0);
    882882
    883     a->session->Close();
     883    a->session->UnlockMachine();
    884884
    885885    return SUCCEEDED(rc) ? 0 : 1;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r31019 r31070  
    520520                }
    521521            }
    522             a->session->Close();
     522            a->session->UnlockMachine();
    523523        } while (0);
    524524    }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r31020 r31070  
    168168            CHECK_ERROR(machine, SaveSettings());
    169169
    170         a->session->Close();
     170        a->session->UnlockMachine();
    171171    }
    172172    return SUCCEEDED(rc) ? 0 : 1;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r31019 r31070  
    21462146
    21472147        if (console)
    2148             a->session->Close();
     2148            a->session->UnlockMachine();
    21492149    }
    21502150
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r31019 r31070  
    393393
    394394    /* it's important to always close sessions */
    395     a->session->Close();
     395    a->session->UnlockMachine();
    396396
    397397    return SUCCEEDED(rc) ? 0 : 1;
     
    425425                CHECK_ERROR_BREAK(console, ForgetSavedState(true));
    426426            } while (0);
    427             CHECK_ERROR_BREAK(a->session, Close());
     427            CHECK_ERROR_BREAK(a->session, UnlockMachine());
    428428        } while (0);
    429429    }
     
    459459                CHECK_ERROR_BREAK(console, AdoptSavedState(Bstr(a->argv[1])));
    460460            } while (0);
    461             CHECK_ERROR_BREAK(a->session, Close());
     461            CHECK_ERROR_BREAK(a->session, UnlockMachine());
    462462        } while (0);
    463463    }
     
    735735                                                    fWritable, fAutoMount));
    736736            if (console)
    737                 a->session->Close();
     737                a->session->UnlockMachine();
    738738        }
    739739        else
     
    751751                CHECK_ERROR(machine, SaveSettings());
    752752
    753             a->session->Close();
     753            a->session->UnlockMachine();
    754754        }
    755755    }
     
    800800
    801801            if (console)
    802                 a->session->Close();
     802                a->session->UnlockMachine();
    803803        }
    804804        else
     
    814814            /* commit and close the session */
    815815            CHECK_ERROR(machine, SaveSettings());
    816             a->session->Close();
     816            a->session->UnlockMachine();
    817817        }
    818818    }
     
    904904                }
    905905            }
    906             a->session->Close();
     906            a->session->UnlockMachine();
    907907        }
    908908    }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r31019 r31070  
    20482048
    20492049    /* it's important to always close sessions */
    2050     a->session->Close();
     2050    a->session->UnlockMachine();
    20512051
    20522052    return SUCCEEDED(rc) ? 0 : 1;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp

    r31019 r31070  
    499499    } while (0);
    500500
    501     a->session->Close();
     501    a->session->UnlockMachine();
    502502
    503503    return SUCCEEDED(rc) ? 0 : 1;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r31019 r31070  
    636636leave:
    637637    /* it's important to always close sessions */
    638     a->session->Close();
     638    a->session->UnlockMachine();
    639639
    640640    return SUCCEEDED(rc) ? 0 : 1;
     
    765765    {
    766766        /* it's important to always close sessions */
    767         a->session->Close();
     767        a->session->UnlockMachine();
    768768        errorSyntax(USAGE_STORAGECONTROLLER, "Storage controller name not specified\n");
    769769        return 1;
     
    954954
    955955    /* it's important to always close sessions */
    956     a->session->Close();
     956    a->session->UnlockMachine();
    957957
    958958    return SUCCEEDED(rc) ? 0 : 1;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r31019 r31070  
    562562        }
    563563        /* close the session */
    564         a->session->Close();
     564        a->session->UnlockMachine();
    565565    }
    566566
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette