Ignore:
File:
1 edited

Legend:

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

    r38d150e rb7fd2a0  
    151151static bool active = false;
    152152
    153 static int comp_active(input_t *);
    154 static int comp_deactive(input_t *);
    155 static int comp_key_press(input_t *, kbd_event_type_t, keycode_t, keymod_t, wchar_t);
    156 static int comp_mouse_move(input_t *, int, int);
    157 static int comp_abs_move(input_t *, unsigned, unsigned, unsigned, unsigned);
    158 static int comp_mouse_button(input_t *, int, int);
     153static errno_t comp_active(input_t *);
     154static errno_t comp_deactive(input_t *);
     155static errno_t comp_key_press(input_t *, kbd_event_type_t, keycode_t, keymod_t, wchar_t);
     156static errno_t comp_mouse_move(input_t *, int, int);
     157static errno_t comp_abs_move(input_t *, unsigned, unsigned, unsigned, unsigned);
     158static errno_t comp_mouse_button(input_t *, int, int);
    159159
    160160static input_ev_ops_t input_ev_ops = {
     
    602602        }
    603603       
    604         int rc = async_data_read_finalize(callid, event, len);
     604        errno_t rc = async_data_read_finalize(callid, event, len);
    605605        if (rc != EOK) {
    606606                async_answer_0(iid, ENOMEM);
     
    706706       
    707707        void *new_cell_storage;
    708         int rc = async_share_out_finalize(callid, &new_cell_storage);
     708        errno_t rc = async_share_out_finalize(callid, &new_cell_storage);
    709709        if ((rc != EOK) || (new_cell_storage == AS_MAP_FAILED)) {
    710710                async_answer_0(iid, ENOMEM);
     
    10491049        /* Retrieve the mode that shall be set. */
    10501050        vslmode_t new_mode;
    1051         int rc = visualizer_get_mode(vp->sess, &new_mode, mode_idx);
     1051        errno_t rc = visualizer_get_mode(vp->sess, &new_mode, mode_idx);
    10521052        if (rc != EOK) {
    10531053                fibril_mutex_unlock(&viewport_list_mtx);
     
    11771177static async_sess_t *vsl_connect(service_id_t sid, const char *svc)
    11781178{
    1179         int rc;
     1179        errno_t rc;
    11801180        async_sess_t *sess;
    11811181
     
    12061206static viewport_t *viewport_create(service_id_t sid)
    12071207{
    1208         int rc;
     1208        errno_t rc;
    12091209        char *vsl_name = NULL;
    12101210        viewport_t *vp = NULL;
     
    14771477#endif
    14781478
    1479 static int comp_abs_move(input_t *input, unsigned x , unsigned y,
     1479static errno_t comp_abs_move(input_t *input, unsigned x , unsigned y,
    14801480    unsigned max_x, unsigned max_y)
    14811481{
     
    15121512}
    15131513
    1514 static int comp_mouse_move(input_t *input, int dx, int dy)
     1514static errno_t comp_mouse_move(input_t *input, int dx, int dy)
    15151515{
    15161516        pointer_t *pointer = input_pointer(input);
     
    16241624}
    16251625
    1626 static int comp_mouse_button(input_t *input, int bnum, int bpress)
     1626static errno_t comp_mouse_button(input_t *input, int bnum, int bpress)
    16271627{
    16281628        pointer_t *pointer = input_pointer(input);
     
    18091809}
    18101810
    1811 static int comp_active(input_t *input)
     1811static errno_t comp_active(input_t *input)
    18121812{
    18131813        active = true;
     
    18171817}
    18181818
    1819 static int comp_deactive(input_t *input)
     1819static errno_t comp_deactive(input_t *input)
    18201820{
    18211821        active = false;
     
    18231823}
    18241824
    1825 static int comp_key_press(input_t *input, kbd_event_type_t type, keycode_t key,
     1825static errno_t comp_key_press(input_t *input, kbd_event_type_t type, keycode_t key,
    18261826    keymod_t mods, wchar_t c)
    18271827{
     
    21432143}
    21442144
    2145 static int input_connect(const char *svc)
     2145static errno_t input_connect(const char *svc)
    21462146{
    21472147        async_sess_t *sess;
    21482148        service_id_t dsid;
    21492149
    2150         int rc = loc_service_get_id(svc, &dsid, 0);
     2150        errno_t rc = loc_service_get_id(svc, &dsid, 0);
    21512151        if (rc != EOK) {
    21522152                printf("%s: Input service %s not found\n", NAME, svc);
     
    21992199        /* Create viewports and connect them to visualizers. */
    22002200        category_id_t cat_id;
    2201         int rc = loc_category_get_id("visualizer", &cat_id, IPC_FLAG_BLOCKING);
     2201        errno_t rc = loc_category_get_id("visualizer", &cat_id, IPC_FLAG_BLOCKING);
    22022202        if (rc != EOK)
    22032203                goto ret;
     
    22402240}
    22412241
    2242 static int compositor_srv_init(char *input_svc, char *name)
     2242static errno_t compositor_srv_init(char *input_svc, char *name)
    22432243{
    22442244        /* Coordinates of the central pixel. */
     
    22512251        async_set_fallback_port_handler(client_connection, NULL);
    22522252       
    2253         int rc = loc_server_register(NAME);
     2253        errno_t rc = loc_server_register(NAME);
    22542254        if (rc != EOK) {
    22552255                printf("%s: Unable to register server (%s)\n", NAME, str_error(rc));
     
    23132313        printf("%s: HelenOS Compositor server\n", NAME);
    23142314       
    2315         int rc = compositor_srv_init(argv[1], argv[2]);
     2315        errno_t rc = compositor_srv_init(argv[1], argv[2]);
    23162316        if (rc != EOK)
    23172317                return rc;
Note: See TracChangeset for help on using the changeset viewer.