tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

xdg_session_details.h (1015B)


      1 /*
      2 *  Copyright 2022 The WebRTC project authors. All Rights Reserved.
      3 *
      4 *  Use of this source code is governed by a BSD-style license
      5 *  that can be found in the LICENSE file in the root of the source
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef MODULES_PORTAL_XDG_SESSION_DETAILS_H_
     12 #define MODULES_PORTAL_XDG_SESSION_DETAILS_H_
     13 
     14 #include <gio/gio.h>
     15 #include <stdint.h>
     16 
     17 #include <string>
     18 
     19 namespace webrtc {
     20 namespace xdg_portal {
     21 
     22 // Details of the session associated with XDG desktop portal session. Portal API
     23 // calls can be invoked by utilizing the information here.
     24 struct SessionDetails {
     25  GDBusProxy* proxy = nullptr;
     26  GCancellable* cancellable = nullptr;
     27  std::string session_handle;
     28  uint32_t pipewire_stream_node_id = 0;
     29 };
     30 
     31 }  // namespace xdg_portal
     32 }  // namespace webrtc
     33 
     34 #endif  // MODULES_PORTAL_XDG_SESSION_DETAILS_H_