xref: /trueos/lib/libnotify/notify_keys.h (revision df708cfae8b36425e4c55a0170b15d8434283555)
1 /*
2  * Copyright (c) 2007-2009 Apple Inc. All rights reserved.
3  *
4  * @APPLE_LICENSE_HEADER_START@
5  *
6  * Portions Copyright (c) 2007-2009 Apple 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  * This file lists notification keys that are posted using the
28  * notify_post() API by various Mac OS X system services.
29  * The exact circumstances under which services post these
30  * notifications is controlled by those services, and may change
31  * in future software releases.
32  */
33 
34 /*
35  * Directory Service notifications
36  * These are posted by the DirectoryService daemon to advise clients that
37  * cached data should be invalidated.
38  */
39 #define kNotifyDSCacheInvalidation "com.apple.system.DirectoryService.InvalidateCache"
40 #define kNotifyDSCacheInvalidationGroup "com.apple.system.DirectoryService.InvalidateCache.group"
41 #define kNotifyDSCacheInvalidationHost "com.apple.system.DirectoryService.InvalidateCache.host"
42 #define kNotifyDSCacheInvalidationService "com.apple.system.DirectoryService.InvalidateCache.service"
43 #define kNotifyDSCacheInvalidationUser "com.apple.system.DirectoryService.InvalidateCache.user"
44 
45 /*
46  * File System notifications
47  * These advise clients of various filesystem events.
48  */
49 #define kNotifyVFSMount "com.apple.system.kernel.mount"
50 #define kNotifyVFSUnmount "com.apple.system.kernel.unmount"
51 #define kNotifyVFSUpdate "com.apple.system.kernel.mountupdate"
52 #define kNotifyVFSLowDiskSpace "com.apple.system.lowdiskspace"
53 #define kNotifyVFSLowDiskSpaceRootFS "com.apple.system.lowdiskspace.system"
54 #define kNotifyVFSLowDiskSpaceOtherFS "com.apple.system.lowdiskspace.user"
55 
56 /*
57  * System Configuration notifications
58  * These advise clients of changes in the system configuration
59  * managed by the system configuration server (configd).
60  * Note that a much richer set of notifications are available to
61  * clients using the SCDynamicStore API.
62  */
63 #define kNotifySCHostNameChange "com.apple.system.hostname"
64 #define kNotifySCNetworkChange "com.apple.system.config.network_change"
65 
66 /*
67  * ASL notifications
68  * Sent by syslogd to advise clients that new log messages have been
69  * added to the ASL database.
70  */
71 #define kNotifyASLDBUpdate "com.apple.system.logger.message"
72 
73 /*
74  * Time Zone change notification
75  * Sent by notifyd when the system's timezone changes.
76  */
77 #define kNotifyTimeZoneChange "com.apple.system.timezone"
78 
79 /*
80  * System clock change notification
81  * Sent when a process modifies the system clock using the settimeofday system call.
82  */
83 #define kNotifyClockSet "com.apple.system.clock_set"
84