aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.h')
-rw-r--r--src/wydawca.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/wydawca.h b/src/wydawca.h
index 0d38bd3..2de86f0 100644
--- a/src/wydawca.h
+++ b/src/wydawca.h
@@ -197,10 +197,24 @@ enum notification_event
MAX_EVENT
};
-void notify_project_owner (struct file_triplet *, enum notification_event);
-void notify_admin (struct file_triplet *, enum notification_event);
+enum notification_target
+ {
+ notify_admin, /* System administrator */
+ notify_owner, /* Project admin */
+ notify_user /* User (uploader) */
+ };
+
+struct message_template;
+struct message_template *find_message_template (char *name);
+void register_notification (enum notification_event ev,
+ enum notification_target tgt,
+ struct message_template *msg);
+
void notify (struct file_triplet *, enum notification_event);
+const char *notification_event_str (enum notification_event evt);
+const char *notification_target_str (enum notification_target tgt);
+
struct kw_expansion
{

Return to:

Send suggestions and report system problems to the System administrator.