Mode: Configuration Mode


The data definition compiler (ddc) can create C language structures in header files that can be included by the source code. Normally, the names of the stuctures and the fields are generated automatically based on the node names. However, if these names are difficult and will change if the parent object path changes. the cname command sets the C language name manually.


        object newbie {
            help "Newbie DDL testing";

            attribute extension {
                help "Newbie's extension";
                type uint;
                cname ex_newbie_ext;

C structure:

After compiling the input file:


        #define EX_NEWBIE_EXT 4                       <br>
        #define DDLNAME_EX_NEWBIE_EXT "extension"


        #define DDLNAME_EX_NEWBIE_EXT "extension"

See also:

Reference (to programmers guide/style guide):

2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:12 2010 for DDL Reference Guide by doxygen 1.4.5