Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Marshal.h

Go to the documentation of this file.
00001 /*
00002  *    gui - [gega user interface] the flexible solution for user interface problems
00003  *    Copyright (C) 2002  Gergely Gati
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; version 2 of the License.
00008  *
00009  *    This program is distributed in the hope that it will be useful,
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *    GNU General Public License for more details.
00013  *
00014  *    You should have received a copy of the GNU General Public License
00015  *    along with this program; if not, write to the Free Software
00016  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  *    Gergely Gati
00019  *      email:           g.gati@freemail.hu
00020  *      AIM screenname:  GatiGergely
00021  *      ICQ number:      93131690
00022  *
00023  */
00024 /* Marshal.h */
00025 #ifndef __MARSHAL_H
00026 #define __MARSHAL_H
00027 
00028 #include "types.h"
00029 
00030 
00031 u8 *marshal_PutLong(u8 *msg, u32 value);
00032 u8 *marshal_PutLongC(u8 *msg, u32 value);
00033 u8 *marshal_PutString(u8 *msg, char *value);
00034 u8 *marshal_PutStringC(u8 *msg, char *value);
00035 u8 *marshal_PutBinary(u8 *msg, u8 *value, u32 len);
00036 u8 *marshal_PutBinaryC(u8 *msg, u8 *value, u32 len);
00037 u8 *marshal_PutTaglist(u8 *msg, tag *taglist);
00038 u8 *marshal_PutTaglistC(u8 *msg, tag *taglist);
00039 u32 marshal_GetLong(u8 **msg);
00040 u32 marshal_GetLongC(u8 **msg);
00041 char *marshal_GetString(u8 **msg);
00042 char *marshal_GetStringC(u8 **msg);
00043 u8 *marshal_GetBinary(u8 **msg, u32 *len);
00044 u8 *marshal_GetBinaryC(u8 **msg, u32 *len);
00045 u32 marshal_GetBinaryLen(u8 **msg);
00046 u32 marshal_GetBinaryLenC(u8 **msg);
00047 tag *marshal_GetTaglist(u8 **msg);
00048 tag *marshal_GetTaglistC(u8 **msg);
00049 
00050 void marshal_FreeTaglist(tag *taglist);
00051 
00052 inline int marshal_GetStringMsgLen(char *str);
00053 int marshal_GetTaglistMsgLen(tag *taglist);
00054 #define marshal_GetBinaryMsgLen(l) (l+4)
00055 
00056 
00057 #endif
00058 

Generated on Tue Jan 7 12:11:23 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002