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 13{{if header_mode}} 14 #ifndef _RPC_INTERFACE_{{ifname.upper()}}_{{'CLIENT' if client_mode else 'SERVER'}}_H_\n 15 #define _RPC_INTERFACE_{{ifname.upper()}}_{{'CLIENT' if client_mode else 'SERVER'}}_H_\n\n 16{{endif}} 17 18{{for include in includes}} 19 {{include}}\n 20{{endfor}} 21{{if not header_mode}} 22 #include <stdint.h>\n 23 #include <stdlib.h>\n 24{{endif}} 25\n\n 26 27/*! @file\n 28____@brief Generated file for the {{ifname}} interface. Please do NOT edit this file. */\n\n 29 30{{if header_mode}} 31 #ifndef _RPC_{{ifname.upper()}}_LABEL_ENUMS_\n 32 #define _RPC_{{ifname.upper()}}_LABEL_ENUMS_\n 33 /*! @brief RPC syscall label enums for {{ifname}} interface. */\n 34 enum rpc_{{ifname}}_label_enum {\n 35 ____RPC_{{ifname.upper()}}_LABEL_MIN = {{label_min}},\n 36 37 {{for enum_entry in enum_list}} 38 ____{{enum_entry}}\n 39 {{endfor}} 40 41 ____RPC_{{ifname.upper()}}_LABEL_MAX\n 42 };\n 43 #endif\n\n 44{{endif}} 45 46{{for func_output in func_list}} 47 {{func_output}}\n 48{{endfor}} 49 50{{if header_mode}} 51 #endif /* _RPC_INTERFACE_{{ifname.upper()}}_{{'CLIENT' if client_mode else 'SERVER'}}_H_ */\n 52{{endif}} 53