Commit 76b212b6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Don't use SERVER or CLIENT. Fix some indentation.

parent b715db66
/*
* $Id: kom-types.h,v 0.36 1999/05/20 06:49:09 ceder Exp $
* $Id: kom-types.h,v 0.37 1999/05/21 15:33:22 ceder Exp $
* Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -52,14 +52,6 @@
#include "s-string.h"
#ifndef SERVER
# error must define SERVER
#endif
#ifdef CLIENT
# error This file no longer supports CLIENT
#endif
/* Some objects in LysKOM need a type field.
These are the valid values */
......@@ -227,15 +219,13 @@ typedef unsigned long Garb_nice;
/* Struct for text status */
typedef struct {
Time creation_time;
#ifdef SERVER
long file_pos; /* Start of the text in the text file. */
#endif
Pers_no author;
unsigned short no_of_lines;
unsigned short no_of_lines;
String_size no_of_chars;
unsigned short no_of_marks; /* Antal markeringar */
unsigned short no_of_misc; /* Recipients, times, comments, ... */
unsigned long highest_aux;
unsigned short no_of_marks; /* Antal markeringar */
unsigned short no_of_misc; /* Recipients, times, comments, ... */
unsigned long highest_aux;
Misc_info * misc_items; /* List of miscellaneous info. */
Aux_item_list aux_item_list;
} Text_stat;
......@@ -440,14 +430,8 @@ typedef struct {
String name; /* Name of conference */
unsigned long highest_aux;
Aux_item_list aux_item_list;
#ifdef CLIENT
unsigned short no_of_members;
Local_text_no first_local_no;
unsigned long no_of_texts;
#else
Member_list members; /* List of members in conf */
Local_to_global texts; /* List of texts */
#endif
} Conference;
......@@ -477,28 +461,20 @@ typedef struct {
Priv_bits privileges;
Personal_flags flags;
Time last_login; /* Or logout */
unsigned long total_time_present; /* Number of seconds. */
unsigned long sessions; /* Number of sessions */
unsigned long created_lines; /* No. of created lines (statistics) */
unsigned long created_bytes; /* No. of created bytes (statistics) */
unsigned long read_texts; /* No. of read texts (statistics) */
unsigned long no_of_text_fetches; /* (statistics) */
unsigned short created_persons; /* (statistics) */
unsigned short created_confs; /* (statistics) */
String username; /* User-name & hostname */
#ifdef CLIENT
Local_text_no first_created_text; /* The first text that still
* exists. */
unsigned long no_of_created_texts;
unsigned short no_of_marks; /* This many marked texts */
unsigned short no_of_confs; /* Member in this many confs */
#else /* SERVER */
unsigned long total_time_present; /* Number of seconds. */
unsigned long sessions; /* Number of sessions */
unsigned long created_lines; /* No. of created lines (statistics) */
unsigned long created_bytes; /* No. of created bytes (statistics) */
unsigned long read_texts; /* No. of read texts (statistics) */
unsigned long no_of_text_fetches; /* (statistics) */
unsigned short created_persons; /* (statistics) */
unsigned short created_confs; /* (statistics) */
String username; /* User-name & hostname */
Local_to_global created_texts;
Mark_list marks; /* List of marked texts */
Membership_list conferences; /* List of conferences the person is
* a member in. */
Password pwd; /* Encrypted password */
#endif
} Person;
......@@ -623,12 +599,10 @@ typedef struct {
} Memory_info;
#endif
#ifdef SERVER
typedef struct {
unsigned long protocol_version;
const char *server_name;
const char *server_version;
} Version_info_internal;
#endif
#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