X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/985bb670b4e07d35cb1580780253ded2524a342e..dde24f58aaec900461e43e21e5e4597fa139d419:/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. */