Browse Source

comment update and a minor cleanup (change the type of string argument
to const string&)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac275@2443 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 15 years ago
parent
commit
7e2454fa04
2 changed files with 12 additions and 7 deletions
  1. 1 1
      src/lib/config/ccsession.cc
  2. 11 6
      src/lib/config/ccsession.h

+ 1 - 1
src/lib/config/ccsession.cc

@@ -197,7 +197,7 @@ ModuleCCSession::startCheck() {
 }
 
 ModuleCCSession::ModuleCCSession(
-    std::string spec_file_name,
+    const std::string& spec_file_name,
     isc::cc::AbstractSession& session,
     isc::data::ElementPtr(*config_handler)(isc::data::ElementPtr new_config),
     isc::data::ElementPtr(*command_handler)(

+ 11 - 6
src/lib/config/ccsession.h

@@ -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
 /// the command channel
 ///
@@ -116,13 +116,18 @@ class ModuleCCSession : public ConfigData {
 public:
     /**
      * 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.
+     * @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::data::ElementPtr(*config_handler)(
                         isc::data::ElementPtr new_config) = NULL,