javadistoglib.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2006  SRI International
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library 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 GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017  *
00018  * SRI International: 333 Ravenswood Ave, Menlo Park, CA 94025
00019  */
00020 
00021 #ifndef JAVADISTOGLIB_H
00022 #define JAVADISTOGLIB_H
00023 
00024 #include "glib.h"
00025 
00026 // unistd.h is not included on Windows. Instead,
00027 
00028 // oaa-windows.h contains the necessary definitions.
00029 
00030 #ifndef _WINDOWS
00031 
00032 #include <unistd.h>
00033 
00034 #else
00035 
00036 #include "oaa-windows.h"
00037 
00038 #endif
00039 #include "libicl.h"
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045   EXTERN size_t javadistoglib_readJavaChar(char* buf, size_t end, gchar* theChar);
00046   EXTERN size_t javadistoglib_readJavaChars(char* buf, size_t end, size_t numToRead, size_t bufSize, gchar* theCharString);
00047   EXTERN size_t javadistoglib_readJavaBytes(char* buf, size_t end, size_t numToRead, size_t bufSize, gchar* bytes);
00048   EXTERN size_t javadistoglib_readJavaInt(char* buf, size_t end, gint32* theInt);
00049   EXTERN size_t javadistoglib_readJavaLong(char* buf, size_t end, gint64* theLong);
00050   EXTERN size_t javadistoglib_readJavaDouble(char* buf, size_t end, gdouble* theDouble);
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 
00056 
00057 #endif

Generated on Wed May 23 17:20:10 2007 using doxygen 1.5.2