|
@@ -466,11 +466,16 @@ IPropertyTree *envGetNASConfiguration()
|
|
|
|
|
|
IPropertyTree *envGetInstallNASHooks()
|
|
|
{
|
|
|
+ Owned<IPropertyTree> nasPTree = envGetNASConfiguration();
|
|
|
+ return envGetInstallNASHooks(nasPTree);
|
|
|
+}
|
|
|
+
|
|
|
+IPropertyTree *envGetInstallNASHooks(IPropertyTree *nasPTree)
|
|
|
+{
|
|
|
IDaFileSrvHook *daFileSrvHook = queryDaFileSrvHook();
|
|
|
if (!daFileSrvHook) // probably always installed
|
|
|
return NULL;
|
|
|
daFileSrvHook->clearSubNetFilters();
|
|
|
- Owned<IPropertyTree> nasPTree = envGetNASConfiguration();
|
|
|
if (!nasPTree)
|
|
|
return NULL;
|
|
|
return daFileSrvHook->addMySubnetFilters(nasPTree);
|
|
@@ -480,3 +485,8 @@ void envInstallNASHooks()
|
|
|
{
|
|
|
Owned<IPropertyTree> installedFilters = envGetInstallNASHooks();
|
|
|
}
|
|
|
+
|
|
|
+void envInstallNASHooks(IPropertyTree *nasPTree)
|
|
|
+{
|
|
|
+ Owned<IPropertyTree> installedFilters = envGetInstallNASHooks(nasPTree);
|
|
|
+}
|