|
@@ -244,22 +244,23 @@ public:
|
|
|
* filename of the spec file to use or a name of module
|
|
|
* (in case it's a module name, the spec data is
|
|
|
* downloaded from the configuration manager, therefore
|
|
|
- * the configuration manager must know it). A heuristic
|
|
|
- * is used to guess which should be used - if it contains
|
|
|
- * a slash or dot, filename is assumed, otherwise
|
|
|
- * name of module is assumed.
|
|
|
+ * the configuration manager must know it). If
|
|
|
+ * spec_is_filenabe is true (the default), then a
|
|
|
+ * filename is assumed, otherwise a module name.
|
|
|
* \param handler The handler function called whenever there's a change.
|
|
|
* Called once initally from this function. May be NULL
|
|
|
* if you don't want any handler to be called and you're
|
|
|
* fine with requesting the data through
|
|
|
* getRemoteConfigValue() each time.
|
|
|
+ * \param spec_is_filename Says if spec_name is filename or module name.
|
|
|
* \return The name of the module specified in the given specification
|
|
|
* file
|
|
|
*/
|
|
|
std::string addRemoteConfig(const std::string& spec_name,
|
|
|
void (*handler)(const std::string& module_name,
|
|
|
isc::data::ConstElementPtr
|
|
|
- update) = NULL);
|
|
|
+ update) = NULL,
|
|
|
+ bool spec_is_filename = true);
|
|
|
|
|
|
/**
|
|
|
* Removes the module with the given name from the remote config
|