]> git.saurik.com Git - apple/configd.git/blob - Plugins/KernelEventMonitor/ev_dlil.h
configd-1061.80.3.tar.gz
[apple/configd.git] / Plugins / KernelEventMonitor / ev_dlil.h
1 /*
2 * Copyright (c) 2002-2015, 2019 Apple 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 * August 5, 2002 Allan Nathanson <ajn@apple.com>
28 * - split code out from eventmon.c
29 */
30
31
32 #ifndef _EV_DLIL_H
33 #define _EV_DLIL_H
34
35 __BEGIN_DECLS
36
37 void interface_detaching (const char *if_name);
38
39 void interface_update_delegation (const char *if_name);
40
41 void interface_update_idle_state (const char *if_name);
42
43 void interface_update_link_issues (const char *if_name,
44 uint64_t timestamp,
45 uint8_t *modid,
46 size_t modid_size,
47 uint8_t *info,
48 size_t info_size);
49
50 void interface_update_quality_metric (const char *if_name, int quality);
51
52 void link_add (const char *if_name);
53
54 void link_remove (const char *if_name);
55
56 void link_update_status (const char *if_name, boolean_t attach, boolean_t only_if_different);
57
58 void link_update_status_if_missing (const char * if_name);
59
60 CFMutableArrayRef
61 interfaceListCopy(void);
62
63 void
64 interfaceListUpdate(CFArrayRef ifList);
65
66 Boolean
67 interfaceListAddInterface(CFMutableArrayRef ifList, const char * if_name);
68
69 __END_DECLS
70
71 #endif /* _EV_DLIL_H */
72