diff options
author | senator <senator> | 2011-02-02 11:14:26 +0000 |
---|---|---|
committer | senator <senator> | 2011-02-02 11:14:26 +0000 |
commit | c923c71eeb61fc005ce8e7977d3f7e3fb29c2700 (patch) | |
tree | dada99c00deb8d8d873ea540dd699ebae469509b /server/src/macrotool/macrotool.cc | |
parent | 3627a1908547f656f8be5dcb94dbb570d41b0c7c (diff) |
initial release of sunlock functionality
Diffstat (limited to 'server/src/macrotool/macrotool.cc')
-rw-r--r-- | server/src/macrotool/macrotool.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/macrotool/macrotool.cc b/server/src/macrotool/macrotool.cc index b811c29..0445927 100644 --- a/server/src/macrotool/macrotool.cc +++ b/server/src/macrotool/macrotool.cc @@ -46,6 +46,7 @@ #include "fieldnames.h" #include "filehandler.h" #include "export.h" +#include "sunlock.h" static const char version_str[] = "Pracro server v" VERSION "\n" @@ -75,6 +76,8 @@ static const char usage_str[] = " ('fieldnames help' to see list of entities).\n" " filehandler entity Handle macro files ('filehandler help' to see list of entities).\n" " export entity Export data from database to comma separated file ('export help' to see list of entities)\n" +" sunlock sid Sets the status of a session id in the database" + " to 'idle'.\n" ; ConfigurationParser *configparser = NULL; @@ -161,6 +164,7 @@ int main(int argc, char *argv[]) if(command == "fieldnames") macrotool_fieldnames(params); if(command == "filehandler") macrotool_filehandler(params); if(command == "export") macrotool_export(params); + if(command == "sunlock") macrotool_sunlock(params); return 0; } |