Changes in uspace/lib/net/include/socket_core.h [137f8aa:aaa3f33a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/socket_core.h
r137f8aa raaa3f33a 66 66 typedef struct socket_core socket_core_t; 67 67 68 /** Type definition of the socket core pointer.69 * @see socket_core70 */71 typedef socket_core_t *socket_core_ref;72 73 68 /** Type definition of the socket port. 74 69 * @see socket_port 75 70 */ 76 71 typedef struct socket_port socket_port_t; 77 78 /** Type definition of the socket port pointer.79 * @see socket_port80 */81 typedef socket_port_t *socket_port_ref;82 72 83 73 /** Socket core. */ … … 111 101 * the other use the remote addresses. 112 102 */ 113 GENERIC_CHAR_MAP_DECLARE(socket_port_map, socket_core_ ref);103 GENERIC_CHAR_MAP_DECLARE(socket_port_map, socket_core_t *); 114 104 115 105 /** Ports map. … … 118 108 INT_MAP_DECLARE(socket_ports, socket_port_t); 119 109 120 extern void socket_cores_release(int, socket_cores_ ref, socket_ports_ref,121 void (*)(socket_core_ ref));122 extern int socket_bind(socket_cores_ ref, socket_ports_ref, int, void *, size_t,110 extern void socket_cores_release(int, socket_cores_t *, socket_ports_t *, 111 void (*)(socket_core_t *)); 112 extern int socket_bind(socket_cores_t *, socket_ports_t *, int, void *, size_t, 123 113 int, int, int); 124 extern int socket_bind_free_port(socket_ports_ ref, socket_core_ref, int, int,114 extern int socket_bind_free_port(socket_ports_t *, socket_core_t *, int, int, 125 115 int); 126 extern int socket_create(socket_cores_ ref, int, void *, int *);127 extern int socket_destroy(int, int, socket_cores_ ref, socket_ports_ref,128 void (*)(socket_core_ ref));116 extern int socket_create(socket_cores_t *, int, void *, int *); 117 extern int socket_destroy(int, int, socket_cores_t *, socket_ports_t *, 118 void (*)(socket_core_t *)); 129 119 extern int socket_reply_packets(packet_t, size_t *); 130 extern socket_core_ ref socket_port_find(socket_ports_ref, int, const char *,120 extern socket_core_t *socket_port_find(socket_ports_t *, int, const char *, 131 121 size_t); 132 extern void socket_port_release(socket_ports_ ref, socket_core_ref);133 extern int socket_port_add(socket_ports_ ref, int, socket_core_ref,122 extern void socket_port_release(socket_ports_t *, socket_core_t *); 123 extern int socket_port_add(socket_ports_t *, int, socket_core_t *, 134 124 const char *, size_t); 135 125
Note:
See TracChangeset
for help on using the changeset viewer.