MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / callback

Function callback

source/ui/netsender.c:479–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479static SwkbdCallbackResult callback(void *user, const char **ppMessage, const char *text, size_t textlen)
480{
481 bool validIp = validateIp(text, textlen);
482 if (!validIp)
483 {
484 *ppMessage = textGetString(StrId_NetSenderInvalidIp);
485 return SWKBD_CALLBACK_CONTINUE;
486 }
487
488 return SWKBD_CALLBACK_OK;
489}
490
491void netsenderUpdate(void)
492{

Callers

nothing calls this directly

Calls 2

validateIpFunction · 0.85
textGetStringFunction · 0.85

Tested by

no test coverage detected