*** empty log message ***
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 9 Apr 2008 10:43:22 +0000 (10:43 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 9 Apr 2008 10:43:22 +0000 (10:43 +0000)
org.glite.jp.primary/src/backend_private.h [new file with mode: 0644]

diff --git a/org.glite.jp.primary/src/backend_private.h b/org.glite.jp.primary/src/backend_private.h
new file mode 100644 (file)
index 0000000..67f6e72
--- /dev/null
@@ -0,0 +1,75 @@
+#ifndef GLITE_JP_BACKEND_PRIVATE_H
+#define GLITE_JP_BACKEND_PRIVATE_H
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+#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 */