Changeset 566992e1 in mainline for uspace/lib/c/generic/ns.c
- Timestamp:
- 2015-08-22T05:01:24Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d9e68d0
- Parents:
- 57dea62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ns.c
r57dea62 r566992e1 40 40 #include "private/ns.h" 41 41 42 int service_register(s ysarg_t service)42 int service_register(service_t service) 43 43 { 44 44 async_exch_t *exch = async_exchange_begin(session_ns); … … 119 119 } 120 120 121 async_sess_t *service_connect_blocking_iface_extended(service_t service, 122 iface_t iface, sysarg_t arg3) 123 { 124 async_exch_t *exch = async_exchange_begin(session_ns); 125 async_sess_t *sess = 126 async_connect_me_to_blocking_iface(exch, iface, service, arg3); 127 async_exchange_end(exch); 128 129 if (!sess) 130 return NULL; 131 132 /* 133 * FIXME Ugly hack to work around limitation of implementing 134 * parallel exchanges using multiple connections. Shift out 135 * first argument for non-initial connections. 136 */ 137 async_sess_args_set(sess, iface, arg3, 0); 138 139 return sess; 140 } 141 121 142 async_sess_t *service_connect_blocking(exch_mgmt_t mgmt, service_t service, 122 143 sysarg_t arg3) 123 144 { 124 145 async_exch_t *exch = async_exchange_begin(session_ns); 125 if (!exch)126 return NULL;127 146 async_sess_t *sess = 128 147 async_connect_me_to_blocking(mgmt, exch, 0, service, arg3);
Note:
See TracChangeset
for help on using the changeset viewer.