Commit cfe8c993 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(enum memb_visibility): Moved here from membership.c.

(membership_visible): Now exported from membership.c.
(set_conf_errno): New function.
parent 5330fd99
/*
* $Id: manipulate.h,v 0.35 2002/03/29 22:29:46 ceder Exp $
* $Id: manipulate.h,v 0.36 2002/08/10 16:57:19 ceder Exp $
* Copyright (C) 1991-1994, 1996-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: manipulate.h,v 0.35 2002/03/29 22:29:46 ceder Exp $
* $Id: manipulate.h,v 0.36 2002/08/10 16:57:19 ceder Exp $
*
* manipulate.h
*
......@@ -223,6 +223,44 @@ extern Conf_no
filter_conf_no(Conf_no victim,
const Connection *viewer_conn);
/* Visibility of a membership. */
enum memb_visibility
{
/* No visibility at all. */
mv_none,
/* The membership is visible. However, the information about read
texts should be censored. */
mv_censor_unread,
/* Full visibility. The unread_is_secret bit should be
ignored. */
mv_full,
};
/* Compute the visibility of a membership. MEMBER is a member of
CONF_NO, and the membership type i TYPE. VIEWER_CONN wants to know
stuff about the membership. If it is known that the person logged
on at VIEWER_CONN is a supervisor of the MEMBER,
IS_SUPERVISOR_OF_MEMBER should be set (for a small performance
gain). Similarly for IS_SUPERVISOR_OF_CONF. */
extern enum memb_visibility
membership_visible(const Connection *viewer_conn,
Pers_no member,
Conf_no conf_no,
Membership_type type,
Bool is_supervisor_of_member,
Bool is_supervisor_of_conf);
/* Set err_stat to CONF_NO. Set kom_errno to ERRCODE if VIEWER_CONN
is allowed to know that the conference exists. Otherwise, set
kom_errno to KOM_UNDEF_CONF. */
extern void
set_conf_errno(const Connection *viewer_conn,
Conf_no conf_no,
enum kom_err errcode);
/*
......
Supports Markdown
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