Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
source/cfg_parser.h@101:5fa704b51e88, 2019-08-06 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Aug 06 16:02:16 2019 +0100
- Revision:
- 101:5fa704b51e88
- Parent:
- 0:85f4174a8e29
Update testing targets and readme (#186)
-Replace NUCLEO_F429ZI with DISCO_F769NI in Jenkinsfile
-Fix comments in README
.
Commit copied from https://github.com/ARMmbed/nanostack-border-router
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 0:85f4174a8e29 | 1 | /* |
| mbed_official | 0:85f4174a8e29 | 2 | * Copyright (c) 2016 ARM Limited. All rights reserved. |
| mbed_official | 0:85f4174a8e29 | 3 | */ |
| mbed_official | 0:85f4174a8e29 | 4 | #ifndef CFG_PARSER_H |
| mbed_official | 0:85f4174a8e29 | 5 | #define CFG_PARSER_H |
| mbed_official | 0:85f4174a8e29 | 6 | |
| mbed_official | 0:85f4174a8e29 | 7 | typedef struct conf_t { |
| mbed_official | 0:85f4174a8e29 | 8 | const char *name; |
| mbed_official | 0:85f4174a8e29 | 9 | const char *svalue; |
| mbed_official | 0:85f4174a8e29 | 10 | const int ivalue; |
| mbed_official | 0:85f4174a8e29 | 11 | } conf_t; |
| mbed_official | 0:85f4174a8e29 | 12 | |
| mbed_official | 0:85f4174a8e29 | 13 | #define STR_HELPER(x) #x |
| mbed_official | 0:85f4174a8e29 | 14 | #define STR(x) STR_HELPER(x) |
| mbed_official | 0:85f4174a8e29 | 15 | |
| mbed_official | 0:85f4174a8e29 | 16 | extern conf_t *global_config; |
| mbed_official | 0:85f4174a8e29 | 17 | |
| mbed_official | 0:85f4174a8e29 | 18 | #ifdef __cplusplus |
| mbed_official | 0:85f4174a8e29 | 19 | extern "C" |
| mbed_official | 0:85f4174a8e29 | 20 | { |
| mbed_official | 0:85f4174a8e29 | 21 | #endif |
| mbed_official | 0:85f4174a8e29 | 22 | |
| mbed_official | 0:85f4174a8e29 | 23 | const char *cfg_string(conf_t *conf, const char *key, const char *default_value); |
| mbed_official | 0:85f4174a8e29 | 24 | int cfg_int(conf_t *conf, const char *key, int default_value); |
| mbed_official | 0:85f4174a8e29 | 25 | |
| mbed_official | 0:85f4174a8e29 | 26 | #ifdef __cplusplus |
| mbed_official | 0:85f4174a8e29 | 27 | } |
| mbed_official | 0:85f4174a8e29 | 28 | #endif |
| mbed_official | 0:85f4174a8e29 | 29 | #endif /* CFG_PARSER_H */ |