50 |
|
struct LocalUser; |
51 |
|
|
52 |
|
|
53 |
+ |
|
54 |
+ |
/*! \brief addr_mask_type enumeration */ |
55 |
+ |
enum addr_mask_type |
56 |
+ |
{ |
57 |
+ |
HIDE_IP, /**< IP is hidden. Resolved hostname is shown instead */ |
58 |
+ |
SHOW_IP, /**< IP is shown. No parts of it are hidden or masked */ |
59 |
+ |
MASK_IP /**< IP is masked. 255.255.255.255 is shown instead */ |
60 |
+ |
}; |
61 |
+ |
|
62 |
|
/*! \brief Server structure */ |
63 |
|
struct Server |
64 |
|
{ |
464 |
|
#define ClearCaptured(x) ((x)->handler = CLIENT_HANDLER) |
465 |
|
|
466 |
|
|
458 |
– |
/* |
459 |
– |
* definitions for get_client_name |
460 |
– |
* TBD - make this an enum |
461 |
– |
*/ |
462 |
– |
#define HIDE_IP 0 |
463 |
– |
#define SHOW_IP 1 |
464 |
– |
#define MASK_IP 2 |
465 |
– |
|
467 |
|
extern struct Client me; |
468 |
|
extern dlink_list listing_client_list; |
469 |
|
extern dlink_list global_client_list; |
483 |
|
extern struct Client *make_client(struct Client *); |
484 |
|
extern struct Client *find_chasing(struct Client *, struct Client *, const char *, int *); |
485 |
|
extern struct Client *find_person(const struct Client *const, const char *); |
486 |
< |
extern const char *get_client_name(const struct Client *, int); |
486 |
> |
extern const char *get_client_name(const struct Client *, enum addr_mask_type); |
487 |
|
|
488 |
|
#endif /* INCLUDED_client_h */ |