/*
* This file is part of SkunkDB
* Copyright (c) 2001 Gianni Tedesco
*
*    SkunkDB is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    SkunkDB 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 General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with SkunkDB; if not, write to the Free Software
*    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/


#ifndef __SKUNK_QUERY_HEADER_INCLUDED__
#define __SKUNK_QUERY_HEADER_INCLUDED__

#include <skunk.h>

/* SDB query object */
typedef struct sdbq {
	int		fd;
	char		*map;
	size_t		maplen;
	skunk_ofs_t	slot;
	skunkrec_t	item;
}sdbq_t, *p_sdbq;

int	sdbq_init(p_sdbq, int);
int	sdbq_query(p_sdbq, u_int8_t *, skunk_ofs_t);
void	sdbq_close(p_sdbq);

#endif /* __SKUNK_QUERY_HEADER_INCLUDED__ */
