Ignore:
File:
1 edited

Legend:

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

    r6b82009 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(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.
     
    8892 *
    8993 */
    90 extern int nil_received_msg_local(device_id_t device_id, packet_t *packet,
    91     services_t target);
     94extern int nil_received_msg_local(int, device_id_t, packet_t *, services_t);
    9295
    9396/** Message processing function.
     
    9598 * This has to be implemented in user code.
    9699 *
     100 * @param[in]  name   Module name.
    97101 * @param[in]  callid Message identifier.
    98102 * @param[in]  call   Message parameters.
     
    108112 *
    109113 */
    110 extern int nil_module_message(ipc_callid_t callid, ipc_call_t *call,
    111     ipc_call_t *answer, size_t *count);
     114extern int nil_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
     115    size_t *);
    112116
    113 extern int nil_module_start(sysarg_t);
     117extern int nil_module_start(int);
    114118
    115119#endif
Note: See TracChangeset for help on using the changeset viewer.