[sgen] Make binary protocol work again.
[mono.git] / mono / metadata / sgen-protocol.h
index 0501693c22a111a4b18d91f58591984344334960..d82eecb99ea55d9283edf219e4dbdd39a0ec93e1 100644 (file)
@@ -22,6 +22,8 @@
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include "sgen-gc.h"
+
 #ifdef SGEN_BINARY_PROTOCOL
 
 enum {
@@ -126,6 +128,11 @@ typedef struct {
 
 /* missing: finalizers, dislinks, roots, non-store wbarriers */
 
+void binary_protocol_init (const char *filename) MONO_INTERNAL;
+gboolean binary_protocol_is_enabled (void) MONO_INTERNAL;
+
+void binary_protocol_flush_buffers (gboolean force) MONO_INTERNAL;
+
 void binary_protocol_collection (int generation) MONO_INTERNAL;
 void binary_protocol_alloc (gpointer obj, gpointer vtable, int size) MONO_INTERNAL;
 void binary_protocol_alloc_pinned (gpointer obj, gpointer vtable, int size) MONO_INTERNAL;
@@ -146,6 +153,8 @@ void binary_protocol_missing_remset (gpointer obj, gpointer obj_vtable, int offs
 
 #else
 
+#define binary_protocol_is_enabled()   FALSE
+
 #define binary_protocol_flush_buffers(force)
 #define binary_protocol_collection(generation)
 #define binary_protocol_alloc(obj, vtable, size)