Changeset 7aaed09 in mainline for uspace/srv/hid


Ignore:
Timestamp:
2011-12-18T14:02:30Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c868e2d
Parents:
3b71e84d (diff), 1761268 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

Location:
uspace/srv/hid
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/console.c

    r3b71e84d r7aaed09  
    481481                                event->c = c;
    482482                               
    483                                 /* Kernel console does not read events
     483                                /*
     484                                 * Kernel console does not read events
    484485                                 * from us, so we will redirect them
    485486                                 * to the (last) active userspace console
     
    487488                                 */
    488489                                console_t *target_console = cons_get_active_uspace();
    489 
     490                               
    490491                                prodcons_produce(&target_console->input_pc,
    491492                                    &event->link);
  • uspace/srv/hid/input/ctl/kbdev.c

    r3b71e84d r7aaed09  
    111111                printf("%s: Failed allocating device structure for '%s'.\n",
    112112                    NAME, kdev->svc_name);
     113                async_hangup(sess);
    113114                return -1;
    114115        }
     
    169170                callid = async_get_call(&call);
    170171                if (!IPC_GET_IMETHOD(call)) {
    171                         /* XXX Handle hangup */
     172                        kbdev_destroy(kbdev);
    172173                        return;
    173174                }
  • uspace/srv/hid/input/proto/mousedev.c

    r3b71e84d r7aaed09  
    5454        /** Link to generic mouse device */
    5555        mouse_dev_t *mouse_dev;
    56        
    57         /** Session to mouse device */
    58         async_sess_t *sess;
    5956} mousedev_t;
    6057
     
    7269static void mousedev_destroy(mousedev_t *mousedev)
    7370{
    74         if (mousedev->sess != NULL)
    75                 async_hangup(mousedev->sess);
    76        
    7771        free(mousedev);
    7872}
     
    8983               
    9084                if (!IPC_GET_IMETHOD(call)) {
    91                         /* XXX Handle hangup */
     85                        mousedev_destroy(mousedev);
    9286                        return;
    9387                }
     
    129123                printf("%s: Failed allocating device structure for '%s'.\n",
    130124                    NAME, mdev->svc_name);
     125                async_hangup(sess);
    131126                return -1;
    132127        }
    133        
    134         mousedev->sess = sess;
    135128       
    136129        async_exch_t *exch = async_exchange_begin(sess);
     
    139132                    mdev->svc_name);
    140133                mousedev_destroy(mousedev);
     134                async_hangup(sess);
    141135                return -1;
    142136        }
     
    144138        int rc = async_connect_to_me(exch, 0, 0, 0, mousedev_callback_conn, mousedev);
    145139        async_exchange_end(exch);
     140        async_hangup(sess);
    146141       
    147142        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.