Changeset 984a9ba in mainline for uspace/lib/gui/terminal.c


Ignore:
Timestamp:
2018-07-05T09:34:09Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63d46341
Parents:
76f566d
Message:

do not expose the call capability handler from the async framework

Keep the call capability handler encapsulated within the async framework
and do not expose it explicitly via its API. Use the pointer to
ipc_call_t as the sole object identifying an IPC call in the code that
uses the async framework.

This plugs a major leak in the abstraction and also simplifies both the
async framework (slightly) and all IPC servers.

File:
1 edited

Legend:

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

    r76f566d r984a9ba  
    678678}
    679679
    680 static void term_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
     680static void term_connection(ipc_call_t *icall, void *arg)
    681681{
    682682        terminal_t *term = NULL;
     
    690690
    691691        if (term == NULL) {
    692                 async_answer_0(icall_handle, ENOENT);
     692                async_answer_0(icall, ENOENT);
    693693                return;
    694694        }
     
    697697                chargrid_set_cursor_visibility(term->frontbuf, true);
    698698
    699         con_conn(icall_handle, icall, &term->srvs);
     699        con_conn(icall, &term->srvs);
    700700}
    701701
Note: See TracChangeset for help on using the changeset viewer.