/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Data Types for policy and principal information that
* exists in the respective databases.
*
* $Header$
*
* This file was originally created with rpcgen.
* It has been hacked up since then.
*/
#ifndef __ADB_H__
#define __ADB_H__
#include <errno.h>
#include <krb5.h>
#include <kdb.h>
/* Okay, this is a bit obscure. The libdb2 configure script doesn't
detect it, but on Tru64 5.1, netinet/in.h causes sys/bittypes.h to
be included, and that has a typedef for u_int32_t. Because the
configure script doesn't detect it, it causes db-config.h to have a
causes compilation to fail.
will cause the typedef to be seen before the macro definition,
which still isn't quite right, but is close enough for now.
where we find u_int32_t. */
/* Solaris Kerberos: gssrpc not supported */
#if 0 /************** Begin IFDEF'ed OUT *******************************/
#else
#endif /**************** END IFDEF'ed OUT *******************************/
#include <db.h>
#include "adb_err.h"
#include <com_err.h>
typedef long osa_adb_ret_t;
typedef struct _osa_adb_db_lock_ent_t {
char *filename;
typedef struct _osa_adb_db_ent_t {
int magic;
char *filename;
int opencnt;
/*
* Return Code (the rest are in adb_err.h)
*/
#define OSA_ADB_OK 0
/*
* Functions
*/
char * name);
char * name,
int *cnt);
void * data);
/* Solaris Kerberos */
#endif /* __ADB_H__ */