author | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 17 Jan 2015 15:10:46 +0000 (16:10 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 17 Jan 2015 15:23:51 +0000 (16:23 +0100) | ||
commit | 28046539df61bb5b29d5acf3d03d65312df0e1ee | |
tree | f497ffee3ef42a3c2ef7216d97dfc3802718d166 | tree | snapshot |
parent | a06c934c92e1936d39e94bdb2fa8c81aba6f86ed | commit | diff |
write_http: make callback names context-dependent
This allows multiple destinations to work again (fixes #821), using the
same logic as other write plugins.
The callback name would now be something like:
`write_http/http://example.com/endpoint`
which is not very nice.
The next step would be to change this plugin to use `<Node>` blocks
like many others, and pass the URL as a parameter inside each instance
block. So I see this patch as the minimum required to let 5.3 and 5.4
users use this plugin with multiple destinations.
This allows multiple destinations to work again (fixes #821), using the
same logic as other write plugins.
The callback name would now be something like:
`write_http/http://example.com/endpoint`
which is not very nice.
The next step would be to change this plugin to use `<Node>` blocks
like many others, and pass the URL as a parameter inside each instance
block. So I see this patch as the minimum required to let 5.3 and 5.4
users use this plugin with multiple destinations.
src/write_http.c | diff | blob | history |