Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / rx / simple.example / sample.xg
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 package TEST_
11 prefix S
12
13 %#include <rx/rx.h>
14 %#include <rx/rx_null.h>
15
16 %#define SAMPLE_SERVER_PORT 5000
17 %#define SAMPLE_SERVICE_PORT 0 /* i.e. user server's port */
18 %#define SAMPLE_SERVICE_ID 4
19
20 /* Maximum number of requests that will be handled by this service simultaneously */
21 /* This number will also be guaranteed to execute in parallel if no services' requests are being processed */
22 %#define SAMPLE_MAX 2
23 /* Minimum number of requests that are guaranteed to be handled immediately */
24 %#define SAMPLE_MIN 1
25
26 Add(IN int a, int b, OUT int *result) = 1;
27 Sub(IN int a, int b, OUT int *result) = 2;