Changeset 4ac11ff in mainline


Ignore:
Timestamp:
2020-11-02T15:42:15Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa01c05
Parents:
c6f00b40
git-author:
Jiri Svoboda <jiri@…> (2020-11-02 18:42:44)
git-committer:
Jiri Svoboda <jiri@…> (2020-11-02 15:42:15)
Message:

Make display_t and display_window_t declaration opaque

Location:
uspace/lib/display
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/types/display.h

    rc6f00b40 r4ac11ff  
    4646#define DISPLAY_DEFAULT NULL
    4747
     48struct display;
     49struct display_window;
     50
    4851/** Display server session */
    49 typedef struct {
    50         /** Session with display server */
    51         async_sess_t *sess;
    52         /** Synchronize access to display object */
    53         fibril_mutex_t lock;
    54         /** @c true if callback handler terminated */
    55         bool cb_done;
    56         /** Signalled when cb_done or ev_pending is changed */
    57         fibril_condvar_t cv;
    58         /** Windows (of display_window_t) */
    59         list_t windows;
    60 } display_t;
     52typedef struct display display_t;
     53
     54/** Display window */
     55typedef struct display_window display_window_t;
    6156
    6257/** Display window callbacks */
     
    7671} display_wnd_cb_t;
    7772
    78 /** Display window */
    79 typedef struct {
    80         /** Display associated with the window */
    81         display_t *display;
    82         /** Link to @c display->windows */
    83         link_t lwindows;
    84         /** Window ID */
    85         sysarg_t id;
    86         /** Callback functions */
    87         display_wnd_cb_t *cb;
    88         /** Argument to callback functions */
    89         void *cb_arg;
    90 } display_window_t;
    91 
    9273#endif
    9374
  • uspace/lib/display/src/display.c

    rc6f00b40 r4ac11ff  
    3838#include <mem.h>
    3939#include <stdlib.h>
     40#include "../private/display.h"
    4041#include "../private/params.h"
    4142
  • uspace/lib/display/test/display.c

    rc6f00b40 r4ac11ff  
    3838#include <loc.h>
    3939#include <pcut/pcut.h>
     40#include "../private/display.h"
    4041
    4142PCUT_INIT;
Note: See TracChangeset for help on using the changeset viewer.