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 GVariantcxx . . $ GVariant# * xdp_session_persistence_get_transient_permissionscxx . . $ xdp_session_persistence_get_transient_permissions(d0d712aff29b2784). (XdpSessioncxx . . $ XdpSession# *session,
40 const char *restore_token);
41
42 void xdp_session_persistence_set_persistent_permissionscxx . . $ xdp_session_persistence_set_persistent_permissions(715bb496ef4c0a67). (XdpSessioncxx . . $ XdpSession# *session,
43 const char *table,
44 const char *restore_token,
45 GVariantcxx . . $ GVariant# *restore_data);
46
47 void xdp_session_persistence_delete_persistent_permissionscxx . . $ xdp_session_persistence_delete_persistent_permissions(5d9e194d3a3141c9). (XdpSessioncxx . . $ XdpSession# *session,
48 const char *table,
49 const char *restore_token);
50
51 GVariantcxx . . $ GVariant# * xdp_session_persistence_get_persistent_permissionscxx . . $ xdp_session_persistence_get_persistent_permissions(10291f328a9f44da). (XdpSessioncxx . . $ XdpSession# *session,
52 const char *table,
53 const char *restore_token);
54
55 void xdp_session_persistence_replace_restore_token_with_datacxx . . $ xdp_session_persistence_replace_restore_token_with_data(6fd49f6574b5027b). (XdpSessioncxx . . $ XdpSession# *session,
56 const char *table,
57 GVariantcxx . . $ GVariant# **in_out_options,
58 char **out_restore_token);
59
60 void xdp_session_persistence_replace_restore_data_with_tokencxx . . $ xdp_session_persistence_replace_restore_data_with_token(97c9ce3fc2c5d9dc). (XdpSessioncxx . . $ XdpSession# *session,
61 const char *table,
62 GVariantcxx . . $ GVariant# **in_out_results,
63 XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# *in_out_persist_mode,
64 char **in_out_restore_token,
65 GVariantcxx . . $ GVariant# **in_out_restore_data);
66
67 void xdp_session_persistence_generate_and_save_restore_tokencxx . . $ xdp_session_persistence_generate_and_save_restore_token(2087e7161d3dc2ca). (XdpSessioncxx . . $ XdpSession# *session,
68 const char *table,
69 XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# persist_mode,
70 char **in_out_restore_token,
71 GVariantcxx . . $ GVariant# **in_out_restore_data);
72
73 gbooleancxx . . $ gboolean# xdp_session_persistence_validate_restore_tokencxx . . $ xdp_session_persistence_validate_restore_token(5dde6684fab02cd7). (const char *restore_token,
74 GErrorcxx . . $ GError# **error);
75
76 gbooleancxx . . $ gboolean# xdp_session_persistence_validate_persist_modecxx . . $ xdp_session_persistence_validate_persist_mode(4307366c3e94ee1c). (XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# persist_mode,
77 GErrorcxx . . $ GError# **error);