/
githubmirror
/
adcli
Обзор
Документация
Войти
/
githubmirror
/
adcli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
0.2
library/adutil.h
78 строк
2 KB
Stef Walter
Update the license to LGPL 2.1 and add headers to files
14 май 2012, 07:24
14 май 2012, 07:24
6919d51
Код
Авторство
О чём код?
/* * adcli * * Copyright (C) 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.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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Author: Stef Walter <stefw@gnome.org> */ #ifndef ADUTIL_H_ #define ADUTIL_H_ typedef enum { /* Successful completion */ ADCLI_SUCCESS = 0, /* * Invalid input or unexpected system behavior. * * This is almost always caused by a bug, or completely broken * system configuration or state. This is returned when memory * allocation fails, but the process will almost certainly have * been killed first. * * This is returned for invalid inputs (such an unexpected * NULL) to adcli. */ ADCLI_ERR_UNEXPECTED = -2, /* * A general failure, that doesn't fit into the other categories. * Not much the caller can do. */ ADCLI_ERR_FAIL = -3, /* * A problem with the active directory or connecting to it. */ ADCLI_ERR_DIRECTORY = -4, /* * A logic problem with the configuration of the local system, or * the settings passed into adcli. */ ADCLI_ERR_CONFIG = -5, /* * Invalid credentials. * * The credentials are invalid, or don't have the necessary * access rights. */ ADCLI_ERR_CREDENTIALS = -6, } adcli_result; typedef enum { ADCLI_MESSAGE_INFO, ADCLI_MESSAGE_WARNING, ADCLI_MESSAGE_ERROR } adcli_message_type; const char * adcli_result_to_string (adcli_result res); #endif /* ADUTIL_H_ */