muxed.h

Go to the documentation of this file.
00001 /*!
00002  * \file   log/server/src/muxed.h
00003  * \brief  Functions and wire protocol definitions for muxed channels
00004  *
00005  * \date   10/05/2001
00006  * \author Jork Loeser <jork.loeser@inf.tu-dresden.de>
00007  *
00008  */
00009 /* (c) 2003 Technische Universitaet Dresden
00010  * This file is part of DROPS, which is distributed under the terms of the
00011  * GNU General Public License 2. Please see the COPYING file for details.
00012  */
00013 
00014 #ifndef __LOG_SERVER_SRC_MUXED_H_
00015 #define __LOG_SERVER_SRC_MUXED_H_
00016 
00017 /* define protocol version tag */
00018 #define LOG_PROTOCOL_VERSION  0x01
00019 
00020 /* Type constants */
00021 #define LOG_TYPE_UNKNOWN  1
00022 #define LOG_TYPE_DATA     2
00023 #define LOG_TYPE_LOG      3
00024 
00025 /* Flags - none used at the moment */
00026 #define LOG_FLAG_NONE     0
00027 
00028 /* the header */
00029 struct muxed_header {
00030         unsigned char  version;
00031         unsigned char  channel;
00032         unsigned char  type;
00033         unsigned char  flags;
00034         unsigned int   data_length;
00035 
00036 };
00037 
00038 extern l4_fpage_t channel_get_next_fpage(void);
00039 extern int channel_open(l4_fpage_t page, int channel);
00040 extern int channel_write(int id, unsigned int offset, unsigned int size);
00041 extern int channel_flush(int id);
00042 extern int channel_close(int id);
00043 
00044 #endif /* __LOG_SERVER_SRC_MUXED_H */

Generated on Wed Apr 11 06:40:52 2012 for Logging and output facility for DROPS by  doxygen 1.5.6