Skip to content
Snippets Groups Projects
Commit 2064df08 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(struct read_range): New struct.

(Membership): Removed fields last_text_read, no_of_read and
	read_texts.  Added fields no_of_read_ranges, read_ranges and
	skip_read_texts.
parent 3d701423
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: kom-types.h,v 0.51 2002/09/08 10:40:40 ceder Exp $ * $Id: kom-types.h,v 0.52 2002/11/06 18:40:14 ceder Exp $
* Copyright (C) 1990-1999, 2001-2002 Lysator Academic Computer Association. * Copyright (C) 1990-1999, 2001-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -282,20 +282,30 @@ typedef struct { ...@@ -282,20 +282,30 @@ typedef struct {
/* Information about a person's membership in a conference */ /* Information about a person's membership in a conference */
struct read_range {
Local_text_no first_read;
Local_text_no last_read;
};
typedef struct { typedef struct {
unsigned long position; unsigned long position;
Conf_no conf_no; Conf_no conf_no;
unsigned char priority; /* Interrupt priority */ unsigned char priority; /* Interrupt priority */
Time last_time_read; /* Updated every time a text in this Time last_time_read; /* Updated every time a text in this
conf. is marked as read. */ conference is marked as read. */
Local_text_no last_text_read; /* All texts before and inclusive this unsigned int no_of_read_ranges;
are read */ struct read_range * read_ranges; /* Sorted in ascending order. */
unsigned short no_of_read;
Local_text_no * read_texts; /* Texts after last_text_read. Sorted
in ascending order */
Pers_no added_by; Pers_no added_by;
Time added_at; Time added_at;
Membership_type type; Membership_type type;
/* read_ranges is cleared before it reaches the Protocol A output
layer in certain situations, even though that layer wants to
emit the last-text-read element. This happens for example when
get-membership [99] is called with want-read-texts == 0. This
variable maintains the last-text-read value. */
Bool skip_read_texts;
} Membership; } Membership;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment