]> git.saurik.com Git - apple/launchd.git/blame - launchd/src/IPC.h
launchd-106.10.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 *
9 * @APPLE_LICENSE_HEADER_START@
10 *
11 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
12 * Reserved. This file contains Original Code and/or Modifications of
13 * Original Code as defined in and that are subject to the Apple Public
14 * Source License Version 1.1 (the "License"). You may not use this file
15 * except in compliance with the License. Please obtain a copy of the
16 * License at http://www.apple.com/publicsource and read it before using
17 * this file.
18 *
19 * The Original Code and all software distributed under the License are
20 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
21 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
22 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
24 * License for the specific language governing rights and limitations
25 * under the License.
26 *
27 * @APPLE_LICENSE_HEADER_END@
28 **/
29
30#ifndef _IPC_H_
31#define _IPC_H_
32
33#include "SystemStarter.h"
34
35/**
36 * Monitor a startup item task. Creates a mach port and uses the
37 * invalidation callback to notify system starter when the process
38 * terminates.
39 **/
40void MonitorStartupItem (StartupContext aStartupContext, CFMutableDictionaryRef anItem);
41
42/**
43 * Creates a named mach port and run loop source. The name is encoded using UTF-8.
44 **/
45CFRunLoopSourceRef CreateIPCRunLoopSource(CFStringRef aPortName, StartupContext aStartupContext);
46
47#endif /* _IPC_H_ */