Changes in uspace/srv/net/nil/nildummy/nildummy_module.c [21580dd:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy_module.c
r21580dd raadf01e 59 59 /** Prints the module name. 60 60 */ 61 void module_print_name( void);61 void module_print_name(void); 62 62 63 63 /** Starts the dummy nil module. … … 69 69 * @returns Other error codes as defined for the REGISTER_ME() macro function. 70 70 */ 71 int module_start( async_client_conn_t client_connection);71 int module_start(async_client_conn_t client_connection); 72 72 73 73 /** Passes the parameters to the module specific nil_message() function. … … 80 80 * @returns Other error codes as defined for each specific module message function. 81 81 */ 82 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);82 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 83 83 84 void module_print_name( void){85 printf( "%s", NAME);84 void module_print_name(void){ 85 printf("%s", NAME); 86 86 } 87 87 88 int module_start( async_client_conn_t client_connection){88 int module_start(async_client_conn_t client_connection){ 89 89 ERROR_DECLARE; 90 90 91 ipcarg_t 92 int 91 ipcarg_t phonehash; 92 int net_phone; 93 93 94 async_set_client_connection( client_connection);95 net_phone = net_connect_module( SERVICE_NETWORKING);96 ERROR_PROPAGATE( 97 if( ERROR_OCCURRED( nil_initialize( net_phone))98 || ERROR_OCCURRED( REGISTER_ME( SERVICE_NILDUMMY, & phonehash))){94 async_set_client_connection(client_connection); 95 net_phone = net_connect_module(SERVICE_NETWORKING); 96 ERROR_PROPAGATE(pm_init()); 97 if(ERROR_OCCURRED(nil_initialize(net_phone)) 98 || ERROR_OCCURRED(REGISTER_ME(SERVICE_NILDUMMY, &phonehash))){ 99 99 pm_destroy(); 100 100 return ERROR_CODE; … … 107 107 } 108 108 109 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){110 return nil_message( callid, call, answer, answer_count);109 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 110 return nil_message(callid, call, answer, answer_count); 111 111 } 112 112
Note:
See TracChangeset
for help on using the changeset viewer.