Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
3.4 kB · 88 lines
C
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889/** * SystemStarterIPC.h - System Starter IPC definitions * Wilfredo Sanchez | wsanchez@opensource.apple.com * Kevin Van Vechten | kevinvv@uclink4.berkeley.edu ** * Copyright (c) 1999-2001 Apple Computer, Inc. All rights reserved. * * @APPLE_APACHE_LICENSE_HEADER_START@ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @APPLE_APACHE_LICENSE_HEADER_END@ ** * Definitions used for IPC communications with SystemStarter. * SystemStarter listens on a CFMessagePort with the name defined by * kSystemStarterMessagePort. The messageID of each message should * be set to the kIPCProtocolVersion constant. The contents of each * message should be an XML plist containing a dictionary using * the keys defined in this file. **/
#ifndef _SYSTEM_STARTER_IPC_H#define _SYSTEM_STARTER_IPC_H
#include <CoreFoundation/CFString.h>#include <mach/message.h>
/* Compatible with inline CFMessagePort messages. */typedef struct SystemStarterIPCMessage { mach_msg_header_t aHeader; mach_msg_body_t aBody; SInt32 aProtocol; SInt32 aByteLength; /* Data follows. */} SystemStarterIPCMessage;
/* Name of the CFMessagePort SystemStarter listens on. */#define kSystemStarterMessagePort "com.apple.SystemStarter"
/* kIPCProtocolVersion should be passed as the messageID of the CFMessage. */#define kIPCProtocolVersion 0
/* kIPCTypeKey should be provided for all messages. */#define kIPCMessageKey CFSTR("Message")
/* Messages are one of the following types: */#define kIPCConsoleMessage CFSTR("ConsoleMessage")#define kIPCStatusMessage CFSTR("StatusMessage")#define kIPCQueryMessage CFSTR("QueryMessage")#define kIPCLoadDisplayBundleMessage CFSTR("LoadDisplayBundle")#define kIPCUnloadDisplayBundleMessage CFSTR("UnloadDisplayBundle")
/* kIPCServiceNameKey identifies a startup item by one of the services it provides. */#define kIPCServiceNameKey CFSTR("ServiceName")
/* kIPCProcessIDKey identifies a running startup item by its process id. */#define kIPCProcessIDKey CFSTR("ProcessID")
/* kIPCConsoleMessageKey contains the non-localized string to * display for messages of type kIPCTypeConsoleMessage. */#define kIPCConsoleMessageKey CFSTR("ConsoleMessage")
/* kIPCStatus key contains a boolean value. True for success, false for failure. */#define kIPCStatusKey CFSTR("StatusKey")
/* kIPCDisplayBundlePathKey contains a string path to the display bundle SystemStarter should attempt to load. */#define kIPCDisplayBundlePathKey CFSTR("DisplayBundlePath")
/* kIPCConfigNamegKey contains the name of a config setting to query */#define kIPCConfigSettingKey CFSTR("ConfigSetting")
/* Some config settings */#define kIPCConfigSettingVerboseFlag CFSTR("VerboseFlag")#define kIPCConfigSettingNetworkUp CFSTR("NetworkUp")
#endif /* _SYSTEM_STARTER_IPC_H */