Commit 4bd0cb6c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_async_text_read): New function.

(prot_a_async_invalidate_text_read): Ditto.
parent 7d55d0b1
/*
* $Id: prot-a-send-async.c,v 0.38 2003/08/23 16:38:14 ceder Exp $
* $Id: prot-a-send-async.c,v 0.39 2004/07/18 20:44:32 ceder Exp $
* Copyright (C) 1991, 1993-1999, 2001-2003 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -337,6 +337,31 @@ prot_a_async_text_aux_changed(Connection *cptr,
async_trailer(cptr);
}
void
prot_a_async_text_read(Connection *cptr,
Conf_no conf_no,
Local_text_no local_no)
{
ASYNC_CHECK_ACCEPT(cptr, ay_text_read);
async_header(cptr, 2, ay_text_read);
/* The protocol allows for a list of {conf_no, local_no} pairs,
but the current implementation is a lot more simpleminded... */
isc_puts(" 1 {", cptr->isc_session);
prot_a_output_ul(cptr, conf_no);
prot_a_output_ul(cptr, local_no);
isc_puts(" }", cptr->isc_session);
async_trailer(cptr);
}
void
prot_a_async_invalidate_text_read(Connection *cptr,
Conf_no conf_no)
{
ASYNC_CHECK_ACCEPT(cptr, ay_invalidate_text_read);
async_header(cptr, 1, ay_invalidate_text_read);
prot_a_output_ul(cptr, conf_no);
async_trailer(cptr);
}
#ifdef DEBUG_CALLS
......
/*
* $Id: prot-a-send-async.h,v 0.23 2003/08/23 16:38:14 ceder Exp $
* $Id: prot-a-send-async.h,v 0.24 2004/07/18 20:44:38 ceder Exp $
* Copyright (C) 1991, 1994-1999, 2001-2003 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please report bugs at http://bugzilla.lysator.liu.se/.
*/
/*
* $Id: prot-a-send-async.h,v 0.23 2003/08/23 16:38:14 ceder Exp $
* $Id: prot-a-send-async.h,v 0.24 2004/07/18 20:44:38 ceder Exp $
*
* Asynchronous messages in protocol A.
*/
......@@ -132,6 +132,14 @@ prot_a_async_text_aux_changed(Connection *cptr,
Aux_item_list *aux_list,
unsigned long highest_old_aux);
void
prot_a_async_text_read(Connection *cptr,
Conf_no conf_no,
Local_text_no local_no);
void
prot_a_async_invalidate_text_read(Connection *cptr,
Conf_no conf_no);
#ifdef DEBUG_CALLS
void
......
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