Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/bd_srv.h

    r135486d r4802dd7  
    3636#define LIBC_BD_SRV_H_
    3737
    38 #include <adt/list.h>
    3938#include <async.h>
    4039#include <fibril_synch.h>
     
    4443typedef struct bd_ops bd_ops_t;
    4544
    46 /** Service setup (per sevice) */
    4745typedef struct {
     46        fibril_mutex_t lock;
     47        bool connected;
    4848        bd_ops_t *ops;
    49         void *sarg;
    50 } bd_srvs_t;
    51 
    52 /** Server structure (per client session) */
    53 typedef struct {
    54         bd_srvs_t *srvs;
     49        void *arg;
    5550        async_sess_t *client_sess;
    56         void *carg;
    5751} bd_srv_t;
    5852
    5953typedef struct bd_ops {
    60         int (*open)(bd_srvs_t *, bd_srv_t *);
     54        int (*open)(bd_srv_t *);
    6155        int (*close)(bd_srv_t *);
    6256        int (*read_blocks)(bd_srv_t *, aoff64_t, size_t, void *, size_t);
     
    6761} bd_ops_t;
    6862
    69 extern void bd_srvs_init(bd_srvs_t *);
     63extern void bd_srv_init(bd_srv_t *);
    7064
    71 extern int bd_conn(ipc_callid_t, ipc_call_t *, bd_srvs_t *);
     65extern int bd_conn(ipc_callid_t, ipc_call_t *, void *);
    7266
    7367#endif
Note: See TracChangeset for help on using the changeset viewer.