Commit aee1b6c8 authored by Per Cederqvist's avatar Per Cederqvist

Added Who_info_ident, Who_info_ident_list and Session_info_ident.

parent 5f235565
/*
* $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__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment