From: Aleš Křenek Date: Wed, 9 Apr 2008 10:43:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: glite-yaim-lb_R_4_0_2_1~116 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ee16e7ca7c204186cbfa39098d67eb7d50fe9282;p=jra1mw.git *** empty log message *** --- 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 */