Changes between Version 20 and Version 21 of GuiRpc
- Timestamp:
- Feb 20, 2009, 11:53:48 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GuiRpc
v20 v21 213 213 Convert the given structure to XML and write it to the global [PrefsOverride preferences override] file. 214 214 215 To modify a particular preference (e.g., CPU throttle): 216 {{{ 217 GLOBAL_PREFS prefs; 218 GLOBAL_PREFS_MASK prefs_mask; 219 RPC_CLIENT rpc; 220 char password[256]; 221 222 read_gui_rpc_password(password); 223 rpc.init("localhost"); 224 rpc.authorize(password); 225 226 rpc.get_global_prefs_override_struct(prefs, prefs_mask); 227 prefs.cpu_usage_limit = 0.5; 228 prefs_mask.cpu_usage_limit = true; 229 rpc.set_global_prefs_override_struct(prefs, prefs_mask); 230 rpc.read_global_prefs_override(); 231 }}} 232 215 233 === `set_debts(std::vector<PROJECT>)` === #function-set_debts 216 234