Changeset 10cb47e in mainline for uspace/lib/gui/terminal.c


Ignore:
Timestamp:
2016-08-31T15:43:01Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bdfdc51c
Parents:
58563585
Message:

add support for custom client data into widgets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/terminal.c

    r58563585 r10cb47e  
    696696}
    697697
    698 bool init_terminal(terminal_t *term, widget_t *parent, sysarg_t width,
    699     sysarg_t height)
    700 {
    701         widget_init(&term->widget, parent);
     698bool init_terminal(terminal_t *term, widget_t *parent, const void *data,
     699    sysarg_t width, sysarg_t height)
     700{
     701        widget_init(&term->widget, parent, data);
    702702       
    703703        link_initialize(&term->link);
     
    771771}
    772772
    773 terminal_t *create_terminal(widget_t *parent, sysarg_t width, sysarg_t height)
     773terminal_t *create_terminal(widget_t *parent, const void *data, sysarg_t width,
     774    sysarg_t height)
    774775{
    775776        terminal_t *term = (terminal_t *) malloc(sizeof(terminal_t));
     
    777778                return NULL;
    778779       
    779         bool ret = init_terminal(term, parent, width, height);
     780        bool ret = init_terminal(term, parent, data, width, height);
    780781        if (!ret) {
    781782                free(term);
Note: See TracChangeset for help on using the changeset viewer.