Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/graph/graph.h

    r8d2dd7f2 rb7fd2a0  
    5454         * Device driver shall allocate any necessary internal structures
    5555         * specific for a claimed visualizer. */
    56         int (* claim)(struct visualizer *vs);
     56        errno_t (* claim)(struct visualizer *vs);
    5757       
    5858        /**
     
    6161         * the mode is set and if so it shall change its internal state
    6262         * accordingly (e.g. deallocate frame buffers). */
    63         int (* yield)(struct visualizer *vs);
     63        errno_t (* yield)(struct visualizer *vs);
    6464       
    6565        /**
     
    7272         * optimization), the pointer to the handle_damage operation can be
    7373         * changed at this point. */
    74         int (* change_mode)(struct visualizer *vs, vslmode_t new_mode);
     74        errno_t (* change_mode)(struct visualizer *vs, vslmode_t new_mode);
    7575       
    7676        /**
     
    8282         * shall be added to the coordinates and if necessary the result shall be
    8383         * wrapped around the edge of the backbuffer). */
    84         int (* handle_damage)(struct visualizer *vs,
     84        errno_t (* handle_damage)(struct visualizer *vs,
    8585            sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height,
    8686                sysarg_t x_offset, sysarg_t y_offset);
     
    9090         * case, device driver might enable power saving mode on the device
    9191         * corresponding to the visualizer. */
    92         int (* suspend)(struct visualizer *vs);
     92        errno_t (* suspend)(struct visualizer *vs);
    9393       
    9494        /**
    9595         * When upper layers detect activity on suspended visualizer, device
    9696         * driver shall disable power saving mode on the corresponding device. */
    97         int (* wakeup)(struct visualizer *vs);
     97        errno_t (* wakeup)(struct visualizer *vs);
    9898} visualizer_ops_t;
    9999
     
    290290 * list is guarded by the mutex, visualizers might be added even after the
    291291 * initialialization of the device driver. */
    292 extern int graph_register_visualizer(visualizer_t *);
     292extern errno_t graph_register_visualizer(visualizer_t *);
    293293
    294294/**
     
    301301 * from the driver visualizer list. Function shall be called by device driver
    302302 * before deallocating the resources for the visualizer. */
    303 extern int graph_unregister_visualizer(visualizer_t *);
     303extern errno_t graph_unregister_visualizer(visualizer_t *);
    304304
    305305/**
     
    310310
    311311extern renderer_t *graph_alloc_renderer(void);
    312 extern int graph_register_renderer(renderer_t *);
     312extern errno_t graph_register_renderer(renderer_t *);
    313313extern renderer_t *graph_get_renderer(sysarg_t);
    314 extern int graph_unregister_renderer(renderer_t *);
     314extern errno_t graph_unregister_renderer(renderer_t *);
    315315extern void graph_destroy_renderer(renderer_t *);
    316316
     
    321321 * callback connection that the visualizer with a specified service ID should
    322322 * be switched to the mode with the given index. */
    323 extern int graph_notify_mode_change(async_sess_t *, sysarg_t, sysarg_t);
     323extern errno_t graph_notify_mode_change(async_sess_t *, sysarg_t, sysarg_t);
    324324
    325325/**
     
    327327 * callback connection that the visualizer with a specified service ID has
    328328 * lost its output device (e.g. virtual monitor was closed by a user). */
    329 extern int graph_notify_disconnect(async_sess_t *, sysarg_t);
     329extern errno_t graph_notify_disconnect(async_sess_t *, sysarg_t);
    330330
    331331/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.