diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-24 00:49:40 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-24 00:57:16 +0200 |
commit | 4213ec5ef9695aa504938c0e764ba9a4f08921b2 (patch) | |
tree | 88ac2b2eb01337f0924d687df38b2a163bc94e11 /src/vtab.c | |
parent | 337a06f32fb530e0e0884fef2f5f630cca9911a1 (diff) | |
download | wydawca-4213ec5ef9695aa504938c0e764ba9a4f08921b2.tar.gz wydawca-4213ec5ef9695aa504938c0e764ba9a4f08921b2.tar.bz2 |
Initial implementation of daemon mode.
* gconf/gconf-gram.y (string_to_sockaddr_: Take struct gconf_sockaddr as the
first argument.
* gconf/gconf.h (struct gconf_sockaddr): New data type.
* src/job.c, src/net.c, src/pidfile.c: New files.
* src/Makefile.am (wydawca_SOURCES): Add job.c, net.c, pidfile.c
* src/cmdline.opt: New options: --cron (change semantics), --force,
--foreground, --single-process, --spool
* src/wydawca.c: New daemon mode.
* src/config.c: New statements: spool.alias, daemon, foreground,
single-process, wakeup-interval, pidfile, listen
* src/directive.c, src/diskio.c, src/gpg.c, src/mail.c, src/null.c,
src/process.c, src/triplet.c, src/verify.c, src/vtab.c, src/wydawca.h: use
static struct spool wherever feasible.
* src/triplet.c: New meta-variable "spool"
* tests/etc/wydawca.rcin: Update.
* tests/upload-dry.at: Update.
Diffstat (limited to 'src/vtab.c')
-rw-r--r-- | src/vtab.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -51,7 +51,7 @@ url_to_vtab (mu_url_t url, struct virt_tab *vtab) int -move_file (struct file_triplet *trp, struct spool *spool, +move_file (struct file_triplet *trp, const const struct spool *spool, enum file_type file_id, const char *reldir) { int rc = spool->vtab.move_file (trp, spool, file_id, reldir); @@ -61,7 +61,7 @@ move_file (struct file_triplet *trp, struct spool *spool, } int -archive_file (struct file_triplet *trp, struct spool *spool, +archive_file (struct file_triplet *trp, const struct spool *spool, const char *reldir, const char *file_name) { int rc = spool->vtab.archive_file (trp, spool, reldir, file_name); @@ -71,7 +71,7 @@ archive_file (struct file_triplet *trp, struct spool *spool, } int -symlink_file (struct file_triplet *trp, struct spool *spool, +symlink_file (struct file_triplet *trp, const struct spool *spool, const char *reldir, const char *wanted_src, const char *wanted_dst) { @@ -84,7 +84,7 @@ symlink_file (struct file_triplet *trp, struct spool *spool, } int -rmsymlink_file (struct file_triplet *trp, struct spool *spool, +rmsymlink_file (struct file_triplet *trp, const struct spool *spool, const char *reldir, const char *file_name) { int rc = spool->vtab.rmsymlink_file (trp, spool, reldir, file_name); |