aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.h')
-rw-r--r--src/wydawca.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/wydawca.h b/src/wydawca.h
index 54ecf00..b44b5d7 100644
--- a/src/wydawca.h
+++ b/src/wydawca.h
@@ -238,6 +238,20 @@ struct spool
238 char *check_script; 238 char *check_script;
239}; 239};
240 240
241#define ASGN_SPOOL(spool, trp, faction) \
242 do \
243 { \
244 spool = (trp)->spool; \
245 if (!spool) \
246 { \
247 logmsg (LOG_CRIT, \
248 _("INTERNAL ERROR at %s:%d: spool not defined for %s"),\
249 __FILE__, __LINE__, (trp)->name); \
250 faction; \
251 } \
252 } \
253 while (0)
254
241 255
242enum wydawca_stat 256enum wydawca_stat
243 { 257 {
@@ -401,7 +415,7 @@ void spool_create_timers (void);
401 415
402void register_spool (struct spool *spool); 416void register_spool (struct spool *spool);
403struct spool *wydawca_find_spool (const char *name); 417struct spool *wydawca_find_spool (const char *name);
404void register_file (struct file_info *finfo); 418void register_file (struct file_info *finfo, const struct spool *spool);
405void enumerate_triplets (const struct spool *); 419void enumerate_triplets (const struct spool *);
406size_t count_collected_triplets (void); 420size_t count_collected_triplets (void);
407char *triplet_expand_param (const char *tmpl, struct file_triplet *trp); 421char *triplet_expand_param (const char *tmpl, struct file_triplet *trp);
@@ -428,12 +442,9 @@ unsigned dictionary_num_rows (struct dictionary *dict);
428unsigned dictionary_num_cols (struct dictionary *dict); 442unsigned dictionary_num_cols (struct dictionary *dict);
429 443
430/* Verification functions */ 444/* Verification functions */
431int verify_directive_file (struct file_triplet *trp, 445int verify_directive_file (struct file_triplet *trp);
432 const struct spool *spool); 446int verify_directive_signature (struct file_triplet *trp);
433int verify_directive_signature (struct file_triplet *trp, 447int verify_detached_signature (struct file_triplet *trp);
434 const struct spool *spool);
435int verify_detached_signature (struct file_triplet *trp,
436 const struct spool *spool);
437int fill_project_name (struct file_triplet *trp); 448int fill_project_name (struct file_triplet *trp);
438struct uploader_info *uploader_find_frp (struct uploader_info *list, 449struct uploader_info *uploader_find_frp (struct uploader_info *list,
439 const char *frp); 450 const char *frp);
@@ -450,8 +461,7 @@ int directive_first (struct file_triplet *trp,
450 const char **pkey, const char **pval); 461 const char **pkey, const char **pval);
451int directive_next (struct file_triplet *trp, int n, 462int directive_next (struct file_triplet *trp, int n,
452 const char **pkey, const char **pval); 463 const char **pkey, const char **pval);
453int process_directives (struct file_triplet *trp, 464int process_directives (struct file_triplet *trp);
454 const struct spool *spool);
455 465
456int enabled_spool_p (const struct spool *spool); 466int enabled_spool_p (const struct spool *spool);
457int selected_spools (void); 467int selected_spools (void);

Return to:

Send suggestions and report system problems to the System administrator.