One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
qemu-kvm
/
devel
/
Edit File:
ui.html
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>QEMU UI subsystem — QEMU qemu-kvm-6.2.0-53.module+el8.10.0+2055+8eb7870b.4 documentation</title> <link rel="shortcut icon" href="../_static/qemu_32x32.png"/> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="Reset in QEMU: the Resettable interface" href="reset.html" /> <link rel="prev" title="Bitwise operations" href="bitops.html" /> <script src="../_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="../index.html" class="icon icon-home"> QEMU <img src="../_static/qemu_128x128.png" class="logo" alt="Logo"/> </a> <div class="version"> 6.2.0 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <p class="caption"><span class="caption-text">Contents:</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../about/index.html">About QEMU</a></li> <li class="toctree-l1"><a class="reference internal" href="../system/index.html">System Emulation</a></li> <li class="toctree-l1"><a class="reference internal" href="../user/index.html">User Mode Emulation</a></li> <li class="toctree-l1"><a class="reference internal" href="../tools/index.html">Tools</a></li> <li class="toctree-l1"><a class="reference internal" href="../interop/index.html">System Emulation Management and Interoperability</a></li> <li class="toctree-l1"><a class="reference internal" href="../specs/index.html">System Emulation Guest Hardware Specifications</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Developer Information</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="code-of-conduct.html">Code of Conduct</a></li> <li class="toctree-l2"><a class="reference internal" href="conflict-resolution.html">Conflict Resolution Policy</a></li> <li class="toctree-l2"><a class="reference internal" href="build-system.html">The QEMU build system architecture</a></li> <li class="toctree-l2"><a class="reference internal" href="style.html">QEMU Coding Style</a></li> <li class="toctree-l2"><a class="reference internal" href="kconfig.html">QEMU and Kconfig</a></li> <li class="toctree-l2"><a class="reference internal" href="testing.html">Testing in QEMU</a></li> <li class="toctree-l2"><a class="reference internal" href="fuzzing.html">Fuzzing</a></li> <li class="toctree-l2"><a class="reference internal" href="control-flow-integrity.html">Control-Flow Integrity (CFI)</a></li> <li class="toctree-l2"><a class="reference internal" href="loads-stores.html">Load and Store APIs</a></li> <li class="toctree-l2"><a class="reference internal" href="memory.html">The memory API</a></li> <li class="toctree-l2"><a class="reference internal" href="migration.html">Migration</a></li> <li class="toctree-l2"><a class="reference internal" href="atomics.html">Atomic operations in QEMU</a></li> <li class="toctree-l2"><a class="reference internal" href="stable-process.html">QEMU and the stable process</a></li> <li class="toctree-l2"><a class="reference internal" href="ci.html">CI</a></li> <li class="toctree-l2"><a class="reference internal" href="qtest.html">QTest Device Emulation Testing Framework</a></li> <li class="toctree-l2"><a class="reference internal" href="decodetree.html">Decodetree Specification</a></li> <li class="toctree-l2"><a class="reference internal" href="secure-coding-practices.html">Secure Coding Practices</a></li> <li class="toctree-l2"><a class="reference internal" href="tcg.html">Translator Internals</a></li> <li class="toctree-l2"><a class="reference internal" href="tcg-icount.html">TCG Instruction Counting</a></li> <li class="toctree-l2"><a class="reference internal" href="tracing.html">Tracing</a></li> <li class="toctree-l2"><a class="reference internal" href="multi-thread-tcg.html">Multi-threaded TCG</a></li> <li class="toctree-l2"><a class="reference internal" href="tcg-plugins.html">QEMU TCG Plugins</a></li> <li class="toctree-l2"><a class="reference internal" href="bitops.html">Bitwise operations</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="#">QEMU UI subsystem</a><ul> <li class="toctree-l3"><a class="reference internal" href="#qemu-clipboard">QEMU Clipboard</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="reset.html">Reset in QEMU: the Resettable interface</a></li> <li class="toctree-l2"><a class="reference internal" href="s390-dasd-ipl.html">Booting from real channel-attached devices on s390x</a></li> <li class="toctree-l2"><a class="reference internal" href="clocks.html">Modelling a clock tree in QEMU</a></li> <li class="toctree-l2"><a class="reference internal" href="qom.html">The QEMU Object Model (QOM)</a></li> <li class="toctree-l2"><a class="reference internal" href="modules.html">QEMU modules</a></li> <li class="toctree-l2"><a class="reference internal" href="block-coroutine-wrapper.html">block-coroutine-wrapper</a></li> <li class="toctree-l2"><a class="reference internal" href="multi-process.html">Multi-process QEMU</a></li> <li class="toctree-l2"><a class="reference internal" href="ebpf_rss.html">eBPF RSS virtio-net support</a></li> <li class="toctree-l2"><a class="reference internal" href="vfio-migration.html">VFIO device Migration</a></li> <li class="toctree-l2"><a class="reference internal" href="qapi-code-gen.html">How to use the QAPI code generator</a></li> <li class="toctree-l2"><a class="reference internal" href="writing-monitor-commands.html">How to write monitor commands</a></li> <li class="toctree-l2"><a class="reference internal" href="trivial-patches.html">Trivial Patches</a></li> <li class="toctree-l2"><a class="reference internal" href="submitting-a-patch.html">Submitting a Patch</a></li> <li class="toctree-l2"><a class="reference internal" href="submitting-a-pull-request.html">Submitting a Pull Request</a></li> </ul> </li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">QEMU</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> »</li> <li><a href="index.html">Developer Information</a> »</li> <li>QEMU UI subsystem</li> <li class="wy-breadcrumbs-aside"> <a href="https://gitlab.com/qemu-project/qemu/blob/master/docs/devel/ui.rst" class="fa fa-gitlab"> Edit on GitLab</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="qemu-ui-subsystem"> <h1>QEMU UI subsystem<a class="headerlink" href="#qemu-ui-subsystem" title="Permalink to this headline">¶</a></h1> <div class="section" id="qemu-clipboard"> <h2>QEMU Clipboard<a class="headerlink" href="#qemu-clipboard" title="Permalink to this headline">¶</a></h2> <p><strong>Introduction</strong></p> <p>The header <code class="docutils literal notranslate"><span class="pre">ui/clipboard.h</span></code> declares the qemu clipboard interface.</p> <p>All qemu elements which want use the clipboard can register as clipboard peer. Subsequently they can set the clipboard content and get notifications for clipboard updates.</p> <p>Typical users are user interfaces (gtk), remote access protocols (vnc) and devices talking to the guest (vdagent).</p> <p>Even though the design allows different data types only plain text is supported for now.</p> <dl class="type"> <dt id="c.QemuClipboardType"> enum <code class="descname">QemuClipboardType</code><a class="headerlink" href="#c.QemuClipboardType" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Constants</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QEMU_CLIPBOARD_TYPE_TEXT</span></code></dt> <dd>text/plain; charset=utf-8</dd> <dt><code class="docutils literal notranslate"><span class="pre">QEMU_CLIPBOARD_TYPE__COUNT</span></code></dt> <dd>type count.</dd> </dl> <dl class="type"> <dt id="c.QemuClipboardSelection"> enum <code class="descname">QemuClipboardSelection</code><a class="headerlink" href="#c.QemuClipboardSelection" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Constants</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QEMU_CLIPBOARD_SELECTION_CLIPBOARD</span></code></dt> <dd>clipboard (explitcit cut+paste).</dd> <dt><code class="docutils literal notranslate"><span class="pre">QEMU_CLIPBOARD_SELECTION_PRIMARY</span></code></dt> <dd>primary selection (select + middle mouse button).</dd> <dt><code class="docutils literal notranslate"><span class="pre">QEMU_CLIPBOARD_SELECTION_SECONDARY</span></code></dt> <dd>secondary selection (dunno).</dd> <dt><code class="docutils literal notranslate"><span class="pre">QEMU_CLIPBOARD_SELECTION__COUNT</span></code></dt> <dd>selection count.</dd> </dl> <dl class="type"> <dt id="c.QemuClipboardPeer"> struct <code class="descname">QemuClipboardPeer</code><a class="headerlink" href="#c.QemuClipboardPeer" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Definition</strong></p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">struct</span> <span class="n">QemuClipboardPeer</span> <span class="p">{</span> <span class="n">const</span> <span class="n">char</span> <span class="o">*</span><span class="n">name</span><span class="p">;</span> <span class="n">Notifier</span> <span class="n">update</span><span class="p">;</span> <span class="n">void</span> <span class="p">(</span><span class="o">*</span><span class="n">request</span><span class="p">)(</span><span class="n">QemuClipboardInfo</span> <span class="o">*</span><span class="n">info</span><span class="p">,</span> <span class="n">QemuClipboardType</span> <span class="nb">type</span><span class="p">);</span> <span class="p">};</span> </pre></div> </div> <p><strong>Members</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">name</span></code></dt> <dd>peer name.</dd> <dt><code class="docutils literal notranslate"><span class="pre">update</span></code></dt> <dd>notifier for clipboard updates.</dd> <dt><code class="docutils literal notranslate"><span class="pre">request</span></code></dt> <dd>callback for clipboard data requests.</dd> </dl> <p><strong>Description</strong></p> <p>Clipboard peer description.</p> <dl class="type"> <dt id="c.QemuClipboardInfo"> struct <code class="descname">QemuClipboardInfo</code><a class="headerlink" href="#c.QemuClipboardInfo" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Definition</strong></p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">struct</span> <span class="n">QemuClipboardInfo</span> <span class="p">{</span> <span class="n">uint32_t</span> <span class="n">refcount</span><span class="p">;</span> <span class="n">QemuClipboardPeer</span> <span class="o">*</span><span class="n">owner</span><span class="p">;</span> <span class="n">QemuClipboardSelection</span> <span class="n">selection</span><span class="p">;</span> <span class="n">struct</span> <span class="p">{</span> <span class="nb">bool</span> <span class="n">available</span><span class="p">;</span> <span class="nb">bool</span> <span class="n">requested</span><span class="p">;</span> <span class="n">size_t</span> <span class="n">size</span><span class="p">;</span> <span class="n">void</span> <span class="o">*</span><span class="n">data</span><span class="p">;</span> <span class="p">}</span> <span class="n">types</span><span class="p">[</span><span class="n">QEMU_CLIPBOARD_TYPE__COUNT</span><span class="p">];</span> <span class="p">};</span> </pre></div> </div> <p><strong>Members</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">refcount</span></code></dt> <dd>reference counter.</dd> <dt><code class="docutils literal notranslate"><span class="pre">owner</span></code></dt> <dd>clipboard owner.</dd> <dt><code class="docutils literal notranslate"><span class="pre">selection</span></code></dt> <dd>clipboard selection.</dd> <dt><code class="docutils literal notranslate"><span class="pre">types</span></code></dt> <dd>clipboard data array (one entry per type).</dd> </dl> <p><strong>Description</strong></p> <p>Clipboard content data and metadata.</p> <dl class="function"> <dt id="c.qemu_clipboard_peer_register"> void <code class="descname">qemu_clipboard_peer_register</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardPeer" title="QemuClipboardPeer">QemuClipboardPeer</a><em> *peer</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_peer_register" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardPeer</span> <span class="pre">*peer</span></code></dt> <dd>peer information.</dd> </dl> <p><strong>Description</strong></p> <p>Register clipboard peer. Registering is needed for both active (set+grab clipboard) and passive (watch clipboard for updates) interaction with the qemu clipboard.</p> <dl class="function"> <dt id="c.qemu_clipboard_peer_unregister"> void <code class="descname">qemu_clipboard_peer_unregister</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardPeer" title="QemuClipboardPeer">QemuClipboardPeer</a><em> *peer</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_peer_unregister" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardPeer</span> <span class="pre">*peer</span></code></dt> <dd>peer information.</dd> </dl> <p><strong>Description</strong></p> <p>Unregister clipboard peer.</p> <dl class="function"> <dt id="c.qemu_clipboard_peer_owns"> bool <code class="descname">qemu_clipboard_peer_owns</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardPeer" title="QemuClipboardPeer">QemuClipboardPeer</a><em> *peer</em>, <a class="reference internal" href="#c.QemuClipboardSelection" title="QemuClipboardSelection">QemuClipboardSelection</a><em> selection</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_peer_owns" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardPeer</span> <span class="pre">*peer</span></code></dt> <dd>peer information.</dd> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardSelection</span> <span class="pre">selection</span></code></dt> <dd>clipboard selection.</dd> </dl> <p><strong>Description</strong></p> <p>Return TRUE if the peer owns the clipboard.</p> <dl class="function"> <dt id="c.qemu_clipboard_peer_release"> void <code class="descname">qemu_clipboard_peer_release</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardPeer" title="QemuClipboardPeer">QemuClipboardPeer</a><em> *peer</em>, <a class="reference internal" href="#c.QemuClipboardSelection" title="QemuClipboardSelection">QemuClipboardSelection</a><em> selection</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_peer_release" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardPeer</span> <span class="pre">*peer</span></code></dt> <dd>peer information.</dd> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardSelection</span> <span class="pre">selection</span></code></dt> <dd>clipboard selection.</dd> </dl> <p><strong>Description</strong></p> <p>If the peer owns the clipboard, release it.</p> <dl class="function"> <dt id="c.qemu_clipboard_info"> <a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a> * <code class="descname">qemu_clipboard_info</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardSelection" title="QemuClipboardSelection">QemuClipboardSelection</a><em> selection</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_info" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardSelection</span> <span class="pre">selection</span></code></dt> <dd>clipboard selection.</dd> </dl> <p><strong>Description</strong></p> <p>Return the current clipboard data & owner informations.</p> <dl class="function"> <dt id="c.qemu_clipboard_info_new"> <a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a> * <code class="descname">qemu_clipboard_info_new</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardPeer" title="QemuClipboardPeer">QemuClipboardPeer</a><em> *owner</em>, <a class="reference internal" href="#c.QemuClipboardSelection" title="QemuClipboardSelection">QemuClipboardSelection</a><em> selection</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_info_new" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardPeer</span> <span class="pre">*owner</span></code></dt> <dd>clipboard owner.</dd> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardSelection</span> <span class="pre">selection</span></code></dt> <dd>clipboard selection.</dd> </dl> <p><strong>Description</strong></p> <p>Allocate a new QemuClipboardInfo and initialize it with the given <strong>owner</strong> and <strong>selection</strong>.</p> <p>QemuClipboardInfo is a reference-counted struct. The new struct is returned with a reference already taken (i.e. reference count is one).</p> <dl class="function"> <dt id="c.qemu_clipboard_info_ref"> <a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a> * <code class="descname">qemu_clipboard_info_ref</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a><em> *info</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_info_ref" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardInfo</span> <span class="pre">*info</span></code></dt> <dd>clipboard info.</dd> </dl> <p><strong>Description</strong></p> <p>Increase <strong>info</strong> reference count.</p> <dl class="function"> <dt id="c.qemu_clipboard_info_unref"> void <code class="descname">qemu_clipboard_info_unref</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a><em> *info</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_info_unref" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardInfo</span> <span class="pre">*info</span></code></dt> <dd>clipboard info.</dd> </dl> <p><strong>Description</strong></p> <p>Decrease <strong>info</strong> reference count. When the count goes down to zero free the <strong>info</strong> struct itself and all clipboard data.</p> <dl class="function"> <dt id="c.qemu_clipboard_update"> void <code class="descname">qemu_clipboard_update</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a><em> *info</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_update" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardInfo</span> <span class="pre">*info</span></code></dt> <dd>clipboard info.</dd> </dl> <p><strong>Description</strong></p> <p>Update the qemu clipboard. Notify all registered peers (including the clipboard owner) that the qemu clipboard has been updated.</p> <p>This is used for both new completely clipboard content and for clipboard data updates in response to qemu_clipboard_request() calls.</p> <dl class="function"> <dt id="c.qemu_clipboard_request"> void <code class="descname">qemu_clipboard_request</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a><em> *info</em>, <a class="reference internal" href="#c.QemuClipboardType" title="QemuClipboardType">QemuClipboardType</a><em> type</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_request" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardInfo</span> <span class="pre">*info</span></code></dt> <dd>clipboard info.</dd> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardType</span> <span class="pre">type</span></code></dt> <dd>clipboard data type.</dd> </dl> <p><strong>Description</strong></p> <p>Request clipboard content. Typically the clipboard owner only advertises the available data types and provides the actual data only on request.</p> <dl class="function"> <dt id="c.qemu_clipboard_set_data"> void <code class="descname">qemu_clipboard_set_data</code><span class="sig-paren">(</span><a class="reference internal" href="#c.QemuClipboardPeer" title="QemuClipboardPeer">QemuClipboardPeer</a><em> *peer</em>, <a class="reference internal" href="#c.QemuClipboardInfo" title="QemuClipboardInfo">QemuClipboardInfo</a><em> *info</em>, <a class="reference internal" href="#c.QemuClipboardType" title="QemuClipboardType">QemuClipboardType</a><em> type</em>, uint32_t<em> size</em>, const void<em> *data</em>, bool<em> update</em><span class="sig-paren">)</span><a class="headerlink" href="#c.qemu_clipboard_set_data" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <p><strong>Parameters</strong></p> <dl class="docutils"> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardPeer</span> <span class="pre">*peer</span></code></dt> <dd>clipboard peer.</dd> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardInfo</span> <span class="pre">*info</span></code></dt> <dd>clipboard info.</dd> <dt><code class="docutils literal notranslate"><span class="pre">QemuClipboardType</span> <span class="pre">type</span></code></dt> <dd>clipboard data type.</dd> <dt><code class="docutils literal notranslate"><span class="pre">uint32_t</span> <span class="pre">size</span></code></dt> <dd>data size.</dd> <dt><code class="docutils literal notranslate"><span class="pre">const</span> <span class="pre">void</span> <span class="pre">*data</span></code></dt> <dd>data blob.</dd> <dt><code class="docutils literal notranslate"><span class="pre">bool</span> <span class="pre">update</span></code></dt> <dd>notify peers about the update.</dd> </dl> <p><strong>Description</strong></p> <p>Set clipboard content for the given <strong>type</strong>. This function will make a copy of the content data and store that.</p> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="reset.html" class="btn btn-neutral float-right" title="Reset in QEMU: the Resettable interface" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="bitops.html" class="btn btn-neutral" title="Bitwise operations" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> © Copyright 2021, The QEMU Project Developers. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. <!-- Empty para to force a blank line after "Built with Sphinx ..." --> <p></p> <p>This documentation is for QEMU version 6.2.0.</p> <p><a href="../about/license.html">QEMU and this manual are released under the GNU General Public License, version 2.</a></p> </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'qemu-kvm-6.2.0-53.module+el8.10.0+2055+8eb7870b.4', LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>
Simpan