MCPcopy Create free account
hub / github.com/apache/trafficserver / new_config_holder

Function new_config_holder

plugins/stats_over_http/stats_over_http.cc:1079–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079static config_holder_t *
1080new_config_holder(const char *path)
1081{
1082 config_holder_t *config_holder = static_cast<config_holder_t *>(TSmalloc(sizeof(config_holder_t)));
1083 config_holder->config_path = 0;
1084 config_holder->config = 0;
1085 config_holder->last_load = 0;
1086
1087 if (path) {
1088 config_holder->config_path = nstr(path);
1089 } else {
1090 config_holder->config_path = nullptr;
1091 }
1092 load_config_file(config_holder);
1093 return config_holder;
1094}
1095
1096static int
1097free_handler(TSCont cont, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */)

Callers 1

TSPluginInitFunction · 0.85

Calls 3

TSmallocFunction · 0.85
nstrFunction · 0.85
load_config_fileFunction · 0.85

Tested by

no test coverage detected