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

Function cupsSetPasswordCB2

cups/usersys.c:394–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392 */
393
394void
395cupsSetPasswordCB2(
396 cups_password_cb2_t cb, /* I - Callback function */
397 void *user_data) /* I - User data pointer */
398{
399 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */
400
401
402 if (cb == (cups_password_cb2_t)0)
403 cg->password_cb = (cups_password_cb2_t)_cupsGetPassword;
404 else
405 cg->password_cb = cb;
406
407 cg->password_data = user_data;
408}
409
410
411/*

Callers 3

mainFunction · 0.85
mainFunction · 0.85
monitor_printerFunction · 0.85

Calls 1

_cupsGlobalsFunction · 0.85

Tested by

no test coverage detected