RTEMS  5.1
rtemsdialer.h
1 
2 #ifndef DIALER_H
3 #define DIALER_H
4 
5 /* define constant mode values */
6 #define DIALER_INIT 0
7 #define DIALER_CONNECT 1
8 #define DIALER_WELCOME 2
9 #define DIALER_DISCONNECT 3
10 
11 /* define constant return values */
12 #define DIALER_SUCCESS 0
13 #define DIALER_INVALIDARG 1
14 #define DIALER_UNEXPECTED 2
15 #define DIALER_TIMEOUT 3
16 #define DIALER_CMDFAILED 4
17 
18 /* define typedef for dialer function prototype */
19 typedef int (*dialerfp)(int tty, int mode, char *pScript);
20 
21 /* declare default chat program dialer */
22 extern int chatmain(int tty, int mode, char *pScript);
23 
24 #endif