aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-26 16:43:21 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-08-26 16:43:21 +0000
commit8c3e4b2576fae10c60aaef6c224324a3f61c903b (patch)
treed327c79583dfe1d3ea77237335f60b6f32fbdedb /src/wydawca.h
parentb89ece30bebb5b9dd06e4e061537b6bf068566f2 (diff)
downloadwydawca-8c3e4b2576fae10c60aaef6c224324a3f61c903b.tar.gz
wydawca-8c3e4b2576fae10c60aaef6c224324a3f61c903b.tar.bz2
* wydawca/wydawca.h (struct file_triplet): New member user
(fill_project_name): New function * wydawca/verify.c (get_project_name): Rename to fill_project_name, remove static qualifier. * wydawca/wydawca.rc: Update * wydawca/mail.c (notify_owner): Notify only the submitter on ev_success, ev_bad_directive_signature and ev_bad_detached_signature (should it be made configurable?) (notify): Call fill_project_name * wydawca/triplet.c (hash_triplet_free): Free trp->user (expand_user_real_name, expand_user_email): Change data indices to match those of project_owner_method. git-svn-id: file:///svnroot/wydawca/trunk@298 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src/wydawca.h')
-rw-r--r--src/wydawca.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wydawca.h b/src/wydawca.h
index 37de74d..0d38bd3 100644
--- a/src/wydawca.h
+++ b/src/wydawca.h
@@ -146,7 +146,6 @@ struct file_info
struct file_triplet
{
char *name; /* Triplet base name */
- char *project; /* Triplet project name (if known) */
gid_t gid; /* Owner GID */
struct file_info file[FILE_TYPE_COUNT]; /* Components */
struct directory_pair *dpair; /* Owning directory pair */
@@ -155,6 +154,8 @@ struct file_triplet
char *tmp; /* Temporary storage */
size_t tmpsize; /* Size of memory allocated in tmp */
/* Special data for template formatting */
+ char *project; /* Triplet project name (if known) */
+ char *user; /* User name (if known) */
char **user_data;
};
@@ -295,6 +296,7 @@ int verify_directive_signature (struct file_triplet *trp,
const char *pubkey);
int verify_detached_signature (struct file_triplet *trp,
struct directory_pair *dpair);
+int fill_project_name (struct file_triplet *trp);
/* Directive file support */
int directive_parse (struct file_triplet *trp);

Return to:

Send suggestions and report system problems to the System administrator.