Blame library/adentry.h

Packit Service 6d40f9
/*
Packit Service 6d40f9
 * adcli
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * Copyright (C) 2013 Red Hat Inc.
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * This program is free software; you can redistribute it and/or modify
Packit Service 6d40f9
 * it under the terms of the GNU Lesser General Public License as
Packit Service 6d40f9
 * published by the Free Software Foundation; either version 2.1 of
Packit Service 6d40f9
 * the License, or (at your option) any later version.
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * This program is distributed in the hope that it will be useful, but
Packit Service 6d40f9
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 6d40f9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 6d40f9
 * Lesser General Public License for more details.
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * You should have received a copy of the GNU Lesser General Public
Packit Service 6d40f9
 * License along with this program; if not, write to the Free Software
Packit Service 6d40f9
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
Packit Service 6d40f9
 * MA 02110-1301 USA
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * Author: Stef Walter <stefw@redhat.com>
Packit Service 6d40f9
 */
Packit Service 6d40f9
Packit Service 6d40f9
#ifndef ADENTRY_H_
Packit Service 6d40f9
#define ADENTRY_H_
Packit Service 6d40f9
Packit Service 6d40f9
#include "adconn.h"
Packit Service 6d40f9
#include "adattrs.h"
Packit Service 6d40f9
Packit Service 6d40f9
typedef struct _adcli_entry adcli_entry;
Packit Service 6d40f9
Packit Service 6d40f9
adcli_entry *      adcli_entry_new_user                 (adcli_conn *conn,
Packit Service 6d40f9
                                                         const char *sam_name);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_entry *      adcli_entry_new_group                (adcli_conn *conn,
Packit Service 6d40f9
                                                         const char *sam_name);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_entry *      adcli_entry_ref                      (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_entry_unref                    (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_entry_load                     (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_entry_create                   (adcli_entry *entry,
Packit Service 6d40f9
                                                         adcli_attrs *attrs);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_entry_modify                   (adcli_entry *entry,
Packit Service 6d40f9
                                                         adcli_attrs *attrs);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_entry_delete                   (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_entry_get_domain_ou            (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_entry_set_domain_ou            (adcli_entry *entry,
Packit Service 6d40f9
                                                         const char *ou);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_entry_get_sam_name             (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_entry_get_dn                   (adcli_entry *entry);
Packit Service 6d40f9
Packit Service 6d40f9
#endif /* ADENTRY_H_ */