X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e41a99999ec696e848b8ea1c8953ae7dc88f9d6d..36c5e137f39bc1ec10274201c9a13c04dcc86259:/lib/configuration.h diff --git a/lib/configuration.h b/lib/configuration.h index 4cb5677..875b9d6 100644 --- a/lib/configuration.h +++ b/lib/configuration.h @@ -70,7 +70,8 @@ struct collectionlist { struct namepart { char *part; /* part */ - pcre *re; /* regexp */ + pcre *re; /* compiled regexp */ + char *res; /* regexp as a string */ char *replace; /* replacement string */ char *context; /* context glob */ unsigned reflags; /* regexp flags */ @@ -292,7 +293,8 @@ struct config { extern struct config *config; /* the current configuration */ -int config_read(int server); +int config_read(int server, + const struct config *oldconfig); /* re-read config, return 0 on success or non-0 on error. * Only updates @config@ if the new configuration is valid. */