ntpdc.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* ntpdc.h - definitions of interest to xntpdc
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "ntp_fp.h"
#include "ntp.h"
#include "ntp_request.h"
#include "ntp_string.h"
#include "ntp_malloc.h"
/*
* Maximum number of arguments
*/
#define MAXARGS 4
/*
* Flags for forming descriptors.
*/
#define NO 0x0
/*
* Arguments are returned in a union
*/
typedef union {
char *string;
long ival;
} arg_v;
/*
* Structure for passing parsed command line
*/
struct parse {
char *keyword;
int nargs;
};
/*
* xntpdc includes a command parser which could charitably be called
* crude. The following structure is used to define the command
* syntax.
*/
struct xcmd {
const char *keyword; /* command key word */
const char *comment;
};
extern int doquery P((int, int, int, int, int, char *, int *, int *, char **, int));