Changeset 5882487 in mainline for uspace/lib/c/include/bd_srv.h
- Timestamp:
- 2012-08-16T09:43:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8cbd39
- Parents:
- b52dd1de (diff), c8444d8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/bd_srv.h
rb52dd1de r5882487 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.