Commit 9ca25697 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(enum res_type): Added rt_static_server_info.

(union result_holder): Added static_server_info.
parent bd8bbd16
/*
* $Id: connections.h,v 0.66 2003/08/05 09:51:33 ceder Exp $
* $Id: connections.h,v 0.67 2003/08/11 22:17:27 ceder Exp $
* Copyright (C) 1991-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: connections.h,v 0.66 2003/08/05 09:51:33 ceder Exp $
* $Id: connections.h,v 0.67 2003/08/11 22:17:27 ceder Exp $
*
* connections.h -- The top level of the communication packet.
*
......@@ -203,7 +203,8 @@ extern Connection * active_connection;
/*
* This enum describes the result of a function in services.c.
*/
enum res_type {
enum res_type
{
rt_number, /* E.g. Pers_no, Conf_no, Text_no.
This is somewhat special in that the
function indicates an error by returning
......@@ -249,6 +250,7 @@ enum res_type {
rt_text_mapping,
rt_stats_description,
rt_stats_list,
rt_static_server_info,
#ifdef DEBUG_CALLS
rt_memory_info,
#endif
......@@ -263,7 +265,8 @@ enum res_type {
* allocated via tmp_alloc()) it should be free()d in prot_a_reply() in
* prot-a.c.
*/
union result_holder {
union result_holder
{
unsigned long number;
Person person;
Membership membership;
......@@ -302,6 +305,7 @@ union result_holder {
Text_mapping text_mapping;
Stats_description stats_description;
Stats_list stats_list;
Static_server_info static_server_info;
#ifdef DEBUG_CALLS
Memory_info memory_info;
#endif
......
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