Rev 3886 | Rev 3914 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3886 | Rev 3912 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | * Copyright (c) 2008 Lukas Mejdrech |
2 | * Copyright (c) 2009 Lukas Mejdrech |
| 3 | * All rights reserved. |
3 | * All rights reserved. |
| 4 | * |
4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
7 | * are met: |
| Line 29... | Line 29... | ||
| 29 | /** @addtogroup arp |
29 | /** @addtogroup arp |
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | 32 | ||
| 33 | /** @file |
33 | /** @file |
| - | 34 | * ARP standalone module implementation. |
|
| - | 35 | * Contains skeleton module functions mapping. |
|
| - | 36 | * The functions are used by the module skeleton as module specific entry points. |
|
| - | 37 | * @see module.c |
|
| 34 | */ |
38 | */ |
| 35 | 39 | ||
| 36 | #include <async.h> |
40 | #include <async.h> |
| 37 | #include <stdio.h> |
41 | #include <stdio.h> |
| 38 | 42 | ||
| Line 43... | Line 47... | ||
| 43 | #include "../../modules.h" |
47 | #include "../../modules.h" |
| 44 | 48 | ||
| 45 | #include "arp.h" |
49 | #include "arp.h" |
| 46 | #include "arp_module.h" |
50 | #include "arp_module.h" |
| 47 | 51 | ||
| - | 52 | /** ARP module name. |
|
| - | 53 | */ |
|
| 48 | #define NAME "ARP protocol" |
54 | #define NAME "ARP protocol" |
| 49 | 55 | ||
| - | 56 | /** Prints the module name. |
|
| - | 57 | * @see NAME |
|
| - | 58 | */ |
|
| 50 | void arp_print_name( void ); |
59 | void arp_print_name( void ); |
| 51 | int arp_start_module( async_client_conn_t client_connection ); |
- | |
| 52 | 60 | ||
| - | 61 | /** Starts the ARP module. |
|
| - | 62 | * Initializes the client connection serving function, initializes the module, registers the module service and starts the async manager, processing IPC messages in an infinite loop. |
|
| - | 63 | * @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter. |
|
| - | 64 | * @returns EOK on successful module termination. |
|
| - | 65 | * @returns Other error codes as defined for the arp_initialize() function. |
|
| - | 66 | * @returns Other error codes as defined for the REGISTER_ME() macro function. |
|
| - | 67 | */ |
|
| - | 68 | int arp_start_module( async_client_conn_t client_connection ); |
|
| - | 69 | ||
| - | 70 | /** ARP module global data. |
|
| - | 71 | */ |
|
| 53 | extern arp_globals_t arp_globals; |
72 | extern arp_globals_t arp_globals; |
| 54 | 73 | ||
| 55 | void arp_print_name( void ){ |
74 | void arp_print_name( void ){ |
| 56 | printf( NAME ); |
75 | printf( NAME ); |
| 57 | } |
76 | } |