source: rtems/cpukit/pppd/rtemspppd.h @ 805360b

4.11
Last change on this file since 805360b was 805360b, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 23, 2014 at 12:20:35 PM

pppd: Fix warnings

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[689b7b7a]1/*
2 * COPYRIGHT (c) 2001, Michael Siers <mikes@poliac.com>.
3 *                     Poliac Research, Burnsville, Minnesota USA.
4 * COPYRIGHT (c) 2001, On-Line Applications Research Corporation (OAR).
5 *
6 * The license and distribution terms for this file may be
7 * found in the file LICENSE in this distribution or at
[c499856]8 * http://www.rtems.org/license/LICENSE.
[689b7b7a]9 */
[2f1b930]10
11#ifndef RTEMSPPPD_H
12#define RTEMSPPPD_H
13
[805360b]14#ifdef __cplusplus
15extern "C" {
16#endif /* __cplusplus */
[2f1b930]17
18/* define hook function identifiers */
19#define RTEMS_PPPD_LINKUP_HOOK      1
20#define RTEMS_PPPD_LINKDOWN_HOOK    2
21#define RTEMS_PPPD_IPUP_HOOK        3
22#define RTEMS_PPPD_IPDOWN_HOOK      4
[0286b9f]23#define RTEMS_PPPD_ERROR_HOOK       5
24#define RTEMS_PPPD_EXIT_HOOK        6
[2f1b930]25
26/* define hook function pointer prototype */
27typedef void (*rtems_pppd_hookfunction)(void);
[0286b9f]28typedef int  (*rtems_pppd_dialerfunction)(int tty, int mode, char *pScript);
[2f1b930]29
30
31/* define pppd function prototyes */
32int rtems_pppd_initialize(void);
33int rtems_pppd_terminate(void);
34int rtems_pppd_reset_options(void);
35int rtems_pppd_set_hook(int id, rtems_pppd_hookfunction hookfp);
[0286b9f]36int rtems_pppd_set_dialer(rtems_pppd_dialerfunction dialerfp);
[2f1b930]37int rtems_pppd_set_option(const char *pOption, const char *pValue);
38int rtems_pppd_connect(void);
39int rtems_pppd_disconnect(void);
40
[805360b]41struct rtems_bsdnet_ifconfig;
42
43int rtems_ppp_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
44
45#ifdef __cplusplus
46}
47#endif /* __cplusplus */
48
[2f1b930]49#endif
Note: See TracBrowser for help on using the repository browser.