00001 // 00002 // Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 00003 // 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 3 of the License, or 00007 // (at your option) any later version. 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 00018 #ifndef _AMFUTF8_H_ 00019 #define _AMFUTF8_H_ 00020 00021 #ifdef HAVE_CONFIG_H 00022 #include "gnashconfig.h" 00023 #endif 00024 00025 #include <vector> 00026 00027 namespace amf 00028 { 00029 00030 // This represents an regular UTF8 type in an AMF message 00031 typedef struct { 00032 short length; 00033 char *data; 00034 } amfutf8_t; 00035 00036 // This represents an Long UTF8 type in an AMF message 00037 typedef struct { 00038 int length; 00039 char *data; 00040 } amflongutf8_t; 00041 00042 typedef std::vector<char> utf8_t; 00043 typedef std::vector<char> longutf8_t; 00044 00045 } // end of amf namespace 00046 00047 // end of _AMFUTF8_H_ 00048 #endif
1.5.4