Changeset 14f1db0 in mainline for uspace/srv/net/nil/eth/eth_module.c
- Timestamp:
- 2010-04-09T12:54:57Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1caa3c2
- Parents:
- 24ab58b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth_module.c
r24ab58b3 r14f1db0 46 46 #include <net_interface.h> 47 47 #include <packet/packet.h> 48 #include <nil_module.h> 49 #include <nil_standalone.h> 48 #include <nil_local.h> 50 49 51 50 #include "eth.h" … … 59 58 * @returns Other error codes as defined for the REGISTER_ME() macro function. 60 59 */ 61 int nil_module_start(async_client_conn_t client_connection){ 60 int nil_module_start_standalone(async_client_conn_t client_connection) 61 { 62 62 ERROR_DECLARE; 63 63 64 async_set_client_connection(client_connection); 65 int net_phone = net_connect_module(SERVICE_NETWORKING); 66 ERROR_PROPAGATE(pm_init()); 67 64 68 ipcarg_t phonehash; 65 int net_phone; 66 67 async_set_client_connection(client_connection); 68 net_phone = net_connect_module(SERVICE_NETWORKING); 69 ERROR_PROPAGATE(pm_init()); 70 if(ERROR_OCCURRED(nil_initialize(net_phone)) 71 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))){ 69 if (ERROR_OCCURRED(nil_initialize(net_phone)) 70 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))) { 72 71 pm_destroy(); 73 72 return ERROR_CODE; 74 73 } 75 74 76 75 async_manager(); 77 76 78 77 pm_destroy(); 79 78 return EOK; … … 95 94 * 96 95 */ 97 int nil_module_message (const char *name, ipc_callid_t callid, ipc_call_t *call,96 int nil_module_message_standalone(const char *name, ipc_callid_t callid, ipc_call_t *call, 98 97 ipc_call_t *answer, int *answer_count) 99 98 { 100 return nil_message (name, callid, call, answer, answer_count);99 return nil_message_standalone(name, callid, call, answer, answer_count); 101 100 } 102 101
Note:
See TracChangeset
for help on using the changeset viewer.