Ignore:
File:
1 edited

Legend:

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

    rffa2c8ef r609243f4  
    3939#define LIBNET_NIL_SKEL_H_
    4040
    41 #include <async.h>
    42 #include <fibril_synch.h>
    4341#include <ipc/services.h>
    44 
    4542#include <adt/measured_strings.h>
    4643#include <net/device.h>
    4744#include <net/packet.h>
     45#include <async.h>
    4846
    4947/** Module initialization.
     
    5149 * This has to be implemented in user code.
    5250 *
    53  * @param[in] net_phone Networking module phone.
     51 * @param[in] sess Networking module session.
    5452 *
    5553 * @return EOK on success.
     
    5856 *
    5957 */
    60 extern int nil_initialize(int net_phone);
     58extern int nil_initialize(async_sess_t *sess);
    6159
    6260/** Notify the network interface layer about the device state change.
     
    6462 * This has to be implemented in user code.
    6563 *
    66  * @param[in] nil_phone Network interface layer phone.
    6764 * @param[in] device_id Device identifier.
    6865 * @param[in] state     New device state.
     
    7370 *
    7471 */
    75 extern int nil_device_state_msg_local(int, device_id_t, int);
     72extern int nil_device_state_msg_local(nic_device_id_t device_id, sysarg_t state);
    7673
    7774/** Pass the packet queue to the network interface layer.
     
    8279 * This has to be implemented in user code.
    8380 *
    84  * @param[in] nil_phone Network interface layer phone.
    8581 * @param[in] device_id Source device identifier.
    8682 * @param[in] packet    Received packet or the received packet queue.
    87  * @param[in] target    Target service. Ignored parameter.
    8883 *
    8984 * @return EOK on success.
     
    9287 *
    9388 */
    94 extern int nil_received_msg_local(int, device_id_t, packet_t *, services_t);
     89extern int nil_received_msg_local(nic_device_id_t device_id, packet_t *packet);
    9590
    9691/** Message processing function.
     
    9893 * This has to be implemented in user code.
    9994 *
    100  * @param[in]  name   Module name.
    10195 * @param[in]  callid Message identifier.
    10296 * @param[in]  call   Message parameters.
     
    112106 *
    113107 */
    114 extern int nil_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
    115     size_t *);
     108extern int nil_module_message(ipc_callid_t callid, ipc_call_t *call,
     109    ipc_call_t *answer, size_t *count);
    116110
    117 extern int nil_module_start(int);
     111extern int nil_module_start(sysarg_t);
    118112
    119113#endif
Note: See TracChangeset for help on using the changeset viewer.