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