tools_util.h revision 9c124af8868a7d3908c03ec369e28daef17d5f12
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Simo Sorce <ssorce@redhat.com>
Copyright (C) 2009 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __TOOLS_UTIL_H__
#define __TOOLS_UTIL_H__
#include <popt.h>
if (val != 0) { \
val = EXIT_FAILURE; \
goto fini; \
} \
} while(0)
struct tools_ctx {
struct tevent_context *ev;
struct confdb_ctx *confdb;
struct sss_names_ctx *snctx;
struct sss_domain_info *local;
struct sysdb_handle *handle;
bool transaction_done;
int error;
};
int set_locale(void);
const char *fullname);
struct sss_domain_info *dom);
const char *optstr,
char ***_out);
char **groups);
char **grouplist,
char **badgroup);
const char *skeldir,
const char *homedir,
const char *username,
const char *username,
const char *maildir,
const char *homedir,
const char *maildir,
const char *username,
/* from files.c */
int remove_tree(const char *root);
const char *dst_root,
/* from nscd.c */
enum nscd_db {
};
/* from selinux.c */
int selinux_file_context(const char *dst_name);
int reset_selinux_file_context(void);
int del_seuser(const char *login_name);
#endif /* __TOOLS_UTIL_H__ */