Changeset 8b5690f in mainline for uspace/lib/net/include/tl_skel.h


Ignore:
Timestamp:
2011-02-03T05:11:01Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba38f72c
Parents:
22027b6e (diff), 86d7bfa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/include/tl_skel.h

    r22027b6e r8b5690f  
    3131 */
    3232
    33 #ifndef LIBNET_TL_LOCAL_H_
    34 #define LIBNET_TL_LOCAL_H_
     33#ifndef LIBNET_TL_SKEL_H_
     34#define LIBNET_TL_SKEL_H_
    3535
    36 #include <ipc/ipc.h>
     36/** @file
     37 * Transport layer module skeleton.
     38 * The skeleton has to be part of each transport layer module.
     39 */
     40
    3741#include <async.h>
     42#include <fibril_synch.h>
     43#include <ipc/services.h>
    3844
    39 /** Starts the TL module.
     45#include <adt/measured_strings.h>
     46#include <net/device.h>
     47#include <net/packet.h>
     48
     49/** Module initialization.
    4050 *
    41  * Initializes the client connection serving function, initializes the module,
    42  * registers the module service and starts the async manager, processing IPC
    43  * messages in an infinite loop.
     51 * This has to be implemented in user code.
    4452 *
    45  * @param[in] client_connection The client connection processing function. The
    46  *                      module skeleton propagates its own one.
    47  * @return              EOK on successful module termination.
    48  * @return              Other error codes as defined for the module initialize
    49  *                      function.
    50  * @return              Other error codes as defined for the REGISTER_ME() macro
    51  *                      function.
     53 * @param[in] net_phone Networking module phone.
     54 *
     55 * @return EOK on success.
     56 * @return Other error codes as defined for each specific module
     57 *         initialize function.
     58 *
    5259 */
    53 extern int tl_module_message_standalone(ipc_callid_t, ipc_call_t *,
    54     ipc_call_t *, int *);
     60extern int tl_initialize(int net_phone);
    5561
     62/** Per-connection module initialization.
     63 *
     64 * This has to be implemented in user code.
     65 *
     66 */
     67extern void tl_connection(void);
    5668
    57 /** Processes the TL module message.
     69/** Process the transport layer module message.
    5870 *
    59  * @param[in] callid    The message identifier.
    60  * @param[in] call      The message parameters.
    61  * @param[out] answer   The message answer parameters.
    62  * @param[out] answer_count The last parameter for the actual answer in the
    63  *                      answer parameter.
    64  * @return              EOK on success.
    65  * @return              Other error codes as defined for the module's message
    66  *                      standalone function.
     71 * This has to be implemented in user code.
     72 *
     73 * @param[in]  callid Message identifier.
     74 * @param[in]  call   Message parameters.
     75 * @param[out] answer Answer.
     76 * @param[out] count  Number of arguments of the answer.
     77 *
     78 * @return EOK on success.
     79 * @return Other error codes as defined for each specific module.
     80 *
    6781 */
    68 extern int tl_module_start_standalone(async_client_conn_t);
     82extern int tl_message(ipc_callid_t, ipc_call_t *,
     83    ipc_call_t *, size_t *);
     84
     85extern int tl_module_start(int);
    6986
    7087#endif
Note: See TracChangeset for help on using the changeset viewer.