]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/ppp.h
4ef7c4066aea1429551031a3b2194230a10aff31
[apple/configd.git] / SystemConfiguration.fproj / ppp.h
1 /*
2 * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25
26 /*
27 * Modification History
28 *
29 * Nov 7, 2002 Allan Nathanson <ajn@apple.com>
30 * - use ServiceID *or* LinkID
31 *
32 * Feb 10, 2001 Allan Nathanson <ajn@apple.com>
33 * - cleanup API
34 *
35 * Feb 2000 Christophe Allie <callie@apple.com>
36 * - initial revision (as ppplib.h)
37 */
38
39 #ifndef _PPP_H
40 #define _PPP_H
41
42 #include <sys/cdefs.h>
43 #include <ppp/ppp_msg.h>
44 #include <CoreFoundation/CoreFoundation.h>
45
46 __BEGIN_DECLS
47
48 int PPPInit (int *ref);
49
50 int PPPDispose (int ref);
51
52 int PPPGetLinkByInterface (int ref,
53 char *if_name,
54 uint32_t *link);
55
56 int PPPConnect (int ref,
57 CFStringRef serviceid,
58 uint32_t link,
59 void *data,
60 uint32_t dataLen,
61 int linger);
62
63 int PPPDisconnect (int ref,
64 CFStringRef serviceid,
65 uint32_t link,
66 int force);
67
68 int PPPSuspend (int ref,
69 CFStringRef serviceID,
70 uint32_t link);
71
72 int PPPResume (int ref,
73 CFStringRef serviceID,
74 uint32_t link);
75
76 int PPPGetOption (int ref,
77 CFStringRef serviceid,
78 uint32_t link,
79 uint32_t option,
80 void **data,
81 uint32_t *dataLen);
82
83 int PPPSetOption (int ref,
84 CFStringRef serviceid,
85 uint32_t link,
86 uint32_t option,
87 void *data,
88 uint32_t dataLen);
89
90 int PPPGetConnectData (int ref,
91 CFStringRef serviceID,
92 uint32_t link,
93 void **data,
94 uint32_t *dataLen);
95
96 int PPPStatus (int ref,
97 CFStringRef serviceid,
98 uint32_t link,
99 struct ppp_status **stat);
100
101 int PPPExtendedStatus (int ref,
102 CFStringRef serviceid,
103 uint32_t link,
104 void **data,
105 uint32_t *dataLen);
106
107 int PPPEnableEvents (int ref,
108 CFStringRef serviceid,
109 uint32_t link,
110 u_char enable);
111
112 int PPPReadEvent (int ref,
113 uint32_t *event);
114
115 CFDataRef PPPSerialize (CFPropertyListRef obj,
116 void **data,
117 uint32_t *dataLen);
118
119 CFPropertyListRef PPPUnserialize (void *data,
120 uint32_t dataLen);
121
122 __END_DECLS
123
124 #endif /* _PPP_H */