2
* Copyright © 2017 Red Hat, Inc
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
21
#include "xdg-desktop-portal-dbus.h"
23
typedef struct _Session Session;
24
typedef struct _SessionClass SessionClass;
28
XdpImplSessionSkeleton parent;
37
XdpImplSessionSkeletonClass parent_class;
39
void (*close) (Session *session);
42
GType session_get_type (void);
44
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Session, g_object_unref)
46
Session *lookup_session (const char *id);
48
Session *session_new (const char *id);
50
void session_close (Session *session);
52
gboolean session_export (Session *session,
53
GDBusConnection *connection,
56
void session_unexport (Session *session);