Changeset 71b00dcc in mainline for uspace/srv/net/il/ip/ip_module.c


Ignore:
Timestamp:
2010-03-07T22:51:38Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (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.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/ip/ip_module.c

    rb5cbff4 r71b00dcc  
    6161 *  @see NAME
    6262 */
    63 void    module_print_name( void );
     63void module_print_name(void);
    6464
    6565/** Starts the IP module.
     
    7070 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    7171 */
    72 int     module_start( async_client_conn_t client_connection );
     72int module_start(async_client_conn_t client_connection);
    7373
    7474/** Processes the IP message.
     
    8080 *  @returns Other error codes as defined for the ip_message() function.
    8181 */
    82 int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
     82int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);
    8383
    8484/** IP module global data.
     
    8686extern ip_globals_t     ip_globals;
    8787
    88 void module_print_name( void ){
    89         printf( "%s", NAME );
     88void module_print_name(void){
     89        printf("%s", NAME);
    9090}
    9191
    92 int module_start( async_client_conn_t client_connection ){
     92int module_start(async_client_conn_t client_connection){
    9393        ERROR_DECLARE;
    9494
    95         ipcarg_t        phonehash;
     95        ipcarg_t phonehash;
    9696
    97         async_set_client_connection( client_connection );
    98         ip_globals.net_phone = net_connect_module( SERVICE_NETWORKING );
    99         ERROR_PROPAGATE( pm_init());
    100         if( ERROR_OCCURRED( ip_initialize( client_connection ))
    101         || ERROR_OCCURRED( REGISTER_ME( SERVICE_IP, & phonehash ))){
     97        async_set_client_connection(client_connection);
     98        ip_globals.net_phone = net_connect_module(SERVICE_NETWORKING);
     99        ERROR_PROPAGATE(pm_init());
     100        if(ERROR_OCCURRED(ip_initialize(client_connection))
     101                || ERROR_OCCURRED(REGISTER_ME(SERVICE_IP, &phonehash))){
    102102                pm_destroy();
    103103                return ERROR_CODE;
     
    110110}
    111111
    112 int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
    113         return ip_message( callid, call, answer, answer_count );
     112int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     113        return ip_message(callid, call, answer, answer_count);
    114114}
    115115
Note: See TracChangeset for help on using the changeset viewer.