kdb_hdr.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _KDB_HDR_H
#define _KDB_HDR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <krb5.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* This header is required to solve a conflict with
* which creates numerous defines like ....
* #define krb5_dbm_db_fini krb5_db_fini
* that break the spec file creation and resolution process.
*
*/
#ifndef __KADM5_ADMIN_H__
struct _kadm5_config_params;
typedef struct _kadm5_config_params kadm5_config_params;
#endif
#define krb5_const
#else
#define krb5_const const
#endif
typedef struct _krb5_keysalt {
} krb5_keysalt;
typedef struct _krb5_tl_data {
} krb5_tl_data;
typedef struct _krb5_key_data {
typedef struct _krb5_db_entry_new {
#include "db-ndbm.h"
#ifndef __P
#if defined(__STDC__) || defined(__cplusplus)
#else /* !(__STDC__ || __cplusplus) */
#endif
#endif /* no __P from system */
#ifndef __P
#if defined(__STDC__) || defined(__cplusplus)
#else /* !(__STDC__ || __cplusplus) */
#endif
#endif /* no __P from system */
typedef struct _kdb5_dispatch_table {
char * kdb5_db_mech_name;
char * kdb5_db_index_ext;
char * kdb5_db_data_ext;
char * kdb5_db_lock_ext;
/* Per-database context. */
typedef struct __krb5_db_context {
char * db_name; /* Name of database */
char * db_lf_name; /* Name of lock file */
int db_lf_file; /* File descriptor of lock file */
int db_locks_held; /* Number of times locked */
int db_lock_mode; /* Last lock mode, e.g. greatest*/
#ifdef __cplusplus
}
#endif
#endif /* !_KDB_HDR_H */