Changeset 89c57b6 in mainline for uspace/lib/net/include/nil_skel.h


Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (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/nil_skel.h

    rcefb126 r89c57b6  
    2727 */
    2828
    29 /** @addtogroup net_nil
    30  *  @{
     29/** @addtogroup libnet
     30 * @{
    3131 */
    3232
     
    3636 */
    3737
    38 #ifndef __NET_NIL_LOCAL_H__
    39 #define __NET_NIL_LOCAL_H__
     38#ifndef LIBNET_NIL_SKEL_H_
     39#define LIBNET_NIL_SKEL_H_
    4040
    41 #include <ipc/ipc.h>
     41#include <async.h>
     42#include <fibril_synch.h>
     43#include <ipc/services.h>
     44
     45#include <adt/measured_strings.h>
     46#include <net/device.h>
     47#include <net/packet.h>
    4248
    4349/** Module initialization.
    4450 *
    45  * Is called by the module_start() function.
     51 * This has to be implemented in user code.
    4652 *
    47  * @param[in] net_phone The networking moduel phone.
     53 * @param[in] net_phone Networking module phone.
    4854 *
    4955 * @return EOK on success.
    50  * @return Other error codes as defined for each specific module initialize function.
     56 * @return Other error codes as defined for each specific module
     57 *         initialize function.
    5158 *
    5259 */
    53 extern int nil_initialize(int);
     60extern int nil_initialize(int net_phone);
    5461
     62/** Notify the network interface layer about the device state change.
     63 *
     64 * This has to be implemented in user code.
     65 *
     66 * @param[in] nil_phone Network interface layer phone.
     67 * @param[in] device_id Device identifier.
     68 * @param[in] state     New device state.
     69 *
     70 * @return EOK on success.
     71 * @return Other error codes as defined for each specific module
     72 *         device state function.
     73 *
     74 */
    5575extern int nil_device_state_msg_local(int, device_id_t, int);
    56 extern int nil_received_msg_local(int, device_id_t, packet_t, services_t);
     76
     77/** Pass the packet queue to the network interface layer.
     78 *
     79 * Process and redistribute the received packet queue to the registered
     80 * upper layers.
     81 *
     82 * This has to be implemented in user code.
     83 *
     84 * @param[in] nil_phone Network interface layer phone.
     85 * @param[in] device_id Source device identifier.
     86 * @param[in] packet    Received packet or the received packet queue.
     87 * @param[in] target    Target service. Ignored parameter.
     88 *
     89 * @return EOK on success.
     90 * @return Other error codes as defined for each specific module
     91 *         received function.
     92 *
     93 */
     94extern int nil_received_msg_local(int, device_id_t, packet_t *, services_t);
    5795
    5896/** Message processing function.
    5997 *
    60  * @param[in]  name         Module name.
    61  * @param[in]  callid       The message identifier.
    62  * @param[in]  call         The message parameters.
    63  * @param[out] answer       The message answer parameters.
    64  * @param[out] answer_count The last parameter for the actual answer
    65  *                          in the answer parameter.
     98 * This has to be implemented in user code.
     99 *
     100 * @param[in]  name   Module name.
     101 * @param[in]  callid Message identifier.
     102 * @param[in]  call   Message parameters.
     103 * @param[out] answer Message answer parameters.
     104 * @param[out] count  Message answer arguments.
    66105 *
    67106 * @return EOK on success.
    68107 * @return ENOTSUP if the message is not known.
    69  * @return Other error codes as defined for each specific
    70  *         module message function.
     108 * @return Other error codes as defined for each specific module
     109 *         message function.
    71110 *
    72  * @see nil_interface.h
    73111 * @see IS_NET_NIL_MESSAGE()
    74112 *
    75113 */
    76 extern int nil_message_standalone(const char *, ipc_callid_t, ipc_call_t *, ipc_call_t *,
    77     int *);
     114extern int nil_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
     115    size_t *);
    78116
    79 extern int nil_module_message_standalone(const char *, ipc_callid_t,
    80     ipc_call_t *, ipc_call_t *, int *);
    81 extern int nil_module_start_standalone(async_client_conn_t);
     117extern int nil_module_start(int);
    82118
    83119#endif
Note: See TracChangeset for help on using the changeset viewer.