]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2861] Little bit of documentation
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 10 Jul 2013 07:19:18 +0000 (09:19 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 10 Jul 2013 07:19:18 +0000 (09:19 +0200)
src/bin/auth/datasrc_clients_mgr.h

index 2a54dcf014acf57a013385058b106cdc7b234646..33698cc3f1a08c55554abaeecf382260346bf3fc 100644 (file)
@@ -94,14 +94,23 @@ typedef boost::function<void ()> FinishedCallback;
 /// This just holds the data items together, no logic or protection
 /// is present here.
 struct Command {
+    /// \brief Constructor
+    ///
+    /// It just initializes the member variables of the same names
+    /// as the parameters.
     Command(CommandID id, const data::ConstElementPtr& params,
             const FinishedCallback& callback) :
         id(id),
         params(params),
         callback(callback)
     {}
+    /// \brief The command to execute
     CommandID id;
+    /// \brief Argument of the command.
+    ///
+    /// If the command takes no argument, it should be null pointer.
     data::ConstElementPtr params;
+    /// \brief A callback to be called once the command finishes.
     FinishedCallback callback;
 };