1
/* status.h - Make server status information accessible through a named pipe
2
Copyright (C) 2000, 2001 Thomas Moestl
4
This file is part of the pdnsd package.
6
pdnsd is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
11
pdnsd 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
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with pdsnd; see the file COPYING. If not, write to
18
the Free Software Foundation, 59 Temple Place - Suite 330,
19
Boston, MA 02111-1307, USA. */
21
/* $Id: status.h,v 1.11 2001/05/30 21:04:15 tmm Exp $ */
29
extern char sock_path[MAXPATH];
31
/* The commands for pdnsd-ctl */
32
#define CTL_STATS 1 /* Give out stats (like the "traditional" status pipe) */
33
#define CTL_SERVER 2 /* Enable or disable a server */
34
#define CTL_RECORD 3 /* Delete or invalidate records */
35
#define CTL_SOURCE 4 /* Read a hosts-style file */
36
#define CTL_ADD 5 /* Read a hosts-style file */
37
#define CTL_NEG 6 /* Read a hosts-style file */
41
#define CTL_S_RETEST 3
42
#define CTL_R_DELETE 1
45
void init_stat_sock(void);
46
void start_stat_sock(void);