MCPcopy Create free account
hub / github.com/OpenPrinting/cups / do_command

Function do_command

berkeley/lpc.c:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 */
165
166static void
167do_command(http_t *http, /* I - HTTP connection to server */
168 const char *command, /* I - Command string */
169 const char *params) /* I - Parameters for command */
170{
171 if (!compare_strings(command, "status", 4))
172 show_status(http, params);
173 else if (!compare_strings(command, "help", 1) || !strcmp(command, "?"))
174 show_help(params);
175 else
176 _cupsLangPrintf(stdout,
177 _("%s is not implemented by the CUPS version of lpc."),
178 command);
179}
180
181
182/*

Callers 1

mainFunction · 0.70

Calls 4

compare_stringsFunction · 0.85
show_helpFunction · 0.85
_cupsLangPrintfFunction · 0.85
show_statusFunction · 0.70

Tested by

no test coverage detected