/* ** File name: GETSYI.H ** ** Copyright (c) 1991, by ** Process Software Corporation ** Framingham, Massachusetts */ /* ** Except for the comments, this file is the output of RPCGEN. ** It is created by either of these commands: ** rpcgen -h -o getsyi.h getsyi.x ** rpcgen getsyi */ /* ** Define maximums that are specific to this client and server. */ #define MAX_ITEM_CODES 64 /* max # item codes that may be in a request */ #define MAX_STRING_LEN 256 /* max # characters in a string */ typedef char *item; /* an item code is just a string */ bool_t xdr_item(); typedef char *result; /* a result is also a string */ bool_t xdr_result(); typedef char *message; /* so is an error message */ bool_t xdr_message(); /* ** The request that a client sends to the server consists of a node name and a ** variable length array of strings representing the item codes. This array ** (gsa_item_codes) is represented as a count value (gsa_item_codes_len) and a ** pointer to that number of character pointers (gsa_item_codes_val). */ struct getsyi_args { char *gsa_node_name; struct { u_int gsa_item_codes_len; item *gsa_item_codes_val; /* or: char **gsa_item_codes_val; */ } gsa_item_codes; }; typedef struct getsyi_args getsyi_args; bool_t xdr_getsyi_args(); /* ** On a successful call, the server returns a number of strings containing the ** results. This structure is essentially the same as gsa_item_codes above. */ struct getsyi_info { struct { u_int gsi_results_len; result *gsi_results_val; } gsi_results; }; typedef struct getsyi_info getsyi_info; bool_t xdr_getsyi_info(); /* ** This is the reply message sent by the server to the client. If gsr_status is 1 (SS$_NORMAL), then the call was successful and */ struct getsyi_res { u_long gsr_status; union { getsyi_info gsr_info; message gsr_msg; } getsyi_res_u; }; typedef struct getsyi_res getsyi_res; bool_t xdr_getsyi_res(); #define GETSYI_PROG ((u_long)0x20000001) #define GETSYI_VERS_1 ((u_long)1) #define GETSYI_PROC_1 ((u_long)1) extern getsyi_res *getsyi_proc_1_1(); #define TRUE 1 #define FALSE 0 /* end file GETSYI.H */