Codebase list realmd / upstream/0.12 service / realm-samba-enroll.h
upstream/0.12

Tree @upstream/0.12 (Download .tar.gz)

realm-samba-enroll.h @upstream/0.12raw · history · blame

/* realmd -- Realm configuration service
 *
 * Copyright 2012 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 licence or (at
 * your option) any later version.
 *
 * See the included COPYING file for more information.
 *
 * Author: Stef Walter <stefw@gnome.org>
 */

#include "config.h"

#ifndef __REALM_SAMBA_ENROLL_H__
#define __REALM_SAMBA_ENROLL_H__

#include <gio/gio.h>

#include <krb5.h>

G_BEGIN_DECLS

void               realm_samba_enroll_join_async     (const gchar *realm,
                                                      const gchar *user_name,
                                                      GBytes *password,
                                                      const gchar *computer_ou,
                                                      GDBusMethodInvocation *invocation,
                                                      GAsyncReadyCallback callback,
                                                      gpointer user_data);

gboolean           realm_samba_enroll_join_finish    (GAsyncResult *result,
                                                      GHashTable **settings,
                                                      GError **error);

void               realm_samba_enroll_leave_async    (const gchar *realm,
                                                      const gchar *user_name,
                                                      GBytes *password,
                                                      GDBusMethodInvocation *invocation,
                                                      GAsyncReadyCallback callback,
                                                      gpointer user_data);

gboolean           realm_samba_enroll_leave_finish   (GAsyncResult *result,
                                                      GError **error);

G_END_DECLS

#endif /* __REALM_SAMBA_ENROLL_H__ */