lwes_marshall_functions.h

Go to the documentation of this file.
00001 /*======================================================================*
00002  * Copyright (C) 2008 Light Weight Event System                         *
00003  * All rights reserved.                                                 *
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; either version 2 of the License, or    *
00008  * (at your option) any later version.                                  *
00009  *                                                                      *
00010  * This program is distributed in the hope that it will be useful,      *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
00013  * GNU General Public License for more details.                         *
00014  *                                                                      *
00015  * You should have received a copy of the GNU General Public License    *
00016  * along with this program; if not, write to the Free Software          *
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor,                   *
00018  * Boston, MA 02110-1301 USA.                                           *
00019  *======================================================================*/
00020 #ifndef __LWES_MARSHAL_FUNCTIONS_H
00021 #define __LWES_MARSHAL_FUNCTIONS_H
00022 
00023 #include <ctype.h>
00024 #include <stdio.h>
00025 
00026 #include "lwes_types.h"
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif 
00031 
00053 int
00054 marshall_BYTE
00055   (LWES_BYTE         aByte,
00056    LWES_BYTE_P       bytes,
00057    size_t            length,
00058    size_t            *offset);
00059 
00077 int
00078 marshall_U_INT_16
00079   (LWES_U_INT_16     anInt,
00080    LWES_BYTE_P       bytes,
00081    size_t            length,
00082    size_t            *offset);
00083 
00101 int
00102 marshall_INT_16
00103   (LWES_INT_16       anInt,
00104    LWES_BYTE_P       bytes,
00105    size_t            length,
00106    size_t            *offset);
00107 
00125 int
00126 marshall_U_INT_32
00127   (LWES_U_INT_32     anInt,
00128    LWES_BYTE_P       bytes,
00129    size_t            length,
00130    size_t            *offset);
00131 
00149 int
00150 marshall_INT_32
00151   (LWES_INT_32       anInt,
00152    LWES_BYTE_P       bytes,
00153    size_t            length,
00154    size_t            *offset);
00155 
00173 int
00174 marshall_U_INT_64
00175   (LWES_U_INT_64     anInt,
00176    LWES_BYTE_P       bytes,
00177    size_t            length,
00178    size_t            *offset);
00179 
00197 int
00198 marshall_INT_64
00199   (LWES_INT_64       anInt,
00200    LWES_BYTE_P       bytes,
00201    size_t            length,
00202    size_t            *offset);
00203 
00221 int
00222 marshall_BOOLEAN
00223   (LWES_BOOLEAN      aBoolean,
00224    LWES_BYTE_P       bytes,
00225    size_t            length,
00226    size_t            *offset);
00227 
00245 int
00246 marshall_IP_ADDR
00247   (LWES_IP_ADDR      ipAddress,
00248    LWES_BYTE_P       bytes,
00249    size_t            length,
00250    size_t            *offset);
00251 
00269 int
00270 marshall_SHORT_STRING
00271   (LWES_SHORT_STRING aString,
00272    LWES_BYTE_P       bytes,
00273    size_t            length,
00274    size_t            *offset);
00275 
00293 int
00294 marshall_LONG_STRING
00295   (LWES_LONG_STRING  aString,
00296    LWES_BYTE_P       bytes,
00297    size_t            length,
00298    size_t            *offset);
00299 
00319 int
00320 unmarshall_BYTE
00321   (LWES_BYTE *       aByte,
00322    LWES_BYTE_P       bytes,
00323    size_t            length,
00324    size_t *          offset);
00325 
00345 int
00346 unmarshall_U_INT_16
00347   (LWES_U_INT_16 *   anInt,
00348    LWES_BYTE_P       bytes,
00349    size_t            length,
00350    size_t *          offset);
00351 
00371 int
00372 unmarshall_INT_16
00373   (LWES_INT_16 *     anInt,
00374    LWES_BYTE_P       bytes,
00375    size_t            length,
00376    size_t *          offset);
00377 
00397 int
00398 unmarshall_U_INT_32
00399   (LWES_U_INT_32 *   anInt,
00400    LWES_BYTE_P       bytes,
00401    size_t            length,
00402    size_t *          offset);
00403 
00423 int
00424 unmarshall_INT_32
00425   (LWES_INT_32 *     anInt,
00426    LWES_BYTE_P       bytes,
00427    size_t            length,
00428    size_t *          offset);
00429 
00449 int
00450 unmarshall_U_INT_64
00451   (LWES_U_INT_64 *   anInt,
00452    LWES_BYTE_P       bytes,
00453    size_t            length,
00454    size_t *          offset);
00455 
00475 int
00476 unmarshall_INT_64
00477   (LWES_INT_64 *     anInt,
00478    LWES_BYTE_P       bytes,
00479    size_t            length,
00480    size_t *          offset);
00481 
00501 int
00502 unmarshall_BOOLEAN
00503   (LWES_BOOLEAN *    aBoolean,
00504    LWES_BYTE_P       bytes,
00505    size_t            length,
00506    size_t *          offset);
00507 
00527 int
00528 unmarshall_IP_ADDR
00529   (LWES_IP_ADDR *    ipAddress,
00530    LWES_BYTE_P       bytes,
00531    size_t            length,
00532    size_t *          offset);
00533 
00558 int
00559 unmarshall_SHORT_STRING
00560   (LWES_SHORT_STRING aString,
00561    size_t            max_string_length,
00562    LWES_BYTE_P       bytes,
00563    size_t            length,
00564    size_t *          offset);
00565 
00590 int
00591 unmarshall_LONG_STRING
00592   (LWES_LONG_STRING aString,
00593    size_t           max_string_length,
00594    LWES_BYTE_P      bytes,
00595    size_t           length,
00596    size_t *         offset);
00597 
00598 #ifdef __cplusplus
00599 }
00600 #endif 
00601 
00602 #endif /* __LWES_MARSHALL_FUNCTIONS_H */

Generated on Thu Aug 21 07:18:55 2008 for lwes by  doxygen 1.4.6