Changeset a33f0a6 in mainline for uspace/lib/net/il/il_skel.c
- Timestamp:
- 2011-08-03T17:34:57Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1940326
- Parents:
- 52a79081 (diff), 3fab770 (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/net/il/il_skel.c
r52a79081 ra33f0a6 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h> 40 41 #include <il_skel.h> 41 42 #include <net_interface.h> … … 48 49 * 49 50 */ 50 static void il_client_connection(ipc_callid_t iid, ipc_call_t *icall) 51 static void il_client_connection(ipc_callid_t iid, ipc_call_t *icall, 52 void *arg) 51 53 { 52 54 /* … … 75 77 * result. 76 78 */ 77 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 78 (res == EHANGUP)) 79 if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP)) 79 80 return; 80 81 … … 96 97 * @return Other error codes as defined for the il_initialize() 97 98 * function. 98 * @return Other error codes as defined for the REGISTER_ME() macro99 * function.100 99 * 101 100 */ 102 int il_module_start( int service)101 int il_module_start(sysarg_t service) 103 102 { 104 103 async_set_client_connection(il_client_connection); 105 int net_phone= net_connect_module();106 if ( net_phone < 0)107 return net_phone;104 async_sess_t *sess = net_connect_module(); 105 if (!sess) 106 return ENOENT; 108 107 109 108 int rc = pm_init(); … … 111 110 return rc; 112 111 113 rc = il_initialize( net_phone);112 rc = il_initialize(sess); 114 113 if (rc != EOK) 115 114 goto out; 116 115 117 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);116 rc = service_register(service); 118 117 if (rc != EOK) 119 118 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.