Ignore:
File:
1 edited

Legend:

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

    r609243f4 rffa2c8ef  
    3939#define LIBNET_NIL_SKEL_H_
    4040
     41#include <async.h>
     42#include <fibril_synch.h>
    4143#include <ipc/services.h>
     44
    4245#include <adt/measured_strings.h>
    4346#include <net/device.h>
    4447#include <net/packet.h>
    45 #include <async.h>
    4648
    4749/** Module initialization.
     
    4951 * This has to be implemented in user code.
    5052 *
    51  * @param[in] sess Networking module session.
     53 * @param[in] net_phone Networking module phone.
    5254 *
    5355 * @return EOK on success.
     
    5658 *
    5759 */
    58 extern int nil_initialize(async_sess_t *sess);
     60extern int nil_initialize(int net_phone);
    5961
    6062/** Notify the network interface layer about the device state change.
     
    6264 * This has to be implemented in user code.
    6365 *
     66 * @param[in] nil_phone Network interface layer phone.
    6467 * @param[in] device_id Device identifier.
    6568 * @param[in] state     New device state.
     
    7073 *
    7174 */
    72 extern int nil_device_state_msg_local(nic_device_id_t device_id, sysarg_t state);
     75extern int nil_device_state_msg_local(int, device_id_t, int);
    7376
    7477/** Pass the packet queue to the network interface layer.
     
    7982 * This has to be implemented in user code.
    8083 *
     84 * @param[in] nil_phone Network interface layer phone.
    8185 * @param[in] device_id Source device identifier.
    8286 * @param[in] packet    Received packet or the received packet queue.
     87 * @param[in] target    Target service. Ignored parameter.
    8388 *
    8489 * @return EOK on success.
     
    8792 *
    8893 */
    89 extern int nil_received_msg_local(nic_device_id_t device_id, packet_t *packet);
     94extern int nil_received_msg_local(int, device_id_t, packet_t *, services_t);
    9095
    9196/** Message processing function.
     
    9398 * This has to be implemented in user code.
    9499 *
     100 * @param[in]  name   Module name.
    95101 * @param[in]  callid Message identifier.
    96102 * @param[in]  call   Message parameters.
     
    106112 *
    107113 */
    108 extern int nil_module_message(ipc_callid_t callid, ipc_call_t *call,
    109     ipc_call_t *answer, size_t *count);
     114extern int nil_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
     115    size_t *);
    110116
    111 extern int nil_module_start(sysarg_t);
     117extern int nil_module_start(int);
    112118
    113119#endif
Note: See TracChangeset for help on using the changeset viewer.