25 |
#ifndef __CHECKOPT_H__ |
#ifndef __CHECKOPT_H__ |
26 |
#define __CHECKOPT_H__ |
#define __CHECKOPT_H__ |
27 |
|
|
28 |
#include "config.h" |
#if HAVE_CONFIG_H |
29 |
|
# include "config.h" |
30 |
|
#endif |
31 |
|
|
32 |
int check_multiple(char *option, char *value, char **choices); |
int check_multiple(char *option, char *value, char **choices); |
33 |
|
|
37 |
int check_screen_name(char *option, char *sn); |
int check_screen_name(char *option, char *sn); |
38 |
int check_debug_level(char *option, int level); |
int check_debug_level(char *option, int level); |
39 |
int check_natural(char *option, int num); |
int check_natural(char *option, int num); |
40 |
#ifdef WITH_MODEM |
#if ENABLE_MODEM |
41 |
int check_line_speed(char *option, int speed); |
int check_line_speed(char *option, int speed); |
42 |
#endif |
#endif |
43 |
#ifdef WITH_CABLE |
#if ENABLE_TCPIP |
44 |
int check_port(char *option, int port); |
int check_port(char *option, int port); |
|
int check_ip(char *option, char *ip); |
|
45 |
#endif |
#endif |
46 |
|
|
47 |
#endif /* __CHECKOPT_H__ */ |
#endif /* __CHECKOPT_H__ */ |