2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * NetInfo binder protocol specification
27 * Copyright (C) 1989 by NeXT, Inc.
30 /* Preamble appearing on all generated output */
33 % * Output of the RPC protocol compiler: DO NOT EDIT
34 % * Copyright (C) 1989 by NeXT, Inc.
40 %#include <netinfo/ni_prot.h>
46 const NIBIND_MAXREGS = 32;
48 struct nibind_addrinfo {
53 struct nibind_registration {
55 nibind_addrinfo addrs;
58 union nibind_getregister_res switch (ni_status status) {
60 nibind_addrinfo addrs;
65 union nibind_listreg_res switch (ni_status status) {
67 nibind_registration regs<NIBIND_MAXREGS>;
72 struct nibind_clone_args {
79 struct nibind_bind_args {
88 NIBIND_PING(void) = 0;
91 NIBIND_REGISTER(nibind_registration) = 1;
94 NIBIND_UNREGISTER(ni_name) = 2;
96 nibind_getregister_res
97 NIBIND_GETREGISTER(ni_name) = 3;
100 NIBIND_LISTREG(void) = 4;
103 NIBIND_CREATEMASTER(ni_name) = 5;
106 NIBIND_CREATECLONE(nibind_clone_args) = 6;
109 NIBIND_DESTROYDOMAIN(ni_name) = 7;
112 * Answers only if the given binding is served
115 NIBIND_BIND(nibind_bind_args) = 8;