comparison src/auth/auth-master-listener.h @ 4451:1a35d53c18fc HEAD

Array API redesigned to work using unions. It now provides type safety without having to enable DEBUG, as long as the compiler supports typeof(). Its API changed a bit. It now allows directly accessing the array contents, although that's not necessarily recommended. Changed existing array usage to be type safe in a bit more places. Removed array_t completely. Also did s/modifyable/modifiable/.
author Timo Sirainen <tss@iki.fi>
date Wed, 28 Jun 2006 16:10:25 +0300
parents f97b4052dd81
children e4eb71ae8e96
comparison
equal deleted inserted replaced
4450:14b10f7ea70e 4451:1a35d53c18fc
8 8
9 struct auth_master_listener { 9 struct auth_master_listener {
10 struct auth *auth; 10 struct auth *auth;
11 unsigned int pid; 11 unsigned int pid;
12 12
13 array_t ARRAY_DEFINE(sockets, struct auth_master_listener_socket *); 13 ARRAY_DEFINE(sockets, struct auth_master_listener_socket *);
14 array_t ARRAY_DEFINE(masters, struct auth_master_connection *); 14 ARRAY_DEFINE(masters, struct auth_master_connection *);
15 array_t ARRAY_DEFINE(clients, struct auth_client_connection *); 15 ARRAY_DEFINE(clients, struct auth_client_connection *);
16 16
17 struct timeout *to_clients; 17 struct timeout *to_clients;
18 }; 18 };
19 19
20 struct auth_master_listener *auth_master_listener_create(struct auth *auth); 20 struct auth_master_listener *auth_master_listener_create(struct auth *auth);