aboutsummaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-22 19:09:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-08-22 19:09:04 +0000
commitc7e791e9563b7805fc7a375bc7e616b4252a9c57 (patch)
tree7e34ebcd4326df7f562f73175762a322c4ce2d5e /src/process.c
parent180ca1d87d2bf69d9dbb0acb76422e9ae15f930c (diff)
downloadwydawca-c7e791e9563b7805fc7a375bc7e616b4252a9c57.tar.gz
wydawca-c7e791e9563b7805fc7a375bc7e616b4252a9c57.tar.bz2
Update
git-svn-id: file:///svnroot/wydawca/trunk@285 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 575874a..5452cd9 100644
--- a/src/process.c
+++ b/src/process.c
@@ -33,6 +33,8 @@ register_directory_pair (struct directory_pair *dpair)
dlist = dl;
}
+/* Return true if NAME is a directory. If stat fails, return the error
+ code in EC */
int
test_dir (const char *name, int *ec)
{
@@ -47,6 +49,7 @@ test_dir (const char *name, int *ec)
return S_ISDIR (st.st_mode) == 0;
}
+/* Return a textual representation of a file TYPE */
const char *
file_type_str (enum file_type type)
{
@@ -66,6 +69,8 @@ file_type_str (enum file_type type)
#define SUF_SIG ".sig"
#define SUF_DIR ".directive.asc"
+/* Parse file NAME: determine its type and root name and store this
+ information in FINFO */
void
parse_file_name (const char *name, struct file_info *finfo)
{
@@ -97,6 +102,8 @@ parse_file_name (const char *name, struct file_info *finfo)
abort (); /* should not happen */
}
+/* Scan upload directory from the DPAIR and register all files found
+ there, forming triplets when possible */
void
scan_directory_pair (struct directory_pair *dpair)
{
@@ -169,6 +176,7 @@ scan_directory_pair (struct directory_pair *dpair)
method_done (&dpair->gpg_key_method);
}
+/* Scan all configured update directories */
void
scan_directories ()
{

Return to:

Send suggestions and report system problems to the System administrator.