diff options
-rwxr-xr-x | lib/Vyatta/Config.pm | 7 | ||||
-rw-r--r-- | perl_dmod/Cstore/Cstore.xs | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 69ed34b..187efa0 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -186,6 +186,13 @@ sub sessionChanged { return $self->{_cstore}->sessionChanged(); } +## inSession() +# returns whether in a config session +sub inSession { + my ($self) = @_; + return $self->{_cstore}->inSession(); +} + ## loadFile() # "load" the specified file sub loadFile { diff --git a/perl_dmod/Cstore/Cstore.xs b/perl_dmod/Cstore/Cstore.xs index 255eac0..8633a76 100644 --- a/perl_dmod/Cstore/Cstore.xs +++ b/perl_dmod/Cstore/Cstore.xs @@ -333,3 +333,9 @@ OUTPUT: RETVAL +bool +Cstore::inSession() +CODE: + RETVAL = THIS->inSession(); +OUTPUT: + RETVAL |