summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-09 15:40:49 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-09 15:40:49 +0200
commit713fa43b98b5f4de918253f6fc735cd8542e25e3 (patch)
tree7a3c39f63c84a31d84c7f5f88c01a5acbf2a04fd /include
parentda877e4750333f02c48a667241a41412c38bfd16 (diff)
core_whowas Return a WhoWas::Manager::Stats struct from GetStats() instead of a string
Diffstat (limited to 'include')
-rw-r--r--include/commands/cmd_whowas.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h
index f9b232281..a17785c22 100644
--- a/include/commands/cmd_whowas.h
+++ b/include/commands/cmd_whowas.h
@@ -60,15 +60,22 @@ namespace WhoWas
class Manager
{
public:
+ struct Stats
+ {
+ /** Number of currently existing WhoWasGroup objects
+ */
+ size_t entrycount;
+ };
+
/** Add a user to the whowas database. Called when a user quits.
* @param user The user to add to the database
*/
void Add(User* user);
/** Retrieves statistics about the whowas database
- * @return Whowas statistics
+ * @return Whowas statistics as a WhoWas::Manager::Stats struct
*/
- std::string GetStats() const;
+ Stats GetStats() const;
/** Expires old entries
*/