Commit 32841e29 authored by David Byers's avatar David Byers
Browse files

Include-only-once ifdefs added.

(Async): Added ay_dummy_last
(ASYNC_DEFAULT_MESSAGES): New define.
parent b395fc89
/*
* $Id: async.h,v 0.6 1995/01/01 20:17:19 ceder Exp $
* $Id: async.h,v 0.7 1996/06/14 15:34:29 byers Exp $
* Copyright (C) 1991, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,13 +23,16 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: async.h,v 0.6 1995/01/01 20:17:19 ceder Exp $
* $Id: async.h,v 0.7 1996/06/14 15:34:29 byers Exp $
*
* This file contains the parts of the async protocol that are common
* to the server and the client.
*/
#ifndef LYSKOM_ASYNC_H
#define LYSKOM_ASYNC_H
/*
* What does this packet contain? (See doc/com-spec)
*/
......@@ -53,6 +56,18 @@ typedef enum {
/* A connection attempt was rejected
because LysKOM is full. */
ay_send_message = 12, /* A message is sent. */
ay_logout = 13 /* Someone logs out. */
ay_logout = 13, /* Someone logs out. */
ay_dummy_last /* Keep this last in the list */
} Async;
#define ASYNC_DEFAULT_MESSAGES { ay_new_text, \
ay_new_name, \
ay_sync_db, \
ay_login, \
ay_rejected_connection, \
ay_send_message, \
ay_logout }
#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