loadparm: add funcion lp_load_with_registry_shares().
authorMichael Adam <obnox@samba.org>
Thu, 15 May 2008 00:39:45 +0000 (02:39 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 15 May 2008 00:42:41 +0000 (02:42 +0200)
This is like lp_load(), except that it will load the
registry shares into the services aarray when registry
shares are activated.

Michael

source/param/loadparm.c

index 5c6cd071b7fcdcb8a5d340a75397921edf709f08..e45c8b89b753ad0155c805bb2d6950e6a2b51424 100644 (file)
@@ -8868,6 +8868,21 @@ bool lp_load_initial_only(const char *pszFname)
                          false);
 }
 
+bool lp_load_with_registry_shares(const char *pszFname,
+                                 bool global_only,
+                                 bool save_defaults,
+                                 bool add_ipc,
+                                 bool initialize_globals)
+{
+       return lp_load_ex(pszFname,
+                         global_only,
+                         save_defaults,
+                         add_ipc,
+                         initialize_globals,
+                         true,
+                         true);
+}
+
 /***************************************************************************
  Reset the max number of services.
 ***************************************************************************/