diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-03-12 15:03:59 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-03-12 15:22:13 +0200 |
commit | 1ba8cf95a5f536d4aa6293f9848271a7285bc092 (patch) | |
tree | dede8a4bccb1daad8b67530d87845e7fe05749e6 /src/job.c | |
parent | 293108d7806aa3c0c5e706237b3788b261779e66 (diff) | |
download | wydawca-1ba8cf95a5f536d4aa6293f9848271a7285bc092.tar.gz wydawca-1ba8cf95a5f536d4aa6293f9848271a7285bc092.tar.bz2 |
Namespace normalization (2). Provide installable headers.
* Makefile.am (SUBDIRS): Add include.
* configure.ac: Build include/*/Makefile
Set-up grecs as a shared convenience library. Install
its headers.
* include/Makefile.am: New file.
* include/wydawca/Makefile.am: New file.
* include/wydawca/cfg.h: New file.
* include/wydawca/wydawca.h: New file.
* modules/mailutils/Makefile.am (AM_CPPFLAGS): Add include/
* src/Makefile.am (LDADD): Use @GRECS_LDADD@
(AM_CPPFLAGS): Add include/.
* tests/Makefile.am: Likewise.
* src/wydawca.h: Include wydawca/wydawca.h.
(__cat2__, __cat3__): Move to installable header and rename.
(struct wy_user): Move to installable header.
(struct file_triplet): Rename to wy_triplet. All uses changed.
(enum notification_event): Rename to wy_event and move to
installable header.
(struct metadef): Rename to wy_metadef and move to
installable header.
(dry_run_mode): Rename to wy_dry_run and move to
installable header.
(wydawca_gpg_homedir): Rename to wy_gpg_homedir and move to
installable header.
(wy_version, wy_debug_level, wy_log_to_stderr)
(wy_log_facility, wy_syslog_tag)
(wy_log,wy_dbg): Move to installable header.
* modules/mailutils/mod_mailutils.c: Update.
* src/cmdline.opt
* src/config.c
* src/directive.c
* src/diskio.c
* src/event.c
* src/gpg.c
* src/job.c
* src/meta.c
* src/module.c
* src/null.c
* src/timer.c
* src/triplet.c
* src/verify.c
* src/vtab.c
* src/watcher.c
* src/wydawca.c
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -26,7 +26,7 @@ struct job { struct job *next, *prev; int state; struct spool *spool; - struct file_triplet *triplet_list; + struct wy_triplet *triplet_list; uid_t uid; pid_t pid; time_t timestamp; @@ -57,7 +57,7 @@ set_timer(time_t interval) } void -triplet_jq_unlink(struct file_triplet *tp) +triplet_jq_unlink(struct wy_triplet *tp) { if (!tp || !tp->job) return; @@ -75,12 +75,12 @@ triplet_jq_unlink(struct file_triplet *tp) void jq_clear(struct job *job) { - struct file_triplet *tp; + struct wy_triplet *tp; if (!job->triplet_list) return; for (tp = job->triplet_list; tp; ) { - struct file_triplet *next = tp->jq_next; + struct wy_triplet *next = tp->jq_next; remove_triplet(tp, 1); tp = next; } @@ -111,7 +111,7 @@ job_active_count() static int procspool(struct spool *spool, void *data) { - struct file_triplet *trp = *(struct file_triplet **)data; + struct wy_triplet *trp = *(struct wy_triplet **)data; if (!trp) return 0; @@ -229,7 +229,7 @@ job_insert(struct job *job, struct job *elt) } void -schedule_job(struct spool *spool, uid_t uid, struct file_triplet *tp) +schedule_job(struct spool *spool, uid_t uid, struct wy_triplet *tp) { struct job *job; |