-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest.h
54 lines (44 loc) · 1.47 KB
/
request.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Copyright © 2016 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Alexander Larsson <[email protected]>
* Matthias Clasen <[email protected]>
*/
#pragma once
#include "xdg-desktop-portal-dbus.h"
typedef struct _Request Request;
typedef struct _RequestClass RequestClass;
struct _Request
{
XdpImplRequestSkeleton parent_instance;
gboolean exported;
char *sender;
char *app_id;
char *id;
};
struct _RequestClass
{
XdpImplRequestSkeletonClass parent_class;
};
GType request_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Request, g_object_unref)
Request *request_new (const char *sender,
const char *app_id,
const char *id);
void request_export (Request *request,
GDBusConnection *connection);
void request_unexport (Request *request);