nss_mc.h revision 10eae23e2483733d4ca3c21f15b5bdb3f04c9839
/*
* System Security Services Daemon. NSS client interface
*
* Copyright (C) Simo Sorce 2011
*
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* NSS interfaces to mmap cache */
#ifndef _NSS_MC_H_
#define _NSS_MC_H_
#include <stdint.h>
#include <stdbool.h>
#include <pwd.h>
#include <grp.h>
#include "util/mmap_cache.h"
#ifndef HAVE_ERRNO_T
#define HAVE_ERRNO_T
typedef int errno_t;
#endif
/* common stuff */
struct sss_cli_mc_ctx {
bool initialized;
int fd;
void *mmap_base; /* base address of mmap */
};
/* passwd db */
/* group db */
#endif /* _NSS_MC_H_ */