/* misc.h - miscellaneous structures that are needed in more than one file */

#include "copyright.h"

#ifndef _MISC_H
#define _MISC_H

#include "db.h"
#include "flags.h"

/* Search structure, used by @search and search(). */

typedef struct search_type SEARCH;
struct search_type {
	int	s_wizard;
	dbref	s_owner;
	dbref	s_rst_owner;
	int	s_rst_type;
	FLAGSEL	s_flagmasks;
	char	*s_rst_name;
	char	*s_rst_eval;
};

/* Stats structure, used by @stats and stats(). */

typedef struct stats_type STATS;
struct stats_type {
	int	s_total;
	int	s_rooms;
	int	s_exits;
	int	s_things;
	int	s_players;
	int	s_garbage;
};

extern int search_setup (dbref player, char *searchfor, SEARCH *parm);
extern void search_perform (dbref player, dbref cause, SEARCH *parm);
extern int get_stats (dbref player, dbref who, STATS *info);

#endif