xref: /aosp_15_r20/external/webrtc/modules/portal/xdg_session_details.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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 
16 #include <string>
17 
18 namespace webrtc {
19 namespace xdg_portal {
20 
21 // Details of the session associated with XDG desktop portal session. Portal API
22 // calls can be invoked by utilizing the information here.
23 struct SessionDetails {
24   GDBusProxy* proxy = nullptr;
25   GCancellable* cancellable = nullptr;
26   std::string session_handle;
27   uint32_t pipewire_stream_node_id = 0;
28 };
29 
30 }  // namespace xdg_portal
31 }  // namespace webrtc
32 
33 #endif  // MODULES_PORTAL_XDG_SESSION_DETAILS_H_
34