Debian Codegraph @

src/xdp-session-persistence.h

raw symbols SCIP
1 /*
2 * Copyright © 2023 Red Hat
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #pragma once
22
23 #include "xdp-session.h"cxx . . $ `<file>/src/xdp-session.h`/
24
25 typedef enum _XdpSessionPersistenceModecxx . . $ _XdpSessionPersistenceMode#
26 {
27 XDP_SESSION_PERSISTENCE_MODE_NONEcxx . . $ XDP_SESSION_PERSISTENCE_MODE_NONE. = 0,
28 XDP_SESSION_PERSISTENCE_MODE_TRANSIENTcxx . . $ XDP_SESSION_PERSISTENCE_MODE_TRANSIENT. = 1,
29 XDP_SESSION_PERSISTENCE_MODE_PERSISTENTcxx . . $ XDP_SESSION_PERSISTENCE_MODE_PERSISTENT. = 2,
30 } XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode#;
31
32 void xdp_session_persistence_set_transient_permissionscxx . . $ xdp_session_persistence_set_transient_permissions(39535d30e1370bee). (XdpSessioncxx . . $ XdpSession# *session,
33 const char *restore_token,
34 GVariantcxx . . $ GVariant# *restore_data);
35
36 void xdp_session_persistence_delete_transient_permissionscxx . . $ xdp_session_persistence_delete_transient_permissions(81a88252364aabd7). (XdpSessioncxx . . $ XdpSession# *session,
37 const char *restore_token);
38
39 void xdp_session_persistence_delete_transient_permissions_for_sendercxx . . $ xdp_session_persistence_delete_transient_permissions_for_sender(85c52e162fed56f9). (const char *sender_name);
40
41 GVariantcxx . . $ GVariant# * xdp_session_persistence_get_transient_permissionscxx . . $ xdp_session_persistence_get_transient_permissions(d0d712aff29b2784). (XdpSessioncxx . . $ XdpSession# *session,
42 const char *restore_token);
43
44 void xdp_session_persistence_set_persistent_permissionscxx . . $ xdp_session_persistence_set_persistent_permissions(715bb496ef4c0a67). (XdpSessioncxx . . $ XdpSession# *session,
45 const char *table,
46 const char *restore_token,
47 GVariantcxx . . $ GVariant# *restore_data);
48
49 void xdp_session_persistence_delete_persistent_permissionscxx . . $ xdp_session_persistence_delete_persistent_permissions(5d9e194d3a3141c9). (XdpSessioncxx . . $ XdpSession# *session,
50 const char *table,
51 const char *restore_token);
52
53 GVariantcxx . . $ GVariant# * xdp_session_persistence_get_persistent_permissionscxx . . $ xdp_session_persistence_get_persistent_permissions(10291f328a9f44da). (XdpSessioncxx . . $ XdpSession# *session,
54 const char *table,
55 const char *restore_token);
56
57 void xdp_session_persistence_replace_restore_token_with_datacxx . . $ xdp_session_persistence_replace_restore_token_with_data(6fd49f6574b5027b). (XdpSessioncxx . . $ XdpSession# *session,
58 const char *table,
59 GVariantcxx . . $ GVariant# **in_out_options,
60 char **out_restore_token);
61
62 void xdp_session_persistence_replace_restore_data_with_tokencxx . . $ xdp_session_persistence_replace_restore_data_with_token(97c9ce3fc2c5d9dc). (XdpSessioncxx . . $ XdpSession# *session,
63 const char *table,
64 GVariantcxx . . $ GVariant# **in_out_results,
65 XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# *in_out_persist_mode,
66 char **in_out_restore_token,
67 GVariantcxx . . $ GVariant# **in_out_restore_data);
68
69 void xdp_session_persistence_generate_and_save_restore_tokencxx . . $ xdp_session_persistence_generate_and_save_restore_token(2087e7161d3dc2ca). (XdpSessioncxx . . $ XdpSession# *session,
70 const char *table,
71 XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# persist_mode,
72 char **in_out_restore_token,
73 GVariantcxx . . $ GVariant# **in_out_restore_data);