Changeset 14f1db0 in mainline for uspace/srv/net/tl/tcp/tcp_module.c


Ignore:
Timestamp:
2010-04-09T12:54:57Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1caa3c2
Parents:
24ab58b3
Message:

networking overhaul:

  • separation of conserns
  • removal of (almost all) overlaping symbols, libnetif is not needed anymore
  • again, it is possible to build the networking in multiple architecture configurations (however, currently only the bundling netif and nil layers is supported, more to come)
  • code style updates and fixes (still a huge amount of work to do)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/tcp_module.c

    r24ab58b3 r14f1db0  
    4949#include <ip_protocols.h>
    5050#include <ip_interface.h>
    51 #include <tl_standalone.h>
     51#include <tl_local.h>
    5252
    5353#include "tcp.h"
     
    6565 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    6666 */
    67 int tl_module_start(async_client_conn_t client_connection){
     67int tl_module_start_standalone(async_client_conn_t client_connection)
     68{
    6869        ERROR_DECLARE;
    69 
    70         ipcarg_t phonehash;
    71 
     70       
    7271        async_set_client_connection(client_connection);
    7372        tcp_globals.net_phone = net_connect_module(SERVICE_NETWORKING);
    7473        ERROR_PROPAGATE(pm_init());
    75         if(ERROR_OCCURRED(tcp_initialize(client_connection))
    76                 || ERROR_OCCURRED(REGISTER_ME(SERVICE_TCP, &phonehash))){
     74       
     75        ipcarg_t phonehash;
     76        if (ERROR_OCCURRED(tcp_initialize(client_connection))
     77            || ERROR_OCCURRED(REGISTER_ME(SERVICE_TCP, &phonehash))) {
    7778                pm_destroy();
    7879                return ERROR_CODE;
    7980        }
    80 
     81       
    8182        async_manager();
    82 
     83       
    8384        pm_destroy();
    8485        return EOK;
     
    9394 *  @returns Other error codes as defined for the tcp_message() function.
    9495 */
    95 int tl_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    96         return tcp_message(callid, call, answer, answer_count);
     96int tl_module_message_standalone(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     97        return tcp_message_standalone(callid, call, answer, answer_count);
    9798}
    9899
Note: See TracChangeset for help on using the changeset viewer.