Changeset 55edba0 in mainline


Ignore:
Timestamp:
2013-06-11T14:20:41Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f81498d
Parents:
445e7c0
Message:

C style: do not redefine typedefs

Location:
uspace
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/search_impl.h

    r445e7c0 r55edba0  
    4040
    4141/** Search state */
    42 typedef struct search {
     42struct search {
    4343        /* Note: This structure is opaque for the user. */
    4444
     
    4949        void *client_data;
    5050        search_ops_t ops;
    51 } search_t;
     51};
    5252
    5353#endif
  • uspace/app/edit/sheet_impl.h

    r445e7c0 r55edba0  
    4040
    4141/** Sheet */
    42 typedef struct sheet {
     42struct sheet {
    4343        /* Note: This structure is opaque for the user. */
    4444
     
    4848
    4949        list_t tags;
    50 } sheet_t;
     50};
    5151
    5252#endif
  • uspace/lib/c/include/bd_srv.h

    r445e7c0 r55edba0  
    5757} bd_srv_t;
    5858
    59 typedef struct bd_ops {
     59struct bd_ops {
    6060        int (*open)(bd_srvs_t *, bd_srv_t *);
    6161        int (*close)(bd_srv_t *);
     
    6565        int (*get_block_size)(bd_srv_t *, size_t *);
    6666        int (*get_num_blocks)(bd_srv_t *, aoff64_t *);
    67 } bd_ops_t;
     67};
    6868
    6969extern void bd_srvs_init(bd_srvs_t *);
  • uspace/lib/c/include/io/con_srv.h

    r445e7c0 r55edba0  
    6666} con_srv_t;
    6767
    68 typedef struct con_ops {
     68struct con_ops {
    6969        int (*open)(con_srvs_t *, con_srv_t *);
    7070        int (*close)(con_srv_t *);
     
    8383        void (*set_cursor_visibility)(con_srv_t *, bool);
    8484        int (*get_event)(con_srv_t *, cons_event_t *);
    85 } con_ops_t;
     85};
    8686
    8787extern void con_srvs_init(con_srvs_t *);
  • uspace/lib/draw/drawctx.h

    r445e7c0 r55edba0  
    4747#include "font.h"
    4848
    49 typedef struct drawctx {
     49struct drawctx {
    5050        link_t link;
    5151        list_t list;
     
    6262        sysarg_t clip_width;
    6363        sysarg_t clip_height;
    64 } drawctx_t;
     64};
    6565
    6666extern void drawctx_init(drawctx_t *, surface_t *);
  • uspace/lib/gui/connection.h

    r445e7c0 r55edba0  
    3838
    3939#include <sys/types.h>
    40 
    41 struct widget;
    42 typedef struct widget widget_t;
     40#include "widget.h"
    4341
    4442typedef sysarg_t signal_t;
  • uspace/lib/gui/widget.h

    r445e7c0 r55edba0  
    5151 * any derived widget structure.
    5252 */
    53 typedef struct widget {
     53struct widget {
    5454        link_t link;
    5555        widget_t *parent; /**< Parent widget of this widget. NULL for root widget. */
     
    116116         * also acquire or release mouse grab. */
    117117        void (*handle_position_event)(widget_t *, pos_event_t);
    118 } widget_t;
     118};
    119119
    120120/*
  • uspace/lib/gui/window.h

    r445e7c0 r55edba0  
    4747#include "widget.h"
    4848
    49 typedef struct window {
     49struct window {
    5050        bool is_main; /**< True for the main window of the application. */
    5151        bool is_decorated; /**< True if the window decorations should be rendered. */
     
    6060        fibril_mutex_t guard; /**< Mutex guarding window surface. */
    6161        surface_t *surface; /**< Window surface shared with compositor. */
    62 } window_t;
     62};
    6363
    6464/**
  • uspace/srv/hid/isdv4_tablet/isdv4.h

    r445e7c0 r55edba0  
    7676} isdv4_source_type_t;
    7777
    78 typedef struct isdv4_event {
     78struct isdv4_event {
    7979        isdv4_event_type_t type;
    8080        isdv4_source_type_t source;
     
    8383        unsigned int pressure;
    8484        unsigned int button;
    85 } isdv4_event_t;
     85};
    8686
    8787extern int isdv4_init(isdv4_state_t *, async_sess_t *, isdv4_event_fn);
Note: See TracChangeset for help on using the changeset viewer.