From 76d5d359a396101b93cf9a362cba48ffb7132740 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 22 Nov 2010 11:23:53 -0800 Subject: export backend sessionChanged() through perl API --- lib/Vyatta/Config.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3