forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[saihelper]: Create initSaiRedis function and put related code inside…
… it (sonic-net#254) Move SAI Redis initialization related code outside main function. In the future, global variables could be eliminated to make code cleaner. getTimestamp could be moved to common library as well.
- Loading branch information
Shuotian Cheng
authored
Jul 16, 2017
1 parent
c592731
commit 17a6d61
Showing
3 changed files
with
100 additions
and
80 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#pragma once | ||
|
||
void initSaiApi(); | ||
#include <string> | ||
|
||
void initSaiApi(); | ||
void initSaiRedis(const std::string &record_location); |