summaryrefslogtreecommitdiffabout
path: root/src/vtab.c
Unidiff
Diffstat (limited to 'src/vtab.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/vtab.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/vtab.c b/src/vtab.c
index 2f8a85e..cec6fc0 100644
--- a/src/vtab.c
+++ b/src/vtab.c
@@ -24,13 +24,13 @@ struct virt_tab_reg
24 24
25static struct virt_tab_reg reg[] = { 25static struct virt_tab_reg reg[] = {
26 { "file", 26 { "file",
27 { dir_test_url, dir_move_file, dir_archive_file, dir_symlink_file, 27 { dir_get_path, dir_test_url, dir_move_file, dir_archive_file,
28 dir_rmsymlink_file } }, 28 dir_symlink_file, dir_rmsymlink_file } },
29 { "dir", 29 { "dir",
30 { dir_test_url, dir_move_file, dir_archive_file, dir_symlink_file, 30 { dir_get_path, dir_test_url, dir_move_file, dir_archive_file,
31 dir_rmsymlink_file } }, 31 dir_symlink_file, dir_rmsymlink_file } },
32 { "null", 32 { "null",
33 { NULL, null_move_file, null_archive_file, null_symlink_file, 33 { NULL, NULL, null_move_file, null_archive_file, null_symlink_file,
34 null_rmsymlink_file } }, 34 null_rmsymlink_file } },
35 { NULL } 35 { NULL }
36}; 36};
@@ -53,6 +53,14 @@ url_to_vtab (mu_url_t url, struct virt_tab *vtab)
53} 53}
54 54
55 55
56const char *
57get_path (struct spool *sp)
58{
59 if (!sp->vtab.get_path)
60 return NULL;
61 return sp->vtab.get_path (sp);
62}
63
56int 64int
57move_file (struct file_triplet *trp, enum file_type file_id) 65move_file (struct file_triplet *trp, enum file_type file_id)
58{ 66{

Return to:

Send suggestions and report system problems to the System administrator.