1 /* 2 * Copyright (c) 2009-2010 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 #ifndef __NOTIFY_PRIVATE_H__ 25 #define __NOTIFY_PRIVATE_H__ 26 27 #include <stdint.h> 28 #include <Availability.h> 29 30 #define NOTIFY_OPT_DEMUX 0x00000001 31 #define NOTIFY_OPT_REGEN 0x00000002 32 #define NOTIFY_OPT_ENABLE 0x04000000 33 #define NOTIFY_OPT_DISABLE 0x08000000 34 35 uint32_t notify_suspend_pid(pid_t pid) 36 __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0); 37 38 uint32_t notify_resume_pid(pid_t pid) 39 __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0); 40 41 uint32_t notify_simple_post(const char *name) 42 __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_3); 43 44 void notify_set_options(uint32_t opts) 45 __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_6_0); 46 47 #endif /* __NOTIFY_PRIVATE_H__ */ 48