mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Added initializeDatabase stub
This commit is contained in:
parent
3b332eb96c
commit
1ced4bdd1a
3 changed files with 12 additions and 0 deletions
|
@ -25,12 +25,19 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
#include <common.h>
|
||||
#include <commands.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <iostream> // TODO Remove
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void initializeDatabase (Database& database)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int dispatchCommand (int argc, const char** argv, Rules& rules)
|
||||
{
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <cmake.h>
|
||||
//#include <Grammar.h>
|
||||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
#include <common.h>
|
||||
#include <commands.h>
|
||||
|
@ -51,6 +52,8 @@ int main (int argc, const char** argv)
|
|||
try
|
||||
{
|
||||
// TODO Load configuration ~/.timewrc || $TIMEWRC.
|
||||
Database database;
|
||||
initializeDatabase (database);
|
||||
|
||||
// TODO Arrange the following to minimize memory use.
|
||||
// TODO Load CLI grammar.
|
||||
|
|
|
@ -27,9 +27,11 @@
|
|||
#ifndef INCLUDED_TIMEW
|
||||
#define INCLUDED_TIMEW
|
||||
|
||||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
|
||||
// init.cpp
|
||||
void initializeDatabase (Database&);
|
||||
int dispatchCommand (int, const char**, Rules&);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue