diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-05-04 17:54:56 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-05-04 17:54:56 -0700 |
commit | 0ffdc5e6d89f9677694a8eef916b07c089264753 (patch) | |
tree | 08f9693bdad87301ebb1306de73d77888df84413 /src/common/defs.h | |
parent | 576e0fed6b0e32bb92915a10f95677303eda478a (diff) | |
download | vyatta-cfg-0ffdc5e6d89f9677694a8eef916b07c089264753.tar.gz vyatta-cfg-0ffdc5e6d89f9677694a8eef916b07c089264753.zip |
initial working version of activate and deactivate: load,save,show,commit supported.
Diffstat (limited to 'src/common/defs.h')
-rw-r--r-- | src/common/defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/defs.h b/src/common/defs.h index 6f97e9b..88b8441 100644 --- a/src/common/defs.h +++ b/src/common/defs.h @@ -35,6 +35,12 @@ typedef enum { K_DEL_OP = 0x10 } NODE_OPERATION; +typedef enum { + K_NO_DISABLE_OP = 0X00, + K_LOCAL_DISABLE_OP = 0x02, //MEANS DISABLE FLAG IS SET IN LOCAL CONFIGURATION + K_ACTIVE_DISABLE_OP = 0x04 //MEANS DISABLE FLAG IS SET IN ACTIVE CONFIGURATION +} NODE_ACTIVATE; + #define IS_SET(op) (op & K_SET_OP) #define IS_ACTIVE(op) (op & K_ACTIVE_OP) #define IS_CREATE(op) (op & K_CREATE_OP) @@ -72,6 +78,7 @@ struct Data boolean _value; //is this a value? char* _path; NODE_OPERATION _operation; //no-op, set, or delete + NODE_ACTIVATE _disable_op; //is this node currently deactivated? }; struct VyattaNode |