Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/isdv4_tablet/main.c

    ra35b458 r5a6cc679  
    3535#include <stddef.h>
    3636#include <stdio.h>
    37 #include <str.h>
    3837#include <task.h>
    3938
     
    6665{
    6766        async_answer_0(iid, EOK);
    68 
     67       
    6968        async_sess_t *sess =
    7069            async_callback_receive(EXCHANGE_SERIALIZE);
    71 
     70       
    7271        fibril_mutex_lock(&client_mutex);
    73 
     72       
    7473        if (client_sess == NULL)
    7574                client_sess = sess;
    76 
     75       
    7776        fibril_mutex_unlock(&client_mutex);
    7877
     
    8079                ipc_call_t call;
    8180                ipc_callid_t callid = async_get_call(&call);
    82 
     81               
    8382                if (!IPC_GET_IMETHOD(call))
    8483                        break;
    85 
     84               
    8685                async_answer_0(callid, ENOTSUP);
    8786        }
     
    9392        async_sess_t *sess = client_sess;
    9493        fibril_mutex_unlock(&client_mutex);
    95 
     94       
    9695        if (!sess) return;
    97 
     96       
    9897        async_exch_t *exch = async_exchange_begin(sess);
    9998        if (exch) {
     
    153152        printf("%s %s %u %u %u %u\n", type, source, event->x, event->y,
    154153            event->pressure, event->button);
    155 
     154       
    156155        emit_event(event);
    157156}
     
    307306        printf(" Touch: %ux%u type: %s\n", state.touch_max_x, state.touch_max_y,
    308307                touch_type(state.touch_type));
    309 
     308       
    310309        fid_t fibril = fibril_create(read_fibril, NULL);
    311310        /* From this on, state is to be used only by read_fibril */
Note: See TracChangeset for help on using the changeset viewer.