Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
76b212b6
Commit
76b212b6
authored
May 21, 1999
by
Per Cederqvist
Browse files
Don't use SERVER or CLIENT. Fix some indentation.
parent
b715db66
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/include/kom-types.h
View file @
76b212b6
/*
* $Id: kom-types.h,v 0.3
6
1999/05/2
0 06:49:09
ceder Exp $
* $Id: kom-types.h,v 0.3
7
1999/05/2
1 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__ */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment