From ee16e7ca7c204186cbfa39098d67eb7d50fe9282 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Wed, 9 Apr 2008 10:43:22 +0000 Subject: [PATCH] *** empty log message *** --- org.glite.jp.primary/src/backend_private.h | 75 ++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 org.glite.jp.primary/src/backend_private.h diff --git a/org.glite.jp.primary/src/backend_private.h b/org.glite.jp.primary/src/backend_private.h new file mode 100644 index 0000000..67f6e72 --- /dev/null +++ b/org.glite.jp.primary/src/backend_private.h @@ -0,0 +1,75 @@ +#ifndef GLITE_JP_BACKEND_PRIVATE_H +#define GLITE_JP_BACKEND_PRIVATE_H + +#include +#include +#include + +#include "feed.h" + +#include "glite/jp/backend.h" + +int glite_jppsbe_init( + glite_jp_context_t ctx, + int argc, + char *argv[] +); + +int glite_jppsbe_init_slave( + glite_jp_context_t ctx +); + +int glite_jppsbe_register_job( + glite_jp_context_t ctx, + const char *job, + const char *owner +); + +int glite_jppsbe_start_upload( + glite_jp_context_t ctx, + const char *job, + const char *class, /* must be filesystem-friendly */ + const char *name, /* optional name within the class */ + const char *content_type, + char **destination_out, + time_t *commit_before_inout +); + +int glite_jppsbe_commit_upload( + glite_jp_context_t ctx, + const char *destination +); + + +/** mark the job as sent to this feed */ +int glite_jppsbe_set_fed( + glite_jp_context_t ctx, + const char *feed, + const char *job +); + +/** check whether the job has been already sent to this feed */ +int glite_jppsbe_check_fed( + glite_jp_context_t ctx, + const char *feed, + const char *job, + int *result +); + +/** store the feed to database */ +int glite_jppsbe_store_feed( + glite_jp_context_t ctx, + struct jpfeed *feed +); + +/** purge expired feeds */ +int glite_jppsbe_purge_feeds( + glite_jp_context_t ctx +); + +/** read stored feed into context */ +int glite_jppsbe_read_feeds( + glite_jp_context_t ctx +); + +#endif /* GLITE_JP_BACKEND_PRIVATE_H */ -- 1.8.2.3