Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/udp/udp_module.c

    raadf01e r21580dd  
    6161 *  @see NAME
    6262 */
    63 void module_print_name(void);
     63void    module_print_name( void );
    6464
    6565/** Starts the UDP 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 UDP message.
     
    8080 *  @returns Other error codes as defined for the udp_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/** UDP module global data.
     
    8686extern udp_globals_t    udp_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         udp_globals.net_phone = net_connect_module(SERVICE_NETWORKING);
    99         if(udp_globals.net_phone < 0){
     97        async_set_client_connection( client_connection );
     98        udp_globals.net_phone = net_connect_module( SERVICE_NETWORKING );
     99        if( udp_globals.net_phone < 0 ){
    100100                return udp_globals.net_phone;
    101101        }
    102         ERROR_PROPAGATE(pm_init());
    103         if(ERROR_OCCURRED(udp_initialize(client_connection))
    104                 || ERROR_OCCURRED(REGISTER_ME(SERVICE_UDP, &phonehash))){
     102        ERROR_PROPAGATE( pm_init());
     103        if( ERROR_OCCURRED( udp_initialize( client_connection ))
     104        || ERROR_OCCURRED( REGISTER_ME( SERVICE_UDP, & phonehash ))){
    105105                pm_destroy();
    106106                return ERROR_CODE;
     
    113113}
    114114
    115 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    116         return udp_message(callid, call, answer, answer_count);
     115int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
     116        return udp_message( callid, call, answer, answer_count );
    117117}
    118118
Note: See TracChangeset for help on using the changeset viewer.