Changeset 46720 in vbox for trunk/include/VBox/settings.h
- Timestamp:
- Jun 21, 2013 10:07:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r46667 r46720 50 50 #include <list> 51 51 #include <map> 52 53 /** 54 * Maximum depth of the snapshot tree, to prevent stack overflows. 55 * XPCOM has a relatively low stack size for its workers, and we have 56 * to avoid crashes due to exceeding the limit both on reading and 57 * writing config files. 58 */ 59 #define SETTINGS_SNAPSHOT_DEPTH_MAX 250 52 60 53 61 namespace xml … … 1196 1204 void readAutostart(const xml::ElementNode *pElmAutostart, Autostart *pAutostart); 1197 1205 void readGroups(const xml::ElementNode *elmGroups, StringsList *pllGroups); 1198 void readSnapshot( const xml::ElementNode &elmSnapshot, Snapshot &snap);1206 void readSnapshot(uint32_t depth, const xml::ElementNode &elmSnapshot, Snapshot &snap); 1199 1207 void convertOldOSType_pre1_5(com::Utf8Str &str); 1200 1208 void readMachine(const xml::ElementNode &elmMachine); … … 1209 1217 void buildAutostartXML(xml::ElementNode *pElmParent, const Autostart *pAutostart); 1210 1218 void buildGroupsXML(xml::ElementNode *pElmParent, const StringsList *pllGroups); 1211 void buildSnapshotXML( xml::ElementNode &elmParent, const Snapshot &snap);1219 void buildSnapshotXML(uint32_t depth, xml::ElementNode &elmParent, const Snapshot &snap); 1212 1220 1213 1221 void bumpSettingsVersionIfNeeded();
Note:
See TracChangeset
for help on using the changeset viewer.