(root)/
man-db-2.12.0/
libdb/
db_xdbm.h
       1  /*
       2   * db_xdbm.c: interface to common code for gdbm and ndbm backends
       3   *
       4   * Copyright (C) 2019 Colin Watson.
       5   *
       6   * This library is free software; you can redistribute it and/or
       7   * modify it under the terms of the GNU Library General Public
       8   * License as published by the Free Software Foundation; either
       9   * version 2 of the License, or (at your option) any later version.
      10   *
      11   * This library is distributed in the hope that it will be useful,
      12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      14   * Library General Public License for more details.
      15   *
      16   * You should have received a copy of the GNU Library General Public
      17   * License along with this library; if not, write to the Free Software
      18   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      19   */
      20  
      21  #ifndef MAN_XDBM_H
      22  #define MAN_XDBM_H
      23  
      24  #if defined(GDBM) || defined(NDBM)
      25  
      26  #include "mydbm.h"
      27  
      28  typedef datum (*man_xdbm_unsorted_firstkey) (MYDBM_FILE dbf);
      29  typedef datum (*man_xdbm_unsorted_nextkey) (MYDBM_FILE dbf, datum key);
      30  typedef void (*man_xdbm_raw_close) (MYDBM_FILE dbf);
      31  
      32  datum man_xdbm_firstkey (MYDBM_FILE dbf,
      33  			 man_xdbm_unsorted_firstkey firstkey,
      34  			 man_xdbm_unsorted_nextkey nextkey);
      35  datum man_xdbm_nextkey (MYDBM_FILE dbf, datum key);
      36  void man_xdbm_free (MYDBM_FILE dbf, man_xdbm_raw_close raw_close);
      37  
      38  #endif /* GDBM || NDBM */
      39  
      40  #endif /* MAN_XDBM_H */