singletons.h revision 171795
1219820Sjeff/*-
2219820Sjeff * Copyright (c) 2005 Michael Bushkov <bushman@rsu.ru>
3219820Sjeff * All rights reserved.
4219820Sjeff *
5271127Shselasky * Redistribution and use in source and binary forms, with or without
6219820Sjeff * modification, are permitted provided that the following conditions
7219820Sjeff * are met:
8219820Sjeff * 1. Redistributions of source code must retain the above copyright
9219820Sjeff *    notice, this list of conditions and the following disclaimer.
10219820Sjeff * 2. Redistributions in binary form must reproduce the above copyright
11219820Sjeff *    notice, this list of conditions and the following disclaimer in the
12219820Sjeff *    documentation and/or other materials provided with the distribution.
13219820Sjeff *
14219820Sjeff * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15219820Sjeff * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16219820Sjeff * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17219820Sjeff * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18219820Sjeff * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19219820Sjeff * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20219820Sjeff * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21219820Sjeff * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22219820Sjeff * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23219820Sjeff * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24219820Sjeff * SUCH DAMAGE.
25219820Sjeff *
26219820Sjeff * $FreeBSD: head/usr.sbin/nscd/singletons.h 171795 2007-08-09 13:06:12Z bushman $
27219820Sjeff */
28219820Sjeff
29219820Sjeff#ifndef __NSCD_SINGLETONS_H__
30219820Sjeff#define __NSCD_SINGLETONS_H__
31219820Sjeff
32282513Shselasky#include "cachelib.h"
33219820Sjeff#include "config.h"
34219820Sjeff#include "agent.h"
35219820Sjeff
36219820Sjeffstruct runtime_env {
37219820Sjeff	int	queue;
38219820Sjeff	int	sockfd;
39219820Sjeff	int	finished;	/* for future use */
40219820Sjeff};
41219820Sjeff
42219820Sjeffextern struct configuration *s_configuration;
43219820Sjeffextern cache s_cache;
44219820Sjeffextern struct runtime_env *s_runtime_env;
45219820Sjeffextern struct agent_table *s_agent_table;
46219820Sjeff
47219820Sjeff#endif
48219820Sjeff