+
+Wed Feb 24 15:50:55 CET 2010 Paolo Molaro <lupus@ximian.com>
+
+ * mono-publib.h, mono-publib.c: new public header file to allow
+ the removal of gli from the other public headers.
+ * Makefile.am: install only the public header mono-publib.h.
+
2010-02-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
* mono-semaphore.h: enable the #defines when io-layer is in use.
mono-networkinterfaces.h \
mono-proclib.c \
mono-proclib.h \
+ mono-publib.c \
mono-string.h \
mono-time.c \
mono-time.h \
gc_wrapper.h \
mono-error.c \
mono-error-internals.h \
- valgrind.h \
- memcheck.h
-
-libmonoutilsincludedir = $(includedir)/mono-$(API_VER)/mono/utils
-
-libmonoutilsinclude_HEADERS = \
monobitset.h \
mono-codeman.h \
mono-counters.h \
mono-path.h \
mono-poll.h \
mono-uri.h \
- mono-stdlib.h
+ mono-stdlib.h \
+ valgrind.h \
+ memcheck.h
+
+libmonoutilsincludedir = $(includedir)/mono-$(API_VER)/mono/utils
+
+libmonoutilsinclude_HEADERS = \
+ mono-publib.h
EXTRA_DIST = ChangeLog mono-hash.c mono-hash.h mono-ehash.c
--- /dev/null
+#ifndef __MONO_PUBLIB_H__
+#define __MONO_PUBLIB_H__
+
+/*
+ * Minimal general purpose header for use in public mono header files.
+ * We can't include config.h, so we use compiler-specific preprocessor
+ * directives where needed.
+ */
+
+#ifdef __cplusplus
+#define MONO_BEGIN_DECLS extern "C" {
+#define MONO_END_DECLS }
+#else
+#define MONO_BEGIN_DECLS
+#define MONO_END_DECLS
+#endif
+
+MONO_BEGIN_DECLS
+
+#if defined(_MSC_VER)
+
+typedef __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+
+#else
+
+#include <stdint.h>
+
+#endif /* end of compiler-specific stuff */
+
+typedef int32_t mono_bool;
+typedef uint8_t mono_byte;
+typedef uint16_t mono_unichar2;
+
+typedef void (*MonoFunc) (void* data, void* user_data);
+typedef void (*MonoHFunc) (void* key, void* value, void* user_data);
+
+void mono_free (void *);
+
+#define MONO_CONST_RETURN const
+
+MONO_END_DECLS
+
+#endif /* __MONO_PUBLIB_H__ */
+