Changeset a35b458 in mainline for uspace/lib/graph/graph.h


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

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

    r3061bc1 ra35b458  
    5555         * specific for a claimed visualizer. */
    5656        errno_t (*claim)(struct visualizer *vs);
    57        
     57
    5858        /**
    5959         * Device driver shall deallocate any necessary internal structures
     
    6262         * accordingly (e.g. deallocate frame buffers). */
    6363        errno_t (*yield)(struct visualizer *vs);
    64        
     64
    6565        /**
    6666         * Device driver shall first try to claim all resources required for
     
    7373         * changed at this point. */
    7474        errno_t (*change_mode)(struct visualizer *vs, vslmode_t new_mode);
    75        
     75
    7676        /**
    7777         * Device driver shall render the cells from damaged region into its
     
    8585            sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height,
    8686            sysarg_t x_offset, sysarg_t y_offset);
    87        
     87
    8888        /**
    8989         * Upper layers of the graphic stack might report inactivity. In such
     
    9191         * corresponding to the visualizer. */
    9292        errno_t (*suspend)(struct visualizer *vs);
    93        
     93
    9494        /**
    9595         * When upper layers detect activity on suspended visualizer, device
     
    107107         * Field is fully managed by libgraph. */
    108108        link_t link;
    109        
     109
    110110        /**
    111111         * When reference count equals 1, visualizer is claimed by a client,
     
    114114         * Field is fully managed by libgraph. */
    115115        atomic_t ref_cnt;
    116        
     116
    117117        /**
    118118         * Visualizer ID assigned by some particular registration service
     
    123123         * responsibility to set and update this field. */
    124124        sysarg_t reg_svc_handle;
    125        
     125
    126126        /**
    127127         * Visualizer ID in the client context. When client gets notified by
     
    132132         * gets claimed and is valid until it is yielded. */
    133133        sysarg_t client_side_handle;
    134        
     134
    135135        /**
    136136         * Callback session to the client. Established by libgraph during initial
     
    143143         * through notification functions. */
    144144        async_sess_t *notif_sess;
    145        
     145
    146146        /**
    147147         * Mutex protecting the mode list and default mode index. This is required
     
    152152         * modes list or default mode index. */
    153153        fibril_mutex_t mode_mtx;
    154        
     154
    155155        /**
    156156         * List of all modes that can be set by this visualizer. List is populated
     
    164164         * mutex. */
    165165        list_t modes;
    166        
     166
    167167        /**
    168168         * Index of the default mode. Might come in handy to the clients that are
     
    175175         * mutex. */
    176176        sysarg_t def_mode_idx;
    177        
     177
    178178        /**
    179179         * Copy of the currently established mode. It is read by both libgraph and
     
    183183         * Field is fully managed by libgraph, can be read by device driver. */
    184184        vslmode_t cur_mode;
    185        
     185
    186186        /**
    187187         * Determines whether the visualizer is currently set to some mode or not,
     
    189189         * Field is fully managed by libgraph, can be read by device driver. */
    190190        bool mode_set;
    191        
     191
    192192        /**
    193193         * Device driver function pointers.
     
    195195         * functions through it. */
    196196        visualizer_ops_t ops;
    197        
     197
    198198        /**
    199199         * Backbuffer shared with the client. Sharing is established by libgraph.
     
    202202         * Field is fully managed by libgraph, can be read by device driver. */
    203203        pixelmap_t cells;
    204        
     204
    205205        /**
    206206         * Device driver context, completely opaque to the libgraph. Intended to
     
    252252        // TODO
    253253        link_t link;
    254        
     254
    255255        atomic_t ref_cnt;
    256        
     256
    257257        sysarg_t reg_svc_handle;
    258        
     258
    259259        renderer_ops_t ops;
    260260} renderer_t;
Note: See TracChangeset for help on using the changeset viewer.