Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.
cfg_parser.h
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 */ 00004 #ifndef CFG_PARSER_H 00005 #define CFG_PARSER_H 00006 00007 typedef struct conf_t { 00008 const char *name; 00009 const char *svalue; 00010 const int ivalue; 00011 } conf_t; 00012 00013 #define STR_HELPER(x) #x 00014 #define STR(x) STR_HELPER(x) 00015 00016 extern conf_t *global_config; 00017 00018 #ifdef __cplusplus 00019 extern "C" 00020 { 00021 #endif 00022 00023 const char *cfg_string(conf_t *conf, const char *key, const char *default_value); 00024 int cfg_int(conf_t *conf, const char *key, int default_value); 00025 00026 #ifdef __cplusplus 00027 } 00028 #endif 00029 #endif /* CFG_PARSER_H */
Generated on Tue Jul 12 2022 20:25:37 by 1.7.2