diff options
-rwxr-xr-x | lib/Vyatta/Config.pm | 7 | ||||
-rw-r--r-- | perl_dmod/Cstore/Cstore.xs | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 43da205..ed3095b 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -179,6 +179,13 @@ sub returnOrigValues { return @{$ref}; } +## sessionChanged() +# return whether the config session has uncommitted changes +sub sessionChanged { + my ($self) = @_; + return $self->{_cstore}->sessionChanged(); +} + ###### # observers of the "effective" config. # they can be used diff --git a/perl_dmod/Cstore/Cstore.xs b/perl_dmod/Cstore/Cstore.xs index ebef08f..383f204 100644 --- a/perl_dmod/Cstore/Cstore.xs +++ b/perl_dmod/Cstore/Cstore.xs @@ -317,3 +317,11 @@ OUTPUT: RETVAL +bool +Cstore::sessionChanged() +CODE: + RETVAL = THIS->sessionChanged(); +OUTPUT: + RETVAL + + |