VirtualBox

Ignore:
Timestamp:
Jul 17, 2012 12:35:07 PM (12 years ago)
Author:
vboxsync
Message:

Autostart: Make the path to the autostart database configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AutostartDb.h

    r41999 r42178  
    3030
    3131        /**
     32         * Sets the path to the autostart database.
     33         *
     34         * @returns VBox status code.
     35         * @param   pszAutostartDbPathNew    Path to the autostart database.
     36         */
     37        int setAutostartDbPath(const char *pszAutostartDbPathNew);
     38
     39        /**
    3240         * Add a autostart VM to the global database.
    3341         *
    3442         * @returns VBox status code.
     43         * @retval VERR_PATH_NOT_FOUND if the autostart database directory is not set.
    3544         * @param   pszVMId    ID of the VM to add.
    3645         */
     
    4150         *
    4251         * @returns VBox status code.
     52         * @retval VERR_PATH_NOT_FOUND if the autostart database directory is not set.
    4353         * @param   pszVMId    ID of the VM to remove.
    4454         */
     
    4959         *
    5060         * @returns VBox status code.
     61         * @retval VERR_PATH_NOT_FOUND if the autostart database directory is not set.
    5162         * @param   pszVMId    ID of the VM to add.
    5263         */
     
    5768         *
    5869         * @returns VBox status code.
     70         * @retval VERR_PATH_NOT_FOUND if the autostart database directory is not set.
    5971         * @param   pszVMId    ID of the VM to remove.
    6072         */
     
    6678        /** Critical section protecting the database against concurrent access. */
    6779        RTCRITSECT      CritSect;
     80        /** Path to the autostart database. */
     81        char           *m_pszAutostartDbPath;
     82
     83        /**
     84         * Autostart database modification worker.
     85         *
     86         * @returns VBox status code.
     87         * @param   fAutostart    Flag whether the autostart or autostop database is modified.
     88         * @param   fAddVM        Flag whether a VM is added or removed from the database.
     89         */
     90        int autostartModifyDb(bool fAutostart, bool fAddVM);
    6891#endif
    6992};
Note: See TracChangeset for help on using the changeset viewer.

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