~ubuntu-branches/ubuntu/karmic/pdnsd/karmic

« back to all changes in this revision

Viewing changes to src/status.h

  • Committer: Bazaar Package Importer
  • Author(s): Takuo KITAME
  • Date: 2002-04-07 02:30:11 UTC
  • Revision ID: james.westby@ubuntu.com-20020407023011-6zzd1y8a8tk5fz97
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* status.h - Make server status information accessible through a named pipe
 
2
   Copyright (C) 2000, 2001 Thomas Moestl
 
3
 
 
4
This file is part of the pdnsd package.
 
5
 
 
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)
 
9
any later version.
 
10
 
 
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.
 
15
 
 
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.  */
 
20
 
 
21
/* $Id: status.h,v 1.11 2001/05/30 21:04:15 tmm Exp $ */
 
22
 
 
23
#ifndef _STATUS_H_
 
24
#define _STATUS_H_
 
25
 
 
26
#include <config.h>
 
27
#include "conff.h"
 
28
 
 
29
extern char sock_path[MAXPATH];
 
30
 
 
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 */
 
38
 
 
39
#define CTL_S_UP     1
 
40
#define CTL_S_DOWN   2
 
41
#define CTL_S_RETEST 3
 
42
#define CTL_R_DELETE 1
 
43
#define CTL_R_INVAL  2
 
44
 
 
45
void init_stat_sock(void);
 
46
void start_stat_sock(void);
 
47
 
 
48
#endif