diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/pppd/rtemspppd.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/cpukit/pppd/rtemspppd.h b/cpukit/pppd/rtemspppd.h index 9d44e58594..f60916e2ee 100644 --- a/cpukit/pppd/rtemspppd.h +++ b/cpukit/pppd/rtemspppd.h @@ -2,28 +2,18 @@ #ifndef RTEMSPPPD_H #define RTEMSPPPD_H -/* check to see if pppd task values are set */ -#ifndef RTEMS_PPPD_TASK_PRIORITY -#define RTEMS_PPPD_TASK_PRIORITY 120 -#endif -#ifndef RTEMS_PPPD_TASK_STACK_SIZE -#define RTEMS_PPPD_TASK_STACK_SIZE (10*1024) -#endif -#ifndef RTEMS_PPPD_TASK_INITIAL_MODES -#define RTEMS_PPPD_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ - RTEMS_NO_TIMESLICE | \ - RTEMS_NO_ASR | \ - RTEMS_INTERRUPT_LEVEL(0)) -#endif /* define hook function identifiers */ #define RTEMS_PPPD_LINKUP_HOOK 1 #define RTEMS_PPPD_LINKDOWN_HOOK 2 #define RTEMS_PPPD_IPUP_HOOK 3 #define RTEMS_PPPD_IPDOWN_HOOK 4 +#define RTEMS_PPPD_ERROR_HOOK 5 +#define RTEMS_PPPD_EXIT_HOOK 6 /* define hook function pointer prototype */ typedef void (*rtems_pppd_hookfunction)(void); +typedef int (*rtems_pppd_dialerfunction)(int tty, int mode, char *pScript); /* define pppd function prototyes */ @@ -31,6 +21,7 @@ int rtems_pppd_initialize(void); int rtems_pppd_terminate(void); int rtems_pppd_reset_options(void); int rtems_pppd_set_hook(int id, rtems_pppd_hookfunction hookfp); +int rtems_pppd_set_dialer(rtems_pppd_dialerfunction dialerfp); int rtems_pppd_set_option(const char *pOption, const char *pValue); int rtems_pppd_connect(void); int rtems_pppd_disconnect(void); |