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

Function parse_callbacks

tests/tools/plugins/ssl_client_verify_test.cc:134–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void
135parse_callbacks(int argc, const char *argv[], int &count)
136{
137 int i = 0;
138 const char *ptr;
139 for (i = 0; i < argc; i++) {
140 if (argv[i][0] == '-') {
141 switch (argv[i][1]) {
142 case 'c':
143 ptr = index(argv[i], '=');
144 if (ptr) {
145 count = atoi(ptr + 1);
146 }
147 break;
148 case 'g':
149 ptr = index(argv[i], '=');
150 if (ptr) {
151 good_names.insert(std::pair<std::string, int>(std::string(ptr + 1), 1));
152 }
153 break;
154 }
155 }
156 }
157}
158
159void
160setup_callbacks(int count)

Callers 1

TSPluginInitFunction · 0.70

Calls 2

stringClass · 0.85
insertMethod · 0.45

Tested by

no test coverage detected