diff options
author | deva <deva> | 2010-01-06 07:47:58 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-06 07:47:58 +0000 |
commit | 0e819eb42b4d680a99ae7b04702bfc9510495aee (patch) | |
tree | a425aeb98c679a0891a974b6f93090343d51a4e8 /server/src/journal_commit.h | |
parent | 582913fc18937c87afe7d351e66095dccb435a9e (diff) |
New artefact connection class (to later wrap libartefact). New environment class to hold all global resources. Made ConnectionPool a template class. Split journal code up into two files (class from commit code).
Diffstat (limited to 'server/src/journal_commit.h')
-rw-r--r-- | server/src/journal_commit.h | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/server/src/journal_commit.h b/server/src/journal_commit.h index 4f7f211..1bc8086 100644 --- a/server/src/journal_commit.h +++ b/server/src/journal_commit.h @@ -27,35 +27,10 @@ #ifndef __PRACRO_JOURNAL_COMMIT_H__ #define __PRACRO_JOURNAL_COMMIT_H__ -#include <string> -#include <map> +#include <unistd.h> -#include "transaction.h" -#include "template.h" - -class JournalWriter { -public: - JournalWriter(std::string host, unsigned short int port); - - void addEntry(Transaction &transaction, Commit &commit, - std::string resume, Template *templ); - - void commit(); - -private: - std::string host; - unsigned short int port; - - std::string currentuser; - std::string currentcpr; - - class ResumeEntry { - public: - std::string resume; - std::string macro; - }; - - std::map< int, ResumeEntry > entrylist; -}; +int journal_commit(const char *cpr, const char *user, + const char *addr, unsigned short int port, + const char *buf, size_t size); #endif/*__PRACRO_JOURNAL_COMMIT_H__*/ |