]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/ppp.h
configd-24.1.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / ppp.h
1 /*
2 * Copyright (c) 2001 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 #ifndef _PPP_H
24 #define _PPP_H
25
26
27 #include <sys/cdefs.h>
28 #include <CoreFoundation/CoreFoundation.h>
29 #include "ppp_msg.h"
30
31
32 __BEGIN_DECLS
33
34 int PPPInit (int *ref);
35
36 int PPPDispose (int ref);
37
38 int PPPExec (int ref,
39 u_long link,
40 u_int32_t cmd,
41 void *request,
42 u_long requestLen,
43 void **reply,
44 u_long *replyLen);
45
46 int PPPGetNumberOfLinks (int ref,
47 u_long *nLinks);
48
49 int PPPGetLinkByIndex (int ref,
50 int index,
51 u_int32_t *link);
52
53 int PPPGetLinkByServiceID (int ref,
54 CFStringRef serviceID,
55 u_int32_t *link);
56
57 int PPPGetOption (int ref,
58 u_long link,
59 u_long option,
60 void **data,
61 u_long *dataLen);
62
63 int PPPStatus (int ref,
64 u_long link,
65 struct ppp_status **stat);
66
67 __END_DECLS
68
69 #endif /* _PPP_H */