flatpak-builder/common/xdg-app-portal-error.h

50 lines
1.3 KiB
C

/* xdg-app-error.c
*
* Copyright (C) 2015 Red Hat, Inc
*
* This file 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 file 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 program. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Alexander Larsson <alexl@redhat.com>
*/
#ifndef XDG_APP_PORTAL_ERROR_H
#define XDG_APP_PORTAL_ERROR_H
#include <glib.h>
G_BEGIN_DECLS
/**
* XdpErrorEnum:
*/
typedef enum {
XDG_APP_PORTAL_ERROR_FAILED = 0,
XDG_APP_PORTAL_ERROR_INVALID_ARGUMENT,
XDG_APP_PORTAL_ERROR_NOT_FOUND,
XDG_APP_PORTAL_ERROR_EXISTS,
XDG_APP_PORTAL_ERROR_NOT_ALLOWED,
XDG_APP_PORTAL_ERROR_CANCELLED,
XDG_APP_PORTAL_ERROR_WINDOW_DESTROYED,
} XdgAppErrorEnum;
#define XDG_APP_PORTAL_ERROR xdg_app_error_quark()
XDG_APP_EXTERN GQuark xdg_app_error_quark (void);
G_END_DECLS
#endif /* XDG_APP_PORTAL_ERROR_H */