Changeset 135486d in mainline for uspace/lib/c/include/bd_srv.h
- Timestamp:
- 2012-08-15T14:44:59Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- affaf2e, b546231
- Parents:
- 4802dd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/bd_srv.h
r4802dd7 r135486d 36 36 #define LIBC_BD_SRV_H_ 37 37 38 #include <adt/list.h> 38 39 #include <async.h> 39 40 #include <fibril_synch.h> … … 43 44 typedef struct bd_ops bd_ops_t; 44 45 46 /** Service setup (per sevice) */ 45 47 typedef struct { 46 fibril_mutex_t lock;47 bool connected;48 48 bd_ops_t *ops; 49 void *arg; 49 void *sarg; 50 } bd_srvs_t; 51 52 /** Server structure (per client session) */ 53 typedef struct { 54 bd_srvs_t *srvs; 50 55 async_sess_t *client_sess; 56 void *carg; 51 57 } bd_srv_t; 52 58 53 59 typedef struct bd_ops { 54 int (*open)(bd_srv _t *);60 int (*open)(bd_srvs_t *, bd_srv_t *); 55 61 int (*close)(bd_srv_t *); 56 62 int (*read_blocks)(bd_srv_t *, aoff64_t, size_t, void *, size_t); … … 61 67 } bd_ops_t; 62 68 63 extern void bd_srv _init(bd_srv_t *);69 extern void bd_srvs_init(bd_srvs_t *); 64 70 65 extern int bd_conn(ipc_callid_t, ipc_call_t *, void*);71 extern int bd_conn(ipc_callid_t, ipc_call_t *, bd_srvs_t *); 66 72 67 73 #endif
Note:
See TracChangeset
for help on using the changeset viewer.