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.
Update sairedis and syncd with notify logic (sonic-net#118)
- Loading branch information
Showing
10 changed files
with
275 additions
and
216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef __SAIREDIS__ | ||
#define __SAIREDIS__ | ||
|
||
extern "C" { | ||
#include "sai.h" | ||
} | ||
|
||
#define SYNCD_INIT_VIEW "INIT_VIEW" | ||
#define SYNCD_APPLY_VIEW "APPLY_VIEW" | ||
|
||
typedef enum _sai_redis_notify_syncd_t | ||
{ | ||
SAI_REDIS_NOTIFY_SYNCD_INIT_VIEW, | ||
|
||
SAI_REDIS_NOTIFY_SYNCD_APPLY_VIEW | ||
|
||
} sai_redis_notify_syncd_t; | ||
|
||
typedef enum _sai_redis_switch_attr_t | ||
{ | ||
/** | ||
* @brief Will start or stop recording history file for player | ||
* | ||
* @type bool | ||
* @flags CREATE_AND_SET | ||
* @default true | ||
*/ | ||
SAI_REDIS_SWITCH_ATTR_RECORD = SAI_SWITCH_ATTR_CUSTOM_RANGE_BASE, | ||
|
||
/** | ||
* @brief Will notify syncd whether to init or apply view | ||
* | ||
* @type sai_redis_notify_syncd_t | ||
* @flags CREATE_AND_SET | ||
* @default SAI_REDIS_NOTIFY_SYNCD_APPLY_VIEW | ||
*/ | ||
SAI_REDIS_SWITCH_ATTR_NOTIFY_SYNCD, | ||
|
||
} sai_redis_switch_attr_t; | ||
|
||
#endif // __SAIREDIS__ |
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
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,4 +1,4 @@ | ||
AM_CPPFLAGS = -I/usr/include/sai | ||
AM_CPPFLAGS = -I/usr/include/sai -I$(top_srcdir)/lib/inc | ||
|
||
bin_PROGRAMS = player | ||
|
||
|
Oops, something went wrong.