Blame src/goa/goaclient.h

Packit 79f644
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
Packit 79f644
/*
Packit 79f644
 * Copyright © 2011 – 2017 Red Hat, Inc.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Lesser General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Lesser General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Lesser General
Packit 79f644
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 79f644
 */
Packit 79f644
Packit 79f644
#if !defined (__GOA_INSIDE_GOA_H__) && !defined (GOA_COMPILATION)
Packit 79f644
#error "Only <goa/goa.h> can be included directly."
Packit 79f644
#endif
Packit 79f644
Packit 79f644
#ifndef __GOA_CLIENT_H__
Packit 79f644
#define __GOA_CLIENT_H__
Packit 79f644
Packit 79f644
#include <gio/gio.h>
Packit 79f644
#include <goa/goa-generated.h>
Packit 79f644
Packit 79f644
G_BEGIN_DECLS
Packit 79f644
Packit 79f644
#define GOA_TYPE_CLIENT (goa_client_get_type ())
Packit 79f644
G_DECLARE_FINAL_TYPE (GoaClient, goa_client, GOA, CLIENT, GObject)
Packit 79f644
Packit 79f644
void                goa_client_new                (GCancellable        *cancellable,
Packit 79f644
                                                   GAsyncReadyCallback  callback,
Packit 79f644
                                                   gpointer             user_data);
Packit 79f644
GoaClient          *goa_client_new_finish         (GAsyncResult        *res,
Packit 79f644
                                                   GError             **error);
Packit 79f644
GoaClient          *goa_client_new_sync           (GCancellable        *cancellable,
Packit 79f644
                                                   GError             **error);
Packit 79f644
GDBusObjectManager *goa_client_get_object_manager (GoaClient           *self);
Packit 79f644
GoaManager         *goa_client_get_manager        (GoaClient           *self);
Packit 79f644
GList              *goa_client_get_accounts       (GoaClient           *self);
Packit 79f644
GoaObject          *goa_client_lookup_by_id       (GoaClient           *self,
Packit 79f644
                                                   const gchar         *id);
Packit 79f644
Packit 79f644
G_END_DECLS
Packit 79f644
Packit 79f644
#endif /* __GOA_CLIENT_H__ */