]> git.saurik.com Git - apple/launchd.git/blame - launchd/src/IPC.h
launchd-152.tar.gz
[apple/launchd.git] / launchd / src / IPC.h
CommitLineData
e91b9f68
A
1/**
2 * IPC.h - System Starter IPC routines
3 * Wilfredo Sanchez | wsanchez@opensource.apple.com
4 * Kevin Van Vechten | kevinvv@uclink4.berkeley.edu
5 * $Apple$
6 **
7 * Copyright (c) 1999-2001 Apple Computer, Inc. All rights reserved.
8 *
ed34e3c3 9 * @APPLE_APACHE_LICENSE_HEADER_START@
e91b9f68 10 *
ed34e3c3
A
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
e91b9f68 14 *
ed34e3c3 15 * http://www.apache.org/licenses/LICENSE-2.0
e91b9f68 16 *
ed34e3c3
A
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
22 *
23 * @APPLE_APACHE_LICENSE_HEADER_END@
e91b9f68
A
24 **/
25
26#ifndef _IPC_H_
27#define _IPC_H_
28
29#include "SystemStarter.h"
30
31/**
32 * Monitor a startup item task. Creates a mach port and uses the
33 * invalidation callback to notify system starter when the process
34 * terminates.
35 **/
36void MonitorStartupItem (StartupContext aStartupContext, CFMutableDictionaryRef anItem);
37
38/**
39 * Creates a named mach port and run loop source. The name is encoded using UTF-8.
40 **/
41CFRunLoopSourceRef CreateIPCRunLoopSource(CFStringRef aPortName, StartupContext aStartupContext);
42
43#endif /* _IPC_H_ */