prot-a-send-async.h 3.79 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
/*
2
 * $Id: prot-a-send-async.h,v 0.22 2003/08/16 15:32:19 ceder Exp $
Per Cederqvist's avatar
Per Cederqvist committed
3
 * Copyright (C) 1991, 1994-1999, 2001-2002  Lysator Academic Computer Association.
Linus Tolke's avatar
Linus Tolke committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 *
 * This file is part of the LysKOM server.
 * 
 * LysKOM is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; either version 1, or (at your option) 
 * any later version.
 * 
 * LysKOM is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with LysKOM; see the file COPYING.  If not, write to
 * Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
 * or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 
 * MA 02139, USA.
 *
Per Cederqvist's avatar
Per Cederqvist committed
23
 * Please report bugs at http://bugzilla.lysator.liu.se/. 
Linus Tolke's avatar
Linus Tolke committed
24
25
 */
/*
26
 * $Id: prot-a-send-async.h,v 0.22 2003/08/16 15:32:19 ceder Exp $
Per Cederqvist's avatar
Per Cederqvist committed
27
 *
Per Cederqvist's avatar
Per Cederqvist committed
28
29
30
 * Asynchronous messages in protocol A.
 */

David Byers's avatar
David Byers committed
31
32
#define ASYNC_CHECK_ACCEPT(_conn, _msg)             \
    {                                               \
33
        if (_conn->want_async[_msg] == FALSE) return;   \
David Byers's avatar
David Byers committed
34
35
36
    }


Per Cederqvist's avatar
Per Cederqvist committed
37
38
39
40
41
void
prot_a_async_new_text(Connection *cptr,
		      Text_no	      text_no,
		      Text_stat      *text_s);

42
43
44
45
46
void
prot_a_async_new_text_old(Connection *cptr,
                          Text_no	      text_no,
                          Text_stat      *text_s);

Per Cederqvist's avatar
Per Cederqvist committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
void
prot_a_async_i_am_on(Connection *cptr,
		     Who_info info);
void
prot_a_async_logout(Connection *cptr,
		    Pers_no pers_no,
		    Session_no session_no);

void
prot_a_async_new_name(Connection *cptr,
		      Conf_no conf_no,
		      String old_name,
		      String new_name);

void
prot_a_async_sync_db(Connection *cptr);

void
prot_a_async_forced_leave_conf(Connection *cptr,
			       Conf_no	       conf_no);

void
prot_a_async_login(Connection *cptr,
		   Pers_no	   pers_no,
		   int		   session_no);

void
prot_a_async_rejected_connection(Connection *cptr);

void
prot_a_async_send_message(Connection *cptr,
78
			  Conf_no     recipient,
Per Cederqvist's avatar
Per Cederqvist committed
79
80
			  Pers_no     sender,
			  String      message);
81
82
83
84
85
86
87
88
89
90

void
prot_a_async_delete_text(Connection *cptr,
                         Text_no	      text_no,
                         Text_stat      *text_s);

void
prot_a_async_deleted_text(Connection *cptr,
                         Text_no	      text_no,
                         Text_stat      *text_s);
David Byers's avatar
David Byers committed
91
92

void
93
94
95
96
prot_a_async_new_recipient(Connection     *cptr,
                           Text_no        text_no,
                           Conf_no        conf_no,
                           enum info_type type);
David Byers's avatar
David Byers committed
97
98

void
99
100
101
102
prot_a_async_sub_recipient(Connection     *cptr,
                           Text_no        text_no,
                           Conf_no        conf_no,
                           enum info_type type);
David Byers's avatar
David Byers committed
103
104
105
106
107
108
109



void
prot_a_async_new_membership(Connection   *cptr,
                            Pers_no pers_no,
                            Conf_no conf_no);
110

111
112
113
114
115
116
void
prot_a_async_new_user_area(Connection   *cptr,
			   Pers_no       pers_no,
			   Text_no       old_user_area,
			   Text_no       new_user_area);

117
118
119
120
121
122
void
prot_a_async_new_presentation(Connection   *cptr,
			      Conf_no       conf_no,
			      Text_no       old_presentation,
			      Text_no       new_presentation);

123
124
125
126
127
128
void
prot_a_async_new_motd(Connection   *cptr,
		      Conf_no       conf_no,
		      Text_no       old_motd,
		      Text_no       new_motd);

129
130
131
132
133
134
135
void
prot_a_async_text_aux_changed(Connection    *cptr,
			      Text_no        text_no,
			      Aux_item_list *aux_list,
			      unsigned long  highest_old_aux);


136
137
138
139
140
#ifdef DEBUG_CALLS
void
prot_a_async_garb_ended(Connection *cptr,
			int deleted_texts);
#endif