23 |
#ifndef __ACCESS_H__ |
#ifndef __ACCESS_H__ |
24 |
#define __ACCESS_H__ |
#define __ACCESS_H__ |
25 |
|
|
26 |
int (*access_connect) (void); |
#include "config.h" |
27 |
int (*access_disconnect) (void); |
|
28 |
int (*access_is_connected) (void); |
typedef struct |
29 |
int (*access_getfd) (void); |
{ |
30 |
|
int (*connect) (void); |
31 |
|
int (*disconnect) (void); |
32 |
|
int (*is_connected) (void); |
33 |
|
int *fd; |
34 |
|
} |
35 |
|
access_t; |
36 |
|
|
37 |
|
extern access_t *haccess; |
38 |
|
|
39 |
|
#ifdef WITH_MODEM |
40 |
|
extern const access_t modem_access; |
41 |
|
#endif |
42 |
|
|
43 |
|
#ifdef WITH_CABLE |
44 |
|
extern const access_t cable_access; |
45 |
|
#endif |
46 |
|
|
47 |
#endif /* __ACCESS_H__ */ |
#endif /* __ACCESS_H__ */ |