|
@@ -286,8 +286,27 @@ private:
|
|
|
InMemoryClientImpl* impl_;
|
|
|
};
|
|
|
|
|
|
+/// \brief Creates an instance of the Memory datasource client
|
|
|
+///
|
|
|
+/// Currently the configuration passed here must be a MapElement, formed as
|
|
|
+/// follows:
|
|
|
+/// \code
|
|
|
+/// { "type": string ("memory"),
|
|
|
+/// "class": string ("IN"/"CH"/etc),
|
|
|
+/// "zones": list
|
|
|
+/// }
|
|
|
+/// Zones list is a list of maps:
|
|
|
+/// { "origin": string,
|
|
|
+/// "file": string
|
|
|
+/// }
|
|
|
+/// \endcode
|
|
|
+/// (i.e. the configuration that was used prior to the datasource refactor)
|
|
|
+///
|
|
|
+/// This configuration setup is currently under discussion and will change in
|
|
|
+/// the near future.
|
|
|
extern "C" DataSourceClient* createInstance(isc::data::ConstElementPtr config);
|
|
|
|
|
|
+/// \brief Destroy the instance created by createInstance()
|
|
|
extern "C" void destroyInstance(DataSourceClient* instance);
|
|
|
|
|
|
|