Changeset 849ed54 in mainline for uspace/srv/net/netstart/netstart.c


Ignore:
Timestamp:
2010-03-30T18:39:04Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7553689
Parents:
7d6fe4db
Message:

Networking work:
Split the networking stack into end-user library (libsocket) and two helper libraries (libnet and libnetif).
Don't use over-the-hand compiling and linking, but rather separation of conserns.
There might be still some issues and the non-modular networking architecture is currently broken, but this will be fixed soon.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netstart/netstart.c

    r7d6fe4db r849ed54  
    4444#include <ipc/services.h>
    4545
    46 #include "../../err.h"
    47 #include "../../modules.h"
    48 #include "../../self_test.h"
    49 
    50 #include "../net_messages.h"
     46#include <net_err.h>
     47#include <net_modules.h>
     48#include <net_net_messages.h>
     49#include "self_test.h"
    5150
    5251/** Networking startup module name.
    5352 */
    5453#define NAME    "Networking startup"
     54
     55/** Starts the module.
     56 *  @param[in] fname The module absolute name.
     57 *  @returns The started module task identifier.
     58 *  @returns Other error codes as defined for the task_spawn() function.
     59 */
     60static task_id_t spawn(const char * fname){
     61        const char * argv[2];
     62        task_id_t res;
     63
     64        argv[0] = fname;
     65        argv[1] = NULL;
     66        res = task_spawn(fname, argv);
     67       
     68        return res;
     69}
    5570
    5671/** Module entry point.
     
    6277 *  @returns Other error codes as defined for the NET_NET_STARTUP message.
    6378 */
    64 int main(int argc, char * argv[]);
    65 
    66 /** Starts the module.
    67  *  @param[in] fname The module absolute name.
    68  *  @returns The started module task identifier.
    69  *  @returns Other error codes as defined for the task_spawn() function.
    70  */
    71 task_id_t spawn(const char * fname);
    72 
    7379int main(int argc, char * argv[]){
    7480        ERROR_DECLARE;
     
    101107}
    102108
    103 task_id_t spawn(const char * fname){
    104         const char * argv[2];
    105         task_id_t res;
    106 
    107         argv[0] = fname;
    108         argv[1] = NULL;
    109         res = task_spawn(fname, argv);
    110        
    111         return res;
    112 }
    113 
    114109/** @}
    115110 */
Note: See TracChangeset for help on using the changeset viewer.