/*
 * COMPONENT_NAME:  rpc.idl.src
 *
 * FUNCTIONS:
 *
 * ORIGINS: 72
 *
 */
/*
 * HISTORY
 * $Log: cs_mgmt.idl,v $
 *
 * CR: 13164 (IBM cmvc 17939) 1996/01/29	    cwang
 *     Extracted from rpc.idl for RPC runtime I18N support.
 *
 * $EndLog$
 */

#ifdef IBMOS2
[
    uuid(ec267c61-4c7a-11cf-8228-000233002b3e),
    version(1.0)
]
interface codeset_mgmt
{
/*
 * R P C _ C O D E S E T _ M G M T _ T
 *
 * Data structure to hold (server's or client's) supported code sets
 * Each code set has an attribute (max bytes) to indicate the maximum
 * number of bytes needed to encode that code set.  This is used to
 * calculate the size of a necessary buffer for code set conversion.
 */
typedef struct rpc_cs_c_set_s_t {
	unsigned32	c_set;
	unsigned16	c_max_bytes;
	unsigned16	ch_sets_num;
	[ptr, size_is(ch_sets_num)] unsigned16	    * ch_sets;
} rpc_cs_c_set_t;
typedef struct rpc_codeset_mgmt_s_t {
	unsigned32	version;	/* version of this structure */
	unsigned32	count;		/* number of code sets defined */
	[size_is(count)] rpc_cs_c_set_t codesets[];
} rpc_codeset_mgmt_t;
typedef [ptr] rpc_codeset_mgmt_t *rpc_codeset_mgmt_p_t;
}
#endif
