aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.h')
-rw-r--r--src/wydawca.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wydawca.h b/src/wydawca.h
index 7ff4412..5de1f3e 100644
--- a/src/wydawca.h
+++ b/src/wydawca.h
@@ -1,5 +1,5 @@
/* wydawca - automatic release submission daemon
- Copyright (C) 2007-2011 Sergey Poznyakoff
+ Copyright (C) 2007-2012 Sergey Poznyakoff
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -57,7 +57,7 @@
/* The range of directive versions we accept (major * 100 + minor) */
#define MIN_DIRECTIVE_VERSION 101
-#define MAX_DIRECTIVE_VERSION 101
+#define MAX_DIRECTIVE_VERSION 102
/* Default modes for mkdir and creat commands: rely on the umask value */
#define MKDIR_PERMISSIONS 0777
@@ -177,6 +177,7 @@ struct file_triplet
{
char *name; /* Triplet base name */
struct file_info file[FILE_TYPE_COUNT]; /* Components */
+ unsigned version; /* Protocol version */
const struct spool *spool; /* Owning spool */
char *relative_dir; /* Directory relative to spool->dest_dir */
char **directive; /* Decoded directive pairs (key: value\0) */
@@ -368,6 +369,9 @@ extern char *wydawca_gpg_homedir;
extern char *default_check_script;
extern char *temp_homedir;
+extern unsigned min_directive_version;
+extern unsigned max_directive_version;
+
#define UPDATE_STATS(what) \
do \
{ \
@@ -450,6 +454,8 @@ int directive_parse (struct file_triplet *trp);
int directive_get_value (struct file_triplet *trp, const char *key,
const char **pval);
int directive_pack_version (const char *val, unsigned *pversion);
+int directive_unpack_version (unsigned version, char **pbuf, size_t *psize);
+
int directive_version_in_range_p (struct file_triplet *trp,
unsigned from, unsigned to);
int verify_directive_format (struct file_triplet *trp);

Return to:

Send suggestions and report system problems to the System administrator.