Remove static qualifier on stats_allocate_proxy_counters_internal. This
function will be used to allocate extra counters at runtime for dynamic
servers.
#define MK_STATS_PROXY_DOMAIN(px_cap) \
((px_cap) << STATS_PX_CAP | STATS_DOMAIN_PROXY)
+int stats_allocate_proxy_counters_internal(struct extra_counters **counters,
+ int type, int px_cap);
int stats_allocate_proxy_counters(struct proxy *px);
void stats_register_module(struct stats_module *m);
return stats_dump_json_schema_to_buffer(appctx->owner);
}
-static int stats_allocate_proxy_counters_internal(struct extra_counters **counters,
- int type, int px_cap)
+int stats_allocate_proxy_counters_internal(struct extra_counters **counters,
+ int type, int px_cap)
{
struct stats_module *mod;