Changeset 71b00dcc in mainline for uspace/srv/net/tl/tcp/tcp_module.c


Ignore:
Timestamp:
2010-03-07T22:51:38Z (14 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/tl/tcp/tcp_module.c

    rb5cbff4 r71b00dcc  
    6363 *  @see NAME
    6464 */
    65 void    module_print_name( void );
     65void module_print_name(void);
    6666
    6767/** Starts the TCP module.
     
    7272 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    7373 */
    74 int     module_start( async_client_conn_t client_connection );
     74int module_start(async_client_conn_t client_connection);
    7575
    7676/** Processes the TCP message.
     
    8282 *  @returns Other error codes as defined for the tcp_message() function.
    8383 */
    84 int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
     84int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);
    8585
    8686/** TCP module global data.
     
    8888extern tcp_globals_t    tcp_globals;
    8989
    90 void module_print_name( void ){
    91         printf( "%s", NAME );
     90void module_print_name(void){
     91        printf("%s", NAME);
    9292}
    9393
    94 int module_start( async_client_conn_t client_connection ){
     94int module_start(async_client_conn_t client_connection){
    9595        ERROR_DECLARE;
    9696
    97         ipcarg_t        phonehash;
     97        ipcarg_t phonehash;
    9898
    99         async_set_client_connection( client_connection );
    100         tcp_globals.net_phone = net_connect_module( SERVICE_NETWORKING );
    101         ERROR_PROPAGATE( pm_init());
    102         if( ERROR_OCCURRED( tcp_initialize( client_connection ))
    103         || ERROR_OCCURRED( REGISTER_ME( SERVICE_TCP, & phonehash ))){
     99        async_set_client_connection(client_connection);
     100        tcp_globals.net_phone = net_connect_module(SERVICE_NETWORKING);
     101        ERROR_PROPAGATE(pm_init());
     102        if(ERROR_OCCURRED(tcp_initialize(client_connection))
     103                || ERROR_OCCURRED(REGISTER_ME(SERVICE_TCP, &phonehash))){
    104104                pm_destroy();
    105105                return ERROR_CODE;
     
    112112}
    113113
    114 int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
    115         return tcp_message( callid, call, answer, answer_count );
     114int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     115        return tcp_message(callid, call, answer, answer_count);
    116116}
    117117
Note: See TracChangeset for help on using the changeset viewer.