Changeset 8ff0bd2 in mainline for uspace/lib/net/nil/nil_skel.c
- Timestamp:
- 2011-09-04T11:30:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03bc76a
- Parents:
- d2c67e7 (diff), deac215e (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/nil/nil_skel.c
rd2c67e7 r8ff0bd2 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h> 40 41 #include <nil_skel.h> 41 42 #include <net_interface.h> 42 43 #include <net/modules.h> 43 44 // FIXME: remove this header45 #include <kernel/ipc/ipc_methods.h>46 44 47 45 /** Default thread for new connections. … … 51 49 * 52 50 */ 53 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall) 51 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall, 52 void *arg) 54 53 { 55 54 /* … … 98 97 * @return Other error codes as defined for the nil_initialize() 99 98 * function. 100 * @return Other error codes as defined for the REGISTER_ME() macro101 * function.102 99 * 103 100 */ 104 int nil_module_start( int service)101 int nil_module_start(sysarg_t service) 105 102 { 106 103 async_set_client_connection(nil_client_connection); 107 int net_phone= net_connect_module();108 if ( net_phone < 0)109 return net_phone;104 async_sess_t *sess = net_connect_module(); 105 if (!sess) 106 return ENOENT; 110 107 111 108 int rc = pm_init(); … … 113 110 return rc; 114 111 115 rc = nil_initialize( net_phone);112 rc = nil_initialize(sess); 116 113 if (rc != EOK) 117 114 goto out; 118 115 119 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);116 rc = service_register(service); 120 117 if (rc != EOK) 121 118 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.