Blob Blame History Raw
/*
 * gnome-keyring
 *
 * Copyright (C) 2009 Stefan Walter
 *
 * 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.1 of
 * the License, or (at your option) any later version.
 *
 * This program 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/>.
 */

#ifndef __GKD_SECRET_ERROR_H__
#define __GKD_SECRET_ERROR_H__

#include "gkd-secret-types.h"

#include <glib.h>

#include <gio/gio.h>

enum _GkdSecretDaemonError {
  GKD_SECRET_DAEMON_ERROR_DENIED
};

enum _GkdSecretError {
  GKD_SECRET_ERROR_ALREADY_EXISTS,
  GKD_SECRET_ERROR_IS_LOCKED,
  GKD_SECRET_ERROR_NO_SESSION,
  GKD_SECRET_ERROR_NO_SUCH_OBJECT
};

#define GKD_SECRET_DAEMON_ERROR gkd_secret_daemon_error_quark ()
GQuark            gkd_secret_daemon_error_quark (void);

#define GKD_SECRET_ERROR gkd_secret_error_quark ()
GQuark            gkd_secret_error_quark (void);

void              gkd_secret_propagate_error                  (GDBusMethodInvocation *invocation,
                                                               const gchar *description,
                                                               GError *error);

#endif /* __GKD_SECRET_ERROR_H__ */