int32_t getargs (uint8_t* buf, int32_t nbytes) { if(!validUserPointer(buf)) return -1; auto pd = getCurrentThreadInfo()->getProcessDesc(); if (!pd->arg) { buf[0] = '\0'; return 0; } int32_t arg_len = strlen(pd->arg); if (nbytes < arg_len + 1) return -1; memcpy(buf, pd->arg, arg_len); buf[arg_len] = '\0'; return 0; }
int32_t attacheMessageHandler(Container *elem, void *args) { if (!validUserPointer(elem)) return -1; }
int32_t setImageData(Container *img, uint8_t *data) { if (!validUserPointer(img)) return -1; }
int32_t getMessage(void *msg) { if (!validUserPointer(msg)) return -1; }
int32_t hideElement(Container *elem) { if (!validUserPointer(elem)) return -1; elem->hide(); return 0; }
int32_t showElement(Container *elem) { if (!validUserPointer(elem)) return -1; elem->show(); return 0; }
int32_t getText(Container *elem, char *buffer) { if (!validUserPointer(elem)) return -1; return 0; }
int32_t setText(Container *elem, char *text) { if (!validUserPointer(elem)) return -1; return 0; }