upstream: add upstream list parameter to upstream_add()

to abstract it from the concrete list in the config struct.

Michael
This commit is contained in:
Michael Adam committed 2009-12-07 00:22:28 +01:00
1 parent fd987e97f0
commit 22fba83df2
3 files changed
+10 -8

No files matched your search

+2 -1
View File
@@ -40,7 +40,8 @@ struct upstream {
};
#ifdef UPSTREAM_SUPPORT
extern void upstream_add (const char *host, int port, const char *domain);
extern void upstream_add (const char *host, int port, const char *domain,
struct upstream **upstream_list);
struct upstream *upstream_get (char *host);
#endif /* UPSTREAM_SUPPORT */