Ignore:
Timestamp:
2013-07-11T08:21:10Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
64e63ce1
Parents:
80445cf (diff), c8bb1633 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/proto/mousedev.c

    r80445cf r4c53333  
    4343#include <errno.h>
    4444#include <ipc/mouseev.h>
    45 #include <input.h>
    4645#include <loc.h>
    47 #include <mouse.h>
    48 #include <mouse_port.h>
    49 #include <mouse_proto.h>
    5046#include <sys/typefmt.h>
     47#include "../mouse.h"
     48#include "../mouse_port.h"
     49#include "../mouse_proto.h"
     50#include "../input.h"
    5151
    5252/** Mousedev softstate */
     
    9696                        retval = EOK;
    9797                        break;
     98                case MOUSEEV_ABS_MOVE_EVENT:
     99                        mouse_push_event_abs_move(mousedev->mouse_dev,
     100                                IPC_GET_ARG1(call), IPC_GET_ARG2(call),
     101                                IPC_GET_ARG3(call), IPC_GET_ARG4(call));
     102                        retval = EOK;
     103                        break;
    98104                case MOUSEEV_BUTTON_EVENT:
    99105                        mouse_push_event_button(mousedev->mouse_dev,
     
    117123                printf("%s: Failed starting session with '%s'\n", NAME,
    118124                    mdev->svc_name);
    119                 return -1;
     125                return ENOENT;
    120126        }
    121127       
     
    125131                    NAME, mdev->svc_name);
    126132                async_hangup(sess);
    127                 return -1;
     133                return ENOMEM;
    128134        }
    129135       
     
    134140                mousedev_destroy(mousedev);
    135141                async_hangup(sess);
    136                 return -1;
     142                return ENOENT;
    137143        }
    138144       
     
    145151                    NAME, mdev->svc_name);
    146152                mousedev_destroy(mousedev);
    147                 return -1;
     153                return rc;
    148154        }
    149155       
    150         return 0;
     156        return EOK;
    151157}
    152158
Note: See TracChangeset for help on using the changeset viewer.