1*c54f35caSApple OSS Distributions/* 2*c54f35caSApple OSS Distributions * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. 3*c54f35caSApple OSS Distributions * 4*c54f35caSApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5*c54f35caSApple OSS Distributions * 6*c54f35caSApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code 7*c54f35caSApple OSS Distributions * as defined in and that are subject to the Apple Public Source License 8*c54f35caSApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in 9*c54f35caSApple OSS Distributions * compliance with the License. The rights granted to you under the License 10*c54f35caSApple OSS Distributions * may not be used to create, or enable the creation or redistribution of, 11*c54f35caSApple OSS Distributions * unlawful or unlicensed copies of an Apple operating system, or to 12*c54f35caSApple OSS Distributions * circumvent, violate, or enable the circumvention or violation of, any 13*c54f35caSApple OSS Distributions * terms of an Apple operating system software license agreement. 14*c54f35caSApple OSS Distributions * 15*c54f35caSApple OSS Distributions * Please obtain a copy of the License at 16*c54f35caSApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this file. 17*c54f35caSApple OSS Distributions * 18*c54f35caSApple OSS Distributions * The Original Code and all software distributed under the License are 19*c54f35caSApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20*c54f35caSApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21*c54f35caSApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22*c54f35caSApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23*c54f35caSApple OSS Distributions * Please see the License for the specific language governing rights and 24*c54f35caSApple OSS Distributions * limitations under the License. 25*c54f35caSApple OSS Distributions * 26*c54f35caSApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27*c54f35caSApple OSS Distributions */ 28*c54f35caSApple OSS Distributions 29*c54f35caSApple OSS Distributionssubsystem 30*c54f35caSApple OSS Distributions#if KERNEL_USER 31*c54f35caSApple OSS Distributions KernelUser 32*c54f35caSApple OSS Distributions#endif /* KERNEL_USER */ 33*c54f35caSApple OSS Distributions UNDRequest 6000; 34*c54f35caSApple OSS Distributions 35*c54f35caSApple OSS Distributions#include <mach/std_types.defs> 36*c54f35caSApple OSS Distributions#include <UserNotification/UNDTypes.defs> 37*c54f35caSApple OSS Distributions 38*c54f35caSApple OSS Distributions 39*c54f35caSApple OSS Distributions/* 40*c54f35caSApple OSS Distributions-- Messages sent by the UserNotification Client to the Server 41*c54f35caSApple OSS Distributions*/ 42*c54f35caSApple OSS Distributions 43*c54f35caSApple OSS Distributions/* Execution information */ 44*c54f35caSApple OSS Distributionssimpleroutine UNDExecute_rpc( 45*c54f35caSApple OSS Distributions server: UNDServerRef; 46*c54f35caSApple OSS Distributions in executionPath: UNDPath; 47*c54f35caSApple OSS Distributions in uid: int; 48*c54f35caSApple OSS Distributions in gid: int); 49*c54f35caSApple OSS Distributions 50*c54f35caSApple OSS Distributions/* Bundle notice and bundle alert */ 51*c54f35caSApple OSS Distributions 52*c54f35caSApple OSS Distributionssimpleroutine UNDDisplayNoticeFromBundle_rpc( 53*c54f35caSApple OSS Distributions server: UNDServerRef; 54*c54f35caSApple OSS Distributions in reply: UNDReplyRef; 55*c54f35caSApple OSS Distributions in bundlePath: UNDPath; 56*c54f35caSApple OSS Distributions in fileName: UNDPath; 57*c54f35caSApple OSS Distributions in fileExtension: UNDPath; 58*c54f35caSApple OSS Distributions in messageKey: UNDKey); 59*c54f35caSApple OSS Distributions 60*c54f35caSApple OSS Distributionssimpleroutine UNDDisplayAlertFromBundle_rpc( 61*c54f35caSApple OSS Distributions server: UNDServerRef; 62*c54f35caSApple OSS Distributions in reply: UNDReplyRef; 63*c54f35caSApple OSS Distributions in bundlePath: UNDPath; 64*c54f35caSApple OSS Distributions in fileName: UNDKey; 65*c54f35caSApple OSS Distributions in fileExtension: UNDKey; 66*c54f35caSApple OSS Distributions in messageKey: UNDKey); 67*c54f35caSApple OSS Distributions 68*c54f35caSApple OSS Distributionssimpleroutine UNDDisplayCustomFromBundle_rpc( 69*c54f35caSApple OSS Distributions server: UNDServerRef; 70*c54f35caSApple OSS Distributions in reply: UNDReplyRef; 71*c54f35caSApple OSS Distributions in bundlePath: UNDPath; 72*c54f35caSApple OSS Distributions in fileName: UNDKey; 73*c54f35caSApple OSS Distributions in fileExtension: UNDKey; 74*c54f35caSApple OSS Distributions in messageKey: UNDKey; 75*c54f35caSApple OSS Distributions in tokenKey: UNDPath); 76*c54f35caSApple OSS Distributions 77*c54f35caSApple OSS Distributionsskip; /* was UNDDisplayCustomFromDictionary_rpc */ 78*c54f35caSApple OSS Distributions 79*c54f35caSApple OSS Distributionssimpleroutine UNDCancelNotification_rpc( 80*c54f35caSApple OSS Distributions server: UNDServerRef; 81*c54f35caSApple OSS Distributions in userLandNotificationKey: int); 82*c54f35caSApple OSS Distributions 83*c54f35caSApple OSS Distributions/* 84*c54f35caSApple OSS Distributions * Just pops up a notice with a single OK button and the label and message 85*c54f35caSApple OSS Distributions * specified below. As such, there is no acknowledgement from the server. 86*c54f35caSApple OSS Distributions */ 87*c54f35caSApple OSS Distributionssimpleroutine UNDDisplayNoticeSimple_rpc( 88*c54f35caSApple OSS Distributions server: UNDServerRef; 89*c54f35caSApple OSS Distributions in rpctimeout: int; 90*c54f35caSApple OSS Distributions in flags: unsigned; 91*c54f35caSApple OSS Distributions in iconPath:UNDLabel; 92*c54f35caSApple OSS Distributions in soundPath:UNDLabel; 93*c54f35caSApple OSS Distributions in localizationPath:UNDLabel; 94*c54f35caSApple OSS Distributions in header: UNDLabel; 95*c54f35caSApple OSS Distributions in message: UNDMessage; 96*c54f35caSApple OSS Distributions in defaultButtonTitle:UNDLabel); 97*c54f35caSApple OSS Distributions 98*c54f35caSApple OSS Distributions/* 99*c54f35caSApple OSS Distributions * A synchronous routine to display an alert. This will wait for the 100*c54f35caSApple OSS Distributions * result to come back. As this can take an exceedingly long time to 101*c54f35caSApple OSS Distributions * complete (and will block the calling thread for the duration) great 102*c54f35caSApple OSS Distributions * care should be exercised before using this method. 103*c54f35caSApple OSS Distributions */ 104*c54f35caSApple OSS Distributionsroutine UNDDisplayAlertSimple_rpc( 105*c54f35caSApple OSS Distributions server: UNDServerRef; 106*c54f35caSApple OSS Distributions in rpctimeout: int; 107*c54f35caSApple OSS Distributions in flags: unsigned; 108*c54f35caSApple OSS Distributions in iconPath:UNDLabel; 109*c54f35caSApple OSS Distributions in soundPath:UNDLabel; 110*c54f35caSApple OSS Distributions in localizationPath:UNDLabel; 111*c54f35caSApple OSS Distributions in header: UNDLabel; 112*c54f35caSApple OSS Distributions in message: UNDMessage; 113*c54f35caSApple OSS Distributions in defaultButtonTitle:UNDLabel; 114*c54f35caSApple OSS Distributions in alternateButtonTitle:UNDLabel; 115*c54f35caSApple OSS Distributions in otherButtonTitle:UNDLabel; 116*c54f35caSApple OSS Distributions out response: unsigned); 117*c54f35caSApple OSS Distributions 118*c54f35caSApple OSS Distributions/* vim: set ft=c : */ 119