Diff for /src/include/rpcsvc/nis_db.h between versions 1.2 and 1.3

version 1.2, 2003/06/17 04:25:58 version 1.3, 2004/02/25 15:12:54
Line 27 Line 27
  * Mountain View, California  94043   * Mountain View, California  94043
  *   *
  * $FreeBSD: src/include/rpcsvc/nis_db.h,v 1.5 1999/08/27 23:45:09 peter Exp $   * $FreeBSD: src/include/rpcsvc/nis_db.h,v 1.5 1999/08/27 23:45:09 peter Exp $
 * $DragonFly: src/include/rpcsvc/nis_db.h,v 1.1 2003/06/16 04:16:05 dillon Exp $ * $DragonFly$
  */   */
   
 /*  /*
Line 54 Line 54
  * have been hand merged into this file to bring it up to date.   * have been hand merged into this file to bring it up to date.
  */   */
   
   #include <sys/cdefs.h>
   
 #include <rpc/rpc.h>  #include <rpc/rpc.h>
 #include <rpcsvc/nis.h>  #include <rpcsvc/nis.h>
   
#ifdef  __cplusplus__BEGIN_DECLS
extern "C" { 
#endif 
   
 enum db_status {  enum db_status {
         DB_SUCCESS = 0,          DB_SUCCESS = 0,
Line 107  typedef struct db_result db_result; Line 107  typedef struct db_result db_result;
  * Prototypes for the database functions.   * Prototypes for the database functions.
  */   */
   
#if (__STDC__)bool_t           db_initialize(char *);
 
extern bool_t db_initialize(char *); 
 #ifdef ORIGINAL_DECLS  #ifdef ORIGINAL_DECLS
extern bool_t db_create_table(char *, table_obj *);bool_t           db_create_table(char *, table_obj *);
extern bool_t db_destroy_table(char *);bool_t           db_destroy_table(char *);
 #else  #else
extern db_status db_create_table(char *, table_obj *);db_status        db_create_table(char *, table_obj *);
extern db_status db_destroy_table(char *);db_status        db_destroy_table(char *);
 #endif  #endif
extern db_result *db_first_entry(char *, int, nis_attr *);db_result       *db_first_entry(char *, int, nis_attr *);
extern db_result *db_next_entry(char *, db_next_desc *);db_result       *db_next_entry(char *, db_next_desc *);
extern db_result *db_reset_next_entry(char *, db_next_desc *);db_result       *db_reset_next_entry(char *, db_next_desc *);
extern db_result *db_list_entries(char *, int, nis_attr *);db_result       *db_list_entries(char *, int, nis_attr *);
extern db_result *db_add_entry(char *, int,  nis_attr *, entry_obj *);db_result       *db_add_entry(char *, int,  nis_attr *, entry_obj *);
extern db_result *db_remove_entry(char *, int, nis_attr *);db_result       *db_remove_entry(char *, int, nis_attr *);
extern db_status db_checkpoint(char *);db_status        db_checkpoint(char *);
extern db_status db_standby(char *);db_status        db_standby(char *);
 #ifndef ORIGINAL_DECLS  #ifndef ORIGINAL_DECLS
extern db_status db_table_exists(char *);db_status        db_table_exists(char *);
extern db_status db_unload_table(char *);db_status        db_unload_table(char *);
extern void db_free_result(db_result *);void             db_free_result(db_result *);
 #endif  #endif
   
#else /* Non-prototype definitions */__END_DECLS
 
extern bool_t db_initialize(); 
#ifdef ORIGINAL_DECLS 
extern bool_t db_create_table(); 
extern bool_t db_destroy_table(); 
#else 
extern db_status db_create_table(); 
extern db_status db_destroy_table(); 
#endif 
extern db_result *db_first_entry(); 
extern db_result *db_next_entry(); 
extern db_result *db_reset_next_entry(); 
extern db_result *db_list_entries(); 
extern db_result *db_add_entry(); 
extern db_result *db_remove_entry(); 
extern db_status db_checkpoint(); 
extern db_status db_standby(); 
#ifndef ORIGINAL_DECLS 
extern db_status db_table_exists(); 
extern db_status db_unload_table(); 
extern void db_free_result(); 
#endif 
#endif  /* __STDC__ */ 
 
#ifdef __cplusplus 
} 
#endif 
   
 #endif  /* _RPCSVC_NIS_DB_H */  #endif  /* _RPCSVC_NIS_DB_H */

Removed from v.1.2  
changed lines
  Added in v.1.3