Rev 3685 | Rev 3886 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3685 | Rev 3846 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | 32 | ||
33 | /** |
33 | /** |
34 | * @file |
34 | * @file |
35 | */ |
35 | */ |
36 | 36 | ||
37 | #ifndef __NET_TCP_INTERNALS_H__ |
37 | #ifndef __NET_TCP_H__ |
38 | #define __NET_TCP_INTERNALS_H__ |
38 | #define __NET_TCP_H__ |
39 | - | ||
40 | #ifdef NETWORKING_modular |
- | |
41 | #define ip_message( ... ) ipc_call_sync_3_3( tcp_globals.ip_phone, __VA_ARGS__ ) |
- | |
42 | #else |
- | |
43 | #ifdef NETWORKING_module |
- | |
44 | - | ||
45 | #include "../ip/ip.h" |
- | |
46 | - | ||
47 | #endif |
- | |
48 | #endif |
- | |
49 | 39 | ||
50 | typedef struct tcp_globals tcp_globals_t; |
40 | typedef struct tcp_globals tcp_globals_t; |
51 | 41 | ||
52 | struct tcp_globals{ |
42 | struct tcp_globals{ |
53 | int ip_phone; |
43 | int ip_phone; |
54 | int networking_phone; |
44 | int networking_phone; |
55 | }; |
45 | }; |
56 | 46 | ||
57 | int tcp_initialize( void ); |
- | |
58 | int tcp_call( ipc_callid_t callid ); |
- | |
59 | int tcp_message( ipc_callid_t callid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, ipcarg_t * result1, ipcarg_t * result2, ipcarg_t * result3 ); |
- | |
60 | - | ||
61 | #endif |
47 | #endif |
62 | 48 | ||
63 | /** @} |
49 | /** @} |
64 | */ |
50 | */ |
65 | 51 |