1,5 → 1,5 |
/* |
* Copyright (c) 2008 Lukas Mejdrech |
* Copyright (c) 2009 Lukas Mejdrech |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
27,10 → 27,13 |
*/ |
|
/** @addtogroup net |
* @{ |
* @{ |
*/ |
|
/** @file |
* Starts the networking subsystem. |
* Performs self test if configured so. |
* @see configuration.h |
*/ |
|
#include <async.h> |
45,9 → 48,25 |
#include "../../modules.h" |
#include "../../self_test.h" |
|
/** Networking startup module name. |
*/ |
#define NAME "Networking startup" |
|
/** Module entry point. |
* @param argc The number of command line parameters. Input parameter. |
* @param argv The command line parameters. Input parameter. |
* @returns EOK on success. |
* @returns EINVAL if the networking module cannot be started. |
* @returns Other error codes as defined for the self_test() function. |
* @returns Other error codes as defined for the NET_NET_STARTUP message. |
*/ |
int main( int argc, char * argv[] ); |
|
/** Starts the module. |
* @param fname The module absolute name. Input parameter. |
* @returns The started module task identifier. |
* @returns Other error codes as defined for the task_spawn() function. |
*/ |
task_id_t spawn( const char * fname ); |
|
int main( int argc, char * argv[] ){ |
65,7 → 84,7 |
} |
// start networking |
networking_phone = connect_to_service( SERVICE_NETWORKING ); |
if( ERROR_OCCURED( ipc_call_sync_0_0( networking_phone, NET_NET_STARTUP ))){ |
if( ERROR_OCCURRED( ipc_call_sync_0_0( networking_phone, NET_NET_STARTUP ))){ |
printf( "\n" NAME " - ERROR %d\n", ERROR_CODE ); |
return ERROR_CODE; |
} |