|
@@ -108,7 +108,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
///
|
|
///
|
|
-/// \brief This modules keeps a connection to the command channel,
|
|
|
|
|
|
+/// \brief This module keeps a connection to the command channel,
|
|
/// holds configuration information, and handles messages from
|
|
/// holds configuration information, and handles messages from
|
|
/// the command channel
|
|
/// the command channel
|
|
///
|
|
///
|
|
@@ -116,13 +116,18 @@ class ModuleCCSession : public ConfigData {
|
|
public:
|
|
public:
|
|
/**
|
|
/**
|
|
* Initialize a config/command session
|
|
* Initialize a config/command session
|
|
- * @param module_name: The name of this module. This is not a
|
|
|
|
- * reference because we expect static strings
|
|
|
|
- * to be passed here.
|
|
|
|
- * @param spec_file_name: The name of the file containing the
|
|
|
|
|
|
+ *
|
|
|
|
+ * @param spec_file_name The name of the file containing the
|
|
* module specification.
|
|
* module specification.
|
|
|
|
+ * @param session A Session object over which configuration and command
|
|
|
|
+ * data are exchanged.
|
|
|
|
+ * @param config_handler A callback function pointer to be called when
|
|
|
|
+ * configuration of the local module needs to be updated.
|
|
|
|
+ * @param command_handler A callback function pointer to be called when
|
|
|
|
+ * a control command from a remote agent needs to be performed on the
|
|
|
|
+ * local module.
|
|
*/
|
|
*/
|
|
- ModuleCCSession(std::string spec_file_name,
|
|
|
|
|
|
+ ModuleCCSession(const std::string& spec_file_name,
|
|
isc::cc::AbstractSession& session,
|
|
isc::cc::AbstractSession& session,
|
|
isc::data::ElementPtr(*config_handler)(
|
|
isc::data::ElementPtr(*config_handler)(
|
|
isc::data::ElementPtr new_config) = NULL,
|
|
isc::data::ElementPtr new_config) = NULL,
|