-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topo: add multi topology support (#1627)
* topo: add multi topology support * build: fix includes and target config * config: move topology argument --------- Co-authored-by: Liam Heeger <[email protected]>
- Loading branch information
1 parent
800f8ba
commit ec2b9a5
Showing
8 changed files
with
332 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "topos.h" | ||
|
||
#define FD_TOPO_KIND_CSTR_LEN_MAX (32UL) | ||
|
||
FD_FN_CONST fd_topo_config_fn * | ||
fd_topo_kind_str_to_topo_config_fn( char const * topo_kind_str ) { | ||
if( strncmp( topo_kind_str, "frankendancer", FD_TOPO_KIND_CSTR_LEN_MAX )==0 ) { return &fd_topo_frankendancer; } | ||
else { | ||
FD_LOG_ERR(( "unknown topo kind %s", topo_kind_str )); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef HEADER_fd_src_app_fdctl_run_topos_h | ||
#define HEADER_fd_src_app_fdctl_run_topos_h | ||
|
||
#include "../../config.h" | ||
|
||
typedef void (fd_topo_config_fn)( config_t * config ); | ||
|
||
extern fd_topo_config_fn fd_topo_frankendancer; | ||
|
||
FD_FN_CONST fd_topo_config_fn * | ||
fd_topo_kind_str_to_topo_config_fn( char const * topo_kind_str ); | ||
|
||
#endif /* HEADER_fd_src_app_fdctl_run_topos_h */ |