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

set_client_version, get_client_name, get_client_version: New functions.

lookup_person, lookup_conf: New functions.
mark_text_old, mark_text, unmark_text: New functions. The previous
	function mark_text() is removed.
create_text, create_anonymous_text: The first argument is const in the
	server as well as in the client.
parent 64c9d739
No related branches found
No related tags found
No related merge requests found
/*
* $Id: services.h,v 0.11 1993/02/24 23:06:45 linus Exp $
* $Id: services.h,v 0.12 1993/08/04 22:56:50 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -92,6 +92,18 @@ KOM_( change_name (Conf_no conf_no,
extern Success
KOM_( change_what_i_am_doing (CONST String what_am_i_doing ));
/* Client version: one call to set, two to retrieve. */
extern Success
KOM_( set_client_version (const String client_name,
const String client_version));
extern Success
KOM_( get_client_name (Session_no session_no,
String *result));
extern Success
KOM_( get_client_version (Session_no session_no,
String *result));
/* Get info about a session */
......@@ -205,6 +217,7 @@ KOM_( delete_conf (Conf_no conf ));
/*
* Map conference name to number. Returns a list of the conferences
* that match the name NAME. Can be done without logging in.
* This should be phased out.
*/
#ifdef SERVER
extern Success
......@@ -216,6 +229,15 @@ KOM_( lookup_name (const String name,
Conf_list *result));
#endif
/* Use these two lookup-calls instead of lookup_name */
extern Success
KOM_( lookup_person (const String pattern,
Conf_no_list *result));
extern Success
KOM_( lookup_conf (const String pattern,
Conf_no_list *result));
/* Two functions for matching regexps. */
extern Success
KOM_( re_lookup_person (const String regexp,
......@@ -292,7 +314,6 @@ KOM_( set_super_conf (Conf_no conf_no,
extern Success
KOM_( set_conf_type (Conf_no conf_no,
Conf_type type ));
extern Success
KOM_( set_garb_nice (Conf_no conf_no,
Garb_nice nice )); /* number of days */
......@@ -312,10 +333,20 @@ KOM_( get_marks (Mark_list *result ));
/*
* Will fail if the user is not allowed to read the text.
*/
/* This function uses mark_type==0 to delete the mark. */
extern Success
KOM_( mark_text_old (Text_no text,
u_char mark_type ));
/* Using this function, you can set mark_type==0. */
extern Success
KOM_( mark_text (Text_no text,
u_char mark_type ));
/* Remove a mark, reporting an error if you had not marked the text. */
extern Success
KOM_( unmark_text (Text_no text));
......@@ -343,13 +374,13 @@ KOM_( mark_as_read (Conf_no conference,
/* Returns 0 on error */
extern Text_no
KOM_( create_text (CONST String message,
KOM_( create_text (const String message,
u_short no_of_misc,
CONST Misc_info * misc ));
/* Returns 0 on error. This function is experimental. */
extern Text_no
KOM_( create_anonymous_text (CONST String message,
KOM_( create_anonymous_text (const String message,
u_short no_of_misc,
CONST Misc_info * misc ));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment