]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/ppp.h
configd-53.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / ppp.h
1 /*
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23 /*
24 * Modification History
25 *
26 * Feb 10, 2001 Allan Nathanson <ajn@apple.com>
27 * - cleanup API
28 *
29 * Feb 2000 Christophe Allie <callie@apple.com>
30 * - initial revision (as ppplib.h)
31 */
32
33 #ifndef _PPP_H
34 #define _PPP_H
35
36 #include <sys/cdefs.h>
37 #include <CoreFoundation/CoreFoundation.h>
38 #include "ppp_msg.h"
39
40 __BEGIN_DECLS
41
42 int PPPInit (int *ref);
43
44 int PPPDispose (int ref);
45
46 int PPPExec (int ref,
47 u_long link,
48 u_int32_t cmd,
49 void *request,
50 u_long requestLen,
51 void **reply,
52 u_long *replyLen);
53
54 #ifdef NOT_NEEDED
55 int PPPConnect (int ref,
56 u_long link);
57
58 int PPPDisconnect (int ref,
59 u_long link);
60 #endif /* NOT_NEEDED */
61
62 int PPPGetNumberOfLinks (int ref,
63 u_long *nLinks);
64
65 int PPPGetLinkByIndex (int ref,
66 int index,
67 u_int32_t *link);
68
69 int PPPGetLinkByServiceID (int ref,
70 CFStringRef serviceID,
71 u_int32_t *link);
72
73 int PPPGetOption (int ref,
74 u_long link,
75 u_long option,
76 void **data,
77 u_long *dataLen);
78
79 #ifdef NOT_NEEDED
80 int PPPSetOption (int ref,
81 u_long link,
82 u_long option,
83 void *data,
84 u_long dataLen);
85 #endif /* NOT_NEEDED */
86
87 int PPPStatus (int ref,
88 u_long link,
89 struct ppp_status **stat);
90
91 #ifdef NOT_NEEDED
92 int PPPEnableEvents (int ref,
93 u_long link,
94 u_char enable);
95 #endif /* NOT_NEEDED */
96
97 __END_DECLS
98
99 #endif /* _PPP_H */