diff options
Diffstat (limited to 'src/wydawca.h')
-rw-r--r-- | src/wydawca.h | 28 |
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 | ||
242 | enum wydawca_stat | 256 | enum wydawca_stat |
243 | { | 257 | { |
@@ -401,7 +415,7 @@ void spool_create_timers (void); | |||
401 | 415 | ||
402 | void register_spool (struct spool *spool); | 416 | void register_spool (struct spool *spool); |
403 | struct spool *wydawca_find_spool (const char *name); | 417 | struct spool *wydawca_find_spool (const char *name); |
404 | void register_file (struct file_info *finfo); | 418 | void register_file (struct file_info *finfo, const struct spool *spool); |
405 | void enumerate_triplets (const struct spool *); | 419 | void enumerate_triplets (const struct spool *); |
406 | size_t count_collected_triplets (void); | 420 | size_t count_collected_triplets (void); |
407 | char *triplet_expand_param (const char *tmpl, struct file_triplet *trp); | 421 | char *triplet_expand_param (const char *tmpl, struct file_triplet *trp); |
@@ -428,12 +442,9 @@ unsigned dictionary_num_rows (struct dictionary *dict); | |||
428 | unsigned dictionary_num_cols (struct dictionary *dict); | 442 | unsigned dictionary_num_cols (struct dictionary *dict); |
429 | 443 | ||
430 | /* Verification functions */ | 444 | /* Verification functions */ |
431 | int verify_directive_file (struct file_triplet *trp, | 445 | int verify_directive_file (struct file_triplet *trp); |
432 | const struct spool *spool); | 446 | int verify_directive_signature (struct file_triplet *trp); |
433 | int verify_directive_signature (struct file_triplet *trp, | 447 | int verify_detached_signature (struct file_triplet *trp); |
434 | const struct spool *spool); | ||
435 | int verify_detached_signature (struct file_triplet *trp, | ||
436 | const struct spool *spool); | ||
437 | int fill_project_name (struct file_triplet *trp); | 448 | int fill_project_name (struct file_triplet *trp); |
438 | struct uploader_info *uploader_find_frp (struct uploader_info *list, | 449 | struct 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); |
451 | int directive_next (struct file_triplet *trp, int n, | 462 | int directive_next (struct file_triplet *trp, int n, |
452 | const char **pkey, const char **pval); | 463 | const char **pkey, const char **pval); |
453 | int process_directives (struct file_triplet *trp, | 464 | int process_directives (struct file_triplet *trp); |
454 | const struct spool *spool); | ||
455 | 465 | ||
456 | int enabled_spool_p (const struct spool *spool); | 466 | int enabled_spool_p (const struct spool *spool); |
457 | int selected_spools (void); | 467 | int selected_spools (void); |