Example #1
0
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;
}
Example #2
0
int32_t attacheMessageHandler(Container *elem, void *args)
{
    if (!validUserPointer(elem)) return -1;
}
Example #3
0
int32_t setImageData(Container *img, uint8_t *data)
{
    if (!validUserPointer(img)) return -1;
}
Example #4
0
int32_t getMessage(void *msg)
{
    if (!validUserPointer(msg)) return -1;
}
Example #5
0
int32_t hideElement(Container *elem)
{
    if (!validUserPointer(elem)) return -1;
    elem->hide();
    return 0;
}
Example #6
0
int32_t showElement(Container *elem)
{
    if (!validUserPointer(elem)) return -1;
    elem->show();
    return 0;
}
Example #7
0
int32_t getText(Container *elem, char *buffer)
{
    if (!validUserPointer(elem)) return -1;
    return 0;
}
Example #8
0
int32_t setText(Container *elem, char *text)
{
    if (!validUserPointer(elem)) return -1;
    return 0;
}