diff --git a/src/include/kom-types.h b/src/include/kom-types.h index 2102973c19102fca9c61bd069f04a099fcf30cf2..55a847994b70649b1d2f11e05abcab234e39170e 100644 --- a/src/include/kom-types.h +++ b/src/include/kom-types.h @@ -1,5 +1,5 @@ /* - * $Id: kom-types.h,v 0.5 1992/01/31 18:22:26 ceder Exp $ + * $Id: kom-types.h,v 0.6 1992/04/04 17:22:49 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -567,6 +567,23 @@ typedef struct { Session_no session_no; /* Serial number of connection. */ } Who_info; +typedef struct { + Pers_no person; + String what_am_i_doing; + String username; /* Userid and hostname. */ + String ident_user; /* According to Ident protocol. */ + String hostname; /* According to TCP/IP. */ + Conf_no working_conference; + Session_no session_no; /* Serial number of connection. */ +} Who_info_ident; + +#define EMPTY_WHO_INFO_IDENT_i ((Who_info_ident) \ + { 0, EMPTY_STRING_i, EMPTY_STRING_i, \ + EMPTY_STRING_i, EMPTY_STRING_i, \ + 0, 0 }) + +extern const Who_info_ident EMPTY_WHO_INFO_IDENT; + typedef struct { Pers_no person; String what_am_i_doing; @@ -583,6 +600,26 @@ typedef struct { extern const Session_info EMPTY_SESSION_INFO; +typedef struct { + Pers_no person; + String what_am_i_doing; + String username; /* Userid and hostname, + according to the client. */ + String ident_user; /* According to Ident protocol. */ + String hostname; /* According to TCP/IP. */ + Conf_no working_conference; + Session_no session; /* Serial number of connection. */ + Time connection_time; /* Not logintime. */ + u_long idle_time; /* Seconds. */ +} Session_info_ident; + +#define EMPTY_SESSION_INFO_IDENT_i ((Session_info_ident)\ + { 0, EMPTY_STRING_i, EMPTY_STRING_i, EMPTY_STRING_i, \ + EMPTY_STRING_i, 0, 0, \ + NULL_TIME_i, 0 }) + +extern const Session_info_ident EMPTY_SESSION_INFO_IDENT; + #define EMPTY_WHO_INFO_OLD_i ((Who_info_old) { 0, EMPTY_STRING_i, 0 }) #define EMPTY_WHO_INFO_i ((Who_info) { 0, EMPTY_STRING_i, \ @@ -611,6 +648,14 @@ typedef struct { #define EMPTY_WHO_INFO_LIST_i ((Who_info_list) { 0, NULL }) extern const Who_info_list EMPTY_WHO_INFO_LIST; +typedef struct { + int no_of_persons; + Who_info_ident * info; +} Who_info_ident_list; + +#define EMPTY_WHO_INFO_IDENT_LIST_i ((Who_info_ident_list) { 0, NULL }) +extern const Who_info_ident_list EMPTY_WHO_INFO_IDENT_LIST; + #define EMPTY_tm_i 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0 #endif /* ifndef KOM_TYPES_H_ALREADY_INCLUDED__ */