Renesas V.1.00 Computer Hardware User Manual


 
Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 81 of 128
REJ10J1822-0101
Example 4
Specification of a server function
int func(struct ST *ptr, int *p_count);
ptr points to an array for input and output that has *p_count elements. func outputs the return
parameter *p_count as the number of elements.
Definition of the server function
int ret = func([INOUT ARY]struct ST *ptr,
[COUNT
]*p_count,[COUNT]*p_count,[INOUT PTR]int *p_count);
Example 5
Specification of a server function
int func(struct ST *ptr, int count);
ptr points to an array for input and output that has count elements. func outputs all count
elements.
Definition of the server function
int ret = func([INOUT ARY]struct ST *ptr,
[COUNT
]count, [COUNT]count, [IN DFLT]int count);