summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-11-22 11:23:53 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-11-22 11:23:53 -0800
commit76d5d359a396101b93cf9a362cba48ffb7132740 (patch)
tree2399b986541ebf706b9fa0217a18e6075568dff0 /lib
parentce9d895b29f9892272a7228419fbacd0f0d87388 (diff)
downloadvyatta-cfg-76d5d359a396101b93cf9a362cba48ffb7132740.tar.gz
vyatta-cfg-76d5d359a396101b93cf9a362cba48ffb7132740.zip
export backend sessionChanged() through perl API
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Config.pm7
1 files changed, 7 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