Changeset 59ecd4a in mainline for uspace/lib/net/include/netif.h
- Timestamp:
- 2010-04-04T21:41:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5db9084
- Parents:
- 36a75a2 (diff), ee7e82a9 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/netif.h
r36a75a2 r59ecd4a 45 45 #include <ipc/ipc.h> 46 46 47 #include "../err.h" 48 49 #include "../include/device.h" 50 51 #include "../structures/packet/packet.h" 47 #include <net_err.h> 48 #include <net_device.h> 49 #include <packet/packet.h> 52 50 53 51 /** Network interface module skeleton global data. … … 102 100 }; 103 101 102 extern netif_globals_t netif_globals; 103 104 104 /** Finds the device specific data. 105 105 * @param[in] device_id The device identifier. … … 109 109 * @returns EPERM if the device is not initialized. 110 110 */ 111 int find_device(device_id_t device_id, device_ref * device);111 extern int find_device(device_id_t device_id, device_ref * device); 112 112 113 113 /** Clears the usage statistics. 114 114 * @param[in] stats The usage statistics. 115 115 */ 116 void null_device_stats(device_stats_ref stats);116 extern void null_device_stats(device_stats_ref stats); 117 117 118 118 // prepared for future optimalizations … … 120 120 * @param[in] packet_id The packet identifier. 121 121 */ 122 void netif_pq_release(packet_id_t packet_id);122 extern void netif_pq_release(packet_id_t packet_id); 123 123 124 124 /** Allocates new packet to handle the given content size. … … 127 127 * @returns NULL if there is an error. 128 128 */ 129 packet_t netif_packet_get_1(size_t content);129 extern packet_t netif_packet_get_1(size_t content); 130 130 131 131 /** Processes the netif module messages. … … 140 140 * @see IS_NET_NETIF_MESSAGE() 141 141 */ 142 int netif_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);142 extern int netif_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 143 143 144 144 /** Initializes the netif module. 145 145 * The function has to be defined in each module. 146 * @param[in] client_connection The client connection functio to be registered.146 * @param[in] net_client_connection The client connection functio to be registered. 147 147 * @returns EOK on success. 148 148 * @returns Other error codes as defined for each specific module message function. 149 149 */ 150 int netif_init_module(async_client_conn_t client_connection);150 extern int netif_init_module(async_client_conn_t client_connection); 151 151 152 152 /** Starts and maintains the netif module until terminated. 153 153 * @returns EOK after the module is terminated. 154 154 */ 155 int netif_run_module(void);155 extern int netif_run_module(void); 156 156 157 157 #endif
Note:
See TracChangeset
for help on using the changeset viewer.