summaryrefslogtreecommitdiff
path: root/server/src/journal_commit.h
diff options
context:
space:
mode:
authordeva <deva>2010-06-01 12:58:32 +0000
committerdeva <deva>2010-06-01 12:58:32 +0000
commit74a28aa7125be6a603128ad600c98c4882f3b5c2 (patch)
tree1a9e4ab74f29d5ff10f2701e4e112f4525c0dcec /server/src/journal_commit.h
parent9b9c1e2dd3e5807ff7714b378b03b9ba31f42df7 (diff)
From new_protocol branch.
Diffstat (limited to 'server/src/journal_commit.h')
-rw-r--r--server/src/journal_commit.h33
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__*/