Changeset 2133e02 in mainline for uspace/lib/c/generic/ns.c
- Timestamp:
- 2015-08-18T20:14:05Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a522e5
- Parents:
- 84dc30c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ns.c
r84dc30c r2133e02 43 43 { 44 44 async_exch_t *exch = async_exchange_begin(session_ns); 45 int rc = async_connect_to_me(exch, service, 0, 0, NULL, NULL);45 int rc = async_connect_to_me(exch, 0, service, 0, NULL, NULL); 46 46 async_exchange_end(exch); 47 47 … … 49 49 } 50 50 51 async_sess_t *service_connect (exch_mgmt_t mgmt, service_t service, sysarg_t arg2,52 s ysarg_t arg3)51 async_sess_t *service_connect_iface(exch_mgmt_t mgmt, sysarg_t iface, 52 service_t service, sysarg_t arg3) 53 53 { 54 54 async_exch_t *exch = async_exchange_begin(session_ns); … … 57 57 58 58 async_sess_t *sess = 59 async_connect_me_to(mgmt, exch, service, arg2, arg3);59 async_connect_me_to(mgmt, exch, iface, service, arg3); 60 60 async_exchange_end(exch); 61 61 … … 68 68 * first argument for non-initial connections. 69 69 */ 70 async_sess_args_set(sess, arg2, arg3, 0);70 async_sess_args_set(sess, iface, arg3, 0); 71 71 72 72 return sess; 73 73 } 74 74 75 async_sess_t *service_connect_blocking(exch_mgmt_t mgmt, service_t service, 76 sysarg_t arg2, sysarg_t arg3) 75 async_sess_t *service_connect(exch_mgmt_t mgmt, service_t service, sysarg_t arg3) 77 76 { 78 77 async_exch_t *exch = async_exchange_begin(session_ns); 79 78 if (!exch) 80 79 return NULL; 80 81 81 async_sess_t *sess = 82 async_connect_me_to _blocking(mgmt, exch, service, arg2, arg3);82 async_connect_me_to(mgmt, exch, 0, service, arg3); 83 83 async_exchange_end(exch); 84 84 … … 91 91 * first argument for non-initial connections. 92 92 */ 93 async_sess_args_set(sess, arg2, arg3, 0); 93 async_sess_args_set(sess, 0, arg3, 0); 94 95 return sess; 96 } 97 98 async_sess_t *service_connect_blocking_iface(exch_mgmt_t mgmt, sysarg_t iface, 99 service_t service, sysarg_t arg3) 100 { 101 async_exch_t *exch = async_exchange_begin(session_ns); 102 if (!exch) 103 return NULL; 104 async_sess_t *sess = 105 async_connect_me_to_blocking(mgmt, exch, iface, service, arg3); 106 async_exchange_end(exch); 107 108 if (!sess) 109 return NULL; 110 111 /* 112 * FIXME Ugly hack to work around limitation of implementing 113 * parallel exchanges using multiple connections. Shift out 114 * first argument for non-initial connections. 115 */ 116 async_sess_args_set(sess, iface, arg3, 0); 117 118 return sess; 119 } 120 121 async_sess_t *service_connect_blocking(exch_mgmt_t mgmt, service_t service, 122 sysarg_t arg3) 123 { 124 async_exch_t *exch = async_exchange_begin(session_ns); 125 if (!exch) 126 return NULL; 127 async_sess_t *sess = 128 async_connect_me_to_blocking(mgmt, exch, 0, service, arg3); 129 async_exchange_end(exch); 130 131 if (!sess) 132 return NULL; 133 134 /* 135 * FIXME Ugly hack to work around limitation of implementing 136 * parallel exchanges using multiple connections. Shift out 137 * first argument for non-initial connections. 138 */ 139 async_sess_args_set(sess, 0, arg3, 0); 94 140 95 141 return sess; … … 113 159 /* Connect to the needed service */ 114 160 async_sess_t *sess = 115 service_connect_blocking(EXCHANGE_SERIALIZE, service, 0 , 0);161 service_connect_blocking(EXCHANGE_SERIALIZE, service, 0); 116 162 if (sess != NULL) { 117 163 /* Request callback connection */
Note:
See TracChangeset
for help on using the changeset viewer.