VirtualBox

Changeset 94213 in vbox


Ignore:
Timestamp:
Mar 13, 2022 8:57:16 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150469
Message:

doc/manual,FE/VBoxManage: Convert usbdevsource command to refentry documentation, ​bugref:9186

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Config.kmk

    r94212 r94213  
    8282        man_VBoxManage-metrics.xml \
    8383        man_VBoxManage-natnetwork.xml \
    84         man_VBoxManage-hostonlyif.xml
     84        man_VBoxManage-hostonlyif.xml \
     85        man_VBoxManage-usbdevsource.xml
    8586
    8687## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-usbdevsource.xml

    r82969 r94213  
    2020<refentry id="vboxmanage-usbdevsource" lang="en">
    2121  <refentryinfo>
    22     <pubdate>September 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage usbdevsource</title>
    2424  </refentryinfo>
    2525
    2626  <refmeta>
    27     <refentrytitle>VBoxManage-usbdevsource</refentrytitle>
     27    <refentrytitle>vboxmanage-usbdevsource</refentrytitle>
    2828    <manvolnum>1</manvolnum>
    2929  </refmeta>
     
    3232    <refname>vboxmanage-usbdevsource</refname>
    3333    <refpurpose>add and remove USB device sources</refpurpose>
    34     <refclass>Oracle VM VirtualBox</refclass>
     34    <refclass>&product-name;</refclass>
    3535  </refnamediv>
    3636
     
    8282          <listitem><para>
    8383              Specifies the USB proxy service backend to use.
    84             </para><remark>
    85               What is the USB proxy service? How do you
    86               determine the backend to use?
    87             </remark></listitem>
     84            </para><para>
     85              For now only USBIP is supported to specify a remote
     86              server using the USB/IP protocol.
     87            </para></listitem>
    8888        </varlistentry>
    8989      </variablelist>
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r94212 r94213  
    11271127  <xi:include href="user_man_VBoxManage-dhcpserver.xml"     xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    11281128
    1129   <sect1 id="vboxmanage-usbdevsource">
    1130 
    1131     <title>VBoxManage usbdevsource</title>
    1132 
    1133     <para>
    1134       The <command>usbdevsource</command> commands enable you to add and
    1135       remove USB devices globally.
    1136     </para>
    1137 
    1138     <para>
    1139       The following command adds a USB device.
    1140     </para>
    1141 
    1142 <screen>VBoxManage usbdevsource add &lt;source name&gt;
    1143                             --backend &lt;backend&gt;
    1144                             --address &lt;address&gt;
    1145     </screen>
    1146 
    1147     <para>
    1148       Where the command line options are as follows:
    1149     </para>
    1150 
    1151     <itemizedlist>
    1152 
    1153       <listitem>
    1154         <para>
    1155           <computeroutput>&lt;source name&gt;</computeroutput>:
    1156           Specifies the ID of the source USB device to be added.
    1157           Mandatory.
    1158         </para>
    1159       </listitem>
    1160 
    1161       <listitem>
    1162         <para>
    1163           <computeroutput>--backend &lt;backend&gt;</computeroutput>:
    1164           Specifies the USB proxy service backend to use. Mandatory.
    1165         </para>
    1166       </listitem>
    1167 
    1168       <listitem>
    1169         <para>
    1170           <computeroutput> --address &lt;address&gt;</computeroutput>:
    1171           Specifies the backend specific address. Mandatory.
    1172         </para>
    1173       </listitem>
    1174 
    1175     </itemizedlist>
    1176 
    1177     <para>
    1178       The following command removes a USB device.
    1179     </para>
    1180 
    1181 <screen>VBoxManage usbdevsource remove &lt;source name&gt;
    1182     </screen>
    1183 
    1184     <para>
    1185       Where the command line options are as follows:
    1186     </para>
    1187 
    1188     <itemizedlist>
    1189 
    1190       <listitem>
    1191         <para>
    1192           <computeroutput>&lt;source name&gt;</computeroutput>:
    1193           Specifies the ID of the source USB device to be removed.
    1194           Mandatory.
    1195         </para>
    1196       </listitem>
    1197 
    1198     </itemizedlist>
    1199 
    1200   </sect1>
     1129  <xi:include href="user_man_VBoxManage-usbdevsource.xml"   xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    12011130
    12021131  <xi:include href="user_man_VBoxManage-extpack.xml"        xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
  • trunk/doc/manual/ru_RU/man_VBoxManage-usbdevsource.xml

    r93478 r94213  
    2525
    2626  <refmeta>
    27     <refentrytitle>VBoxManage-usbdevsource</refentrytitle>
     27    <refentrytitle>vboxmanage-usbdevsource</refentrytitle>
    2828    <manvolnum>1</manvolnum>
    2929  </refmeta>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94212 r94213  
    256256    { "convertfromraw",     USAGE_S_NEWCMD,HELP_CMD_CONVERTFROMRAW, handleConvertFromRaw,       VBMG_CMD_F_NO_COM },
    257257    { "convertdd",          USAGE_S_NEWCMD,HELP_CMD_CONVERTFROMRAW, handleConvertFromRaw,       VBMG_CMD_F_NO_COM },
    258     { "usbdevsource",       USAGE_USBDEVSOURCE,     VBMG_CMD_TODO, handleUSBDevSource,         0 },
     258    { "usbdevsource",       USAGE_S_NEWCMD,  HELP_CMD_USBDEVSOURCE, handleUSBDevSource,         0 },
    259259    { "cloudprofile",       USAGE_S_NEWCMD,      HELP_CMD_CLOUDPROFILE, handleCloudProfile,         0 },
    260260    { "cloud",              USAGE_S_NEWCMD,         HELP_CMD_CLOUD, handleCloud,               0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94212 r94213  
    118118    USAGE_I_GUESTSTATS,
    119119    USAGE_I_REPAIRHD,
    120     USAGE_USBDEVSOURCE,
    121120    /* Insert new entries before this line, but only if it is not an option
    122121     * to go for the new style command and help handling (see e.g. extpack,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94212 r94213  
    641641                     "\n", SEP);
    642642
    643     if (enmCommand == USAGE_USBDEVSOURCE || enmCommand == USAGE_S_ALL)
    644     {
    645         RTStrmPrintf(pStrm,
    646                            "%s usbdevsource %s    add <source name>\n"
    647                      "                            --backend <backend>\n"
    648                      "                            --address <address>\n"
    649                            "%s usbdevsource %s    remove <source name>\n"
    650                      "\n", SEP, SEP);
    651     }
    652 
    653643#ifndef VBOX_ONLY_DOCS /* Converted to man page, not needed. */
    654644    if (enmCommand == USAGE_S_ALL)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r94207 r94213  
    569569    /* at least: 0: command, 1: source id */
    570570    if (a->argc < 2)
    571         return errorSyntax(USAGE_USBDEVSOURCE, Usb::tr("Not enough parameters"));
     571        return errorSyntax(Usb::tr("Not enough parameters"));
    572572
    573573    ComPtr<IHost> host;
    574574    if (!strcmp(a->argv[0], "add"))
    575575    {
     576        setCurrentSubcommand(HELP_SCOPE_USBDEVSOURCE_ADD);
     577
    576578        Bstr strBackend;
    577579        Bstr strAddress;
    578580        if (a->argc != 6)
    579             return errorSyntax(USAGE_USBDEVSOURCE, Usb::tr("Invalid number of parameters"));
     581            return errorSyntax(Usb::tr("Invalid number of parameters"));
    580582
    581583        for (int i = 2; i < a->argc; i++)
     
    592594            }
    593595            else
    594                 return errorSyntax(USAGE_USBDEVSOURCE, Usb::tr("Parameter \"%s\" is invalid"), a->argv[i]);
     596                return errorSyntax(Usb::tr("Parameter \"%s\" is invalid"), a->argv[i]);
    595597        }
    596598
     
    605607    else if (!strcmp(a->argv[0], "remove"))
    606608    {
     609        setCurrentSubcommand(HELP_SCOPE_USBDEVSOURCE_REMOVE);
    607610        CHECK_ERROR_RET(a->virtualBox, COMGETTER(Host)(host.asOutParam()), RTEXITCODE_FAILURE);
    608611        CHECK_ERROR_RET(host, RemoveUSBDeviceSource(Bstr(a->argv[1]).raw()), RTEXITCODE_FAILURE);
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