1/* 2 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230) 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7struct client_config { 8 string name; 9 int age; 10 int height; 11} 12 13struct foo { 14 int a; 15} 16 17struct bah { 18 int b; 19 foo c; 20} 21 22struct cat { 23 int b[]; 24 int c; 25} 26 27component Client { 28 control; 29 attribute client_config config; 30 attribute {int age; int height;} inline_struct; 31 attribute bah nested_struct; 32 attribute foo array_struct[]; 33 attribute int numbers[]; 34 attribute string strings[]; 35 attribute cat array_in_struct; 36} 37