1# 2# Copyright 2016, Data61 3# Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4# ABN 41 687 119 230. 5# 6# This software may be distributed and modified according to the terms of 7# the BSD 2-Clause license. Note that NO WARRANTY is provided. 8# See "LICENSE_BSD2.txt" for details. 9# 10# @TAG(D61_BSD) 11# 12 13void server_{{fname}}(void *rpc_userptr);\n 14 15void reply_{{fname}}(void *rpc_userptr 16 {{for type, itype, name, mode, dr, apfx, aref, apsfx in oalist}} 17 {{if mode == 'array'}}{{py: type = 'rpc_buffer_t'}}{{endif}} 18 , {{type}} rpc_{{name}} 19 {{endfor}});\n 20 21extern {{return_type}} {{fname}}_handler(void *rpc_userptr 22 {{for type, itype, name, mode, dr, apfx, aref, apsfx in calist}} 23 {{if mode == 'length' or mode == 'connect_ep'}}{{continue}}{{endif}} 24 {{if mode == 'array'}}{{py: type = 'rpc_buffer_t'}}{{endif}} 25 , {{type}} rpc_{{name}} 26 {{endfor}} 27) {{weak_attrib}};\n 28