glibtojava.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 GLIBTOJAVA_H
00022 #define GLIBTOJAVA_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 #include <unistd.h>
00032 
00033 #else
00034 
00035 #include "oaa-windows.h"
00036 
00037 #endif
00038 #include "libicl.h"
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00044   EXTERN GByteArray* glibtojava_writeJavaChar(GByteArray* buf, gchar theChar);
00045   EXTERN GByteArray* glibtojava_writeJavaChars(GByteArray* buf, size_t bufSize, gchar* theCharString);
00046   EXTERN GByteArray* glibtojava_writeJavaBytes(GByteArray* buf, size_t bufSize, guint8* bytes);
00047   EXTERN GByteArray* glibtojava_writeJavaInt(GByteArray* buf, gint32 theInt);
00048   EXTERN GByteArray* glibtojava_writeJavaLong(GByteArray* buf, gint64 theLong);
00049   EXTERN GByteArray* glibtojava_writeJavaDouble(GByteArray* buf, gdouble theDouble);
00050 
00051 #ifdef __cplusplus
00052 }
00053 #endif
00054 
00055 
00056 #endif

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