~ubuntu-desktop/+junk/xdg-desktop-portal-gtk-16.04

« back to all changes in this revision

Viewing changes to src/utils.h

  • Committer: Ken VanDine
  • Date: 2018-02-21 14:28:33 UTC
  • Revision ID: ken.vandine@canonical.com-20180221142833-ypuh7jiz1ikajdik
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2016 Red Hat, Inc
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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/>.
 
16
 *
 
17
 * Authors:
 
18
 *       Matthias Clasen <mclasen@redhat.com>
 
19
 */
 
20
 
 
21
#pragma once
 
22
 
 
23
#include <gdk/gdk.h>
 
24
 
 
25
#define DESKTOP_PORTAL_OBJECT_PATH "/org/freedesktop/portal/desktop"
 
26
 
 
27
typedef enum {
 
28
  XDG_DESKTOP_PORTAL_ERROR_FAILED     = 0,
 
29
  XDG_DESKTOP_PORTAL_ERROR_INVALID_ARGUMENT,
 
30
  XDG_DESKTOP_PORTAL_ERROR_NOT_FOUND,
 
31
  XDG_DESKTOP_PORTAL_ERROR_EXISTS,
 
32
  XDG_DESKTOP_PORTAL_ERROR_NOT_ALLOWED,
 
33
  XDG_DESKTOP_PORTAL_ERROR_CANCELLED,
 
34
  XDG_DESKTOP_PORTAL_ERROR_WINDOW_DESTROYED
 
35
} XdgDesktopPortalErrorEnum;
 
36
 
 
37
#define XDG_DESKTOP_PORTAL_ERROR xdg_desktop_portal_error_quark ()
 
38
 
 
39
GQuark  xdg_desktop_portal_error_quark (void);