summaryrefslogtreecommitdiffstats
path: root/ldap/systools/pio.h
blob: 6f24bf8e92a444166800e774a62a0e3a67fd2511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** BEGIN COPYRIGHT BLOCK
 * Copyright 2001 Sun Microsystems, Inc.
 * Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
 * All rights reserved.
 * END COPYRIGHT BLOCK **/

#ifndef _H_III_PIO_H
#define _H_III_PIO_H

#include <stdio.h>

struct iii_pio_parsetab {
  char *token;
  int (*fn)(char *,char *);
};

#define III_PIO_SZ(x) (sizeof(x)/sizeof(struct iii_pio_parsetab))

extern int iii_pio_procparse (
	const char *cmd,
	int count,
	struct iii_pio_parsetab *
);

extern int iii_pio_getnum (
	const char *cmd,
	long *valPtr
);

#endif /* _H_III_PIO_H */