Changeset 1916d1f in mainline for uspace/lib/net/include/nil_skel.h


Ignore:
Timestamp:
2011-07-12T13:41:26Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50fc490
Parents:
11809eab (diff), 6817eba (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 libposix changes.

File:
1 edited

Legend:

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

    r11809eab r1916d1f  
    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(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.
     
    9288 *
    9389 */
    94 extern int nil_received_msg_local(int, device_id_t, packet_t *, services_t);
     90extern int nil_received_msg_local(device_id_t device_id, packet_t *packet,
     91    services_t target);
    9592
    9693/** Message processing function.
     
    9895 * This has to be implemented in user code.
    9996 *
    100  * @param[in]  name   Module name.
    10197 * @param[in]  callid Message identifier.
    10298 * @param[in]  call   Message parameters.
     
    112108 *
    113109 */
    114 extern int nil_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
    115     size_t *);
     110extern int nil_module_message(ipc_callid_t callid, ipc_call_t *call,
     111    ipc_call_t *answer, size_t *count);
    116112
    117 extern int nil_module_start(int);
     113extern int nil_module_start(sysarg_t);
    118114
    119115#endif
Note: See TracChangeset for help on using the changeset viewer.