Changes in uspace/lib/c/include/bd_srv.h [135486d:4802dd7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/bd_srv.h
r135486d r4802dd7 36 36 #define LIBC_BD_SRV_H_ 37 37 38 #include <adt/list.h>39 38 #include <async.h> 40 39 #include <fibril_synch.h> … … 44 43 typedef struct bd_ops bd_ops_t; 45 44 46 /** Service setup (per sevice) */47 45 typedef struct { 46 fibril_mutex_t lock; 47 bool connected; 48 48 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; 55 50 async_sess_t *client_sess; 56 void *carg;57 51 } bd_srv_t; 58 52 59 53 typedef struct bd_ops { 60 int (*open)(bd_srv s_t *, bd_srv_t *);54 int (*open)(bd_srv_t *); 61 55 int (*close)(bd_srv_t *); 62 56 int (*read_blocks)(bd_srv_t *, aoff64_t, size_t, void *, size_t); … … 67 61 } bd_ops_t; 68 62 69 extern void bd_srv s_init(bd_srvs_t *);63 extern void bd_srv_init(bd_srv_t *); 70 64 71 extern int bd_conn(ipc_callid_t, ipc_call_t *, bd_srvs_t*);65 extern int bd_conn(ipc_callid_t, ipc_call_t *, void *); 72 66 73 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.