Changeset 44322 in vbox
- Timestamp:
- Jan 21, 2013 2:36:11 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83256
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_VBoxManage.xml
r44133 r44322 695 695 <listitem> 696 696 <para><computeroutput>--lptmode<1-N> 697 <Device></computeroutput> 698 Specifies the Device Name of the parallel port that 697 <Device></computeroutput> 698 Specifies the Device Name of the parallel port that 699 699 the Parallel Port feature will be using. Use this 700 700 <emphasis>before</emphasis> <computeroutput>--lpt</computeroutput>. … … 704 704 <listitem> 705 705 <para><computeroutput>--lpt<1-N> 706 <I/O base> <IRQ></computeroutput> 706 <I/O base> <IRQ></computeroutput> 707 707 Specifies the I/O address of the parallel port and the IRQ 708 708 number that the Parallel Port feature will be using. Use this 709 709 <emphasis>after</emphasis> 710 <computeroutput>--lptmod</computeroutput>. I/O base address and IRQ are 710 <computeroutput>--lptmod</computeroutput>. I/O base address and IRQ are 711 711 the values that guest sees i.e. the values avalable under guest Device Manager.</para> 712 712 </listitem> … … 1743 1743 image to the given device slot.</para> 1744 1744 </listitem> 1745 1745 1746 1746 <listitem> 1747 1747 <para>If a UUID is specified, it must be the UUID of a … … 2644 2644 above.</para> 2645 2645 </listitem> 2646 2647 <listitem> 2648 <para><computeroutput>delete <vm> <property> 2649 </computeroutput>: Deletes a formerly set guest property. 2650 </para></listitem> 2646 2651 </itemizedlist></para> 2647 2652 </sect1> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r42460 r44322 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 62 62 "%s guestproperty %s set <vmname>|<uuid>\n" 63 63 " <property> [<value> [--flags <flags>]]\n" 64 "\n", pcszSep1, pcszSep2); 65 RTStrmPrintf(pStrm, 66 "%s guestproperty %s delete <vmname>|<uuid>\n" 67 " <property>\n" 64 68 "\n", pcszSep1, pcszSep2); 65 69 RTStrmPrintf(pStrm, … … 159 163 a->session->COMGETTER(Machine)(machine.asOutParam()); 160 164 161 if (!pszValue && !pszFlags) 162 CHECK_ERROR(machine, DeleteGuestProperty(Bstr(pszName).raw())); 163 else if (!pszFlags) 165 if (!pszFlags) 164 166 CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName).raw(), 165 167 Bstr(pszValue).raw())); … … 168 170 Bstr(pszValue).raw(), 169 171 Bstr(pszFlags).raw())); 172 173 if (SUCCEEDED(rc)) 174 CHECK_ERROR(machine, SaveSettings()); 175 176 a->session->UnlockMachine(); 177 } 178 return SUCCEEDED(rc) ? 0 : 1; 179 } 180 181 static int handleDeleteGuestProperty(HandlerArg *a) 182 { 183 HRESULT rc = S_OK; 184 185 /* 186 * Check the syntax. We can deduce the correct syntax from the number of 187 * arguments. 188 */ 189 bool usageOK = true; 190 const char *pszName = NULL; 191 if (a->argc != 2) 192 usageOK = false; 193 if (!usageOK) 194 return errorSyntax(USAGE_GUESTPROPERTY, "Incorrect parameters"); 195 /* This is always needed. */ 196 pszName = a->argv[1]; 197 198 ComPtr<IMachine> machine; 199 CHECK_ERROR(a->virtualBox, FindMachine(Bstr(a->argv[0]).raw(), 200 machine.asOutParam())); 201 if (machine) 202 { 203 /* open a session for the VM - new or existing */ 204 CHECK_ERROR_RET(machine, LockMachine(a->session, LockType_Shared), 1); 205 206 /* get the mutable session machine */ 207 a->session->COMGETTER(Machine)(machine.asOutParam()); 208 209 CHECK_ERROR(machine, DeleteGuestProperty(Bstr(pszName).raw())); 170 210 171 211 if (SUCCEEDED(rc)) … … 385 425 if (strcmp(a->argv[0], "set") == 0) 386 426 return handleSetGuestProperty(&arg); 427 if (strcmp(a->argv[0], "delete") == 0) 428 return handleDeleteGuestProperty(&arg); 387 429 if (strcmp(a->argv[0], "enumerate") == 0) 388 430 return handleEnumGuestProperty(&arg); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r43908 r44322 3 3 <!-- 4 4 5 Copyright (C) 2006-201 2Oracle Corporation5 Copyright (C) 2006-2013 Oracle Corporation 6 6 7 7 This file is part of VirtualBox Open Source Edition (OSE), as … … 6293 6293 <method name="setGuestPropertyValue"> 6294 6294 <desc> 6295 Sets , changes or deletes a value in the machine's guest property6295 Sets or changes a value in the machine's guest property 6296 6296 store. The flags field will be left unchanged or created empty for a 6297 6297 new property. … … 6310 6310 <param name="property" type="wstring" dir="in"> 6311 6311 <desc> 6312 The name of the property to set , change or delete.6312 The name of the property to set or change. 6313 6313 </desc> 6314 6314 </param> 6315 6315 <param name="value" type="wstring" dir="in"> 6316 6316 <desc> 6317 The new value of the property to set , change or delete.If the6317 The new value of the property to set or change. If the 6318 6318 property does not yet exist and value is non-empty, it will be 6319 created. If the value is @c null or empty, the property will be 6320 deleted if it exists. 6319 created. 6321 6320 </desc> 6322 6321 </param>
Note:
See TracChangeset
for help on using the changeset viewer.