Changes in uspace/lib/graph/graph.h [8d2dd7f2:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/graph/graph.h
r8d2dd7f2 rb7fd2a0 54 54 * Device driver shall allocate any necessary internal structures 55 55 * specific for a claimed visualizer. */ 56 int (* claim)(struct visualizer *vs);56 errno_t (* claim)(struct visualizer *vs); 57 57 58 58 /** … … 61 61 * the mode is set and if so it shall change its internal state 62 62 * accordingly (e.g. deallocate frame buffers). */ 63 int (* yield)(struct visualizer *vs);63 errno_t (* yield)(struct visualizer *vs); 64 64 65 65 /** … … 72 72 * optimization), the pointer to the handle_damage operation can be 73 73 * 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); 75 75 76 76 /** … … 82 82 * shall be added to the coordinates and if necessary the result shall be 83 83 * wrapped around the edge of the backbuffer). */ 84 int (* handle_damage)(struct visualizer *vs,84 errno_t (* handle_damage)(struct visualizer *vs, 85 85 sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height, 86 86 sysarg_t x_offset, sysarg_t y_offset); … … 90 90 * case, device driver might enable power saving mode on the device 91 91 * corresponding to the visualizer. */ 92 int (* suspend)(struct visualizer *vs);92 errno_t (* suspend)(struct visualizer *vs); 93 93 94 94 /** 95 95 * When upper layers detect activity on suspended visualizer, device 96 96 * driver shall disable power saving mode on the corresponding device. */ 97 int (* wakeup)(struct visualizer *vs);97 errno_t (* wakeup)(struct visualizer *vs); 98 98 } visualizer_ops_t; 99 99 … … 290 290 * list is guarded by the mutex, visualizers might be added even after the 291 291 * initialialization of the device driver. */ 292 extern int graph_register_visualizer(visualizer_t *);292 extern errno_t graph_register_visualizer(visualizer_t *); 293 293 294 294 /** … … 301 301 * from the driver visualizer list. Function shall be called by device driver 302 302 * before deallocating the resources for the visualizer. */ 303 extern int graph_unregister_visualizer(visualizer_t *);303 extern errno_t graph_unregister_visualizer(visualizer_t *); 304 304 305 305 /** … … 310 310 311 311 extern renderer_t *graph_alloc_renderer(void); 312 extern int graph_register_renderer(renderer_t *);312 extern errno_t graph_register_renderer(renderer_t *); 313 313 extern renderer_t *graph_get_renderer(sysarg_t); 314 extern int graph_unregister_renderer(renderer_t *);314 extern errno_t graph_unregister_renderer(renderer_t *); 315 315 extern void graph_destroy_renderer(renderer_t *); 316 316 … … 321 321 * callback connection that the visualizer with a specified service ID should 322 322 * be switched to the mode with the given index. */ 323 extern int graph_notify_mode_change(async_sess_t *, sysarg_t, sysarg_t);323 extern errno_t graph_notify_mode_change(async_sess_t *, sysarg_t, sysarg_t); 324 324 325 325 /** … … 327 327 * callback connection that the visualizer with a specified service ID has 328 328 * lost its output device (e.g. virtual monitor was closed by a user). */ 329 extern int graph_notify_disconnect(async_sess_t *, sysarg_t);329 extern errno_t graph_notify_disconnect(async_sess_t *, sysarg_t); 330 330 331 331 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.