Commit 837ed596 authored by Olivier Crête's avatar Olivier Crête

add non-ffi marshaller

parent 58909775
......@@ -68,7 +68,10 @@ agent/test-restart
agent/test-thread
agent/Nice-*.gir
agent/Nice-*.typelib
agent/agent-signals-marshal.c
agent/agent-signals-marshal.h
agent/agent-enum-types.c
agent/agent-enum-types.h
# stun/ stuff
stun/stunbdc
......
......@@ -22,7 +22,17 @@ if WINDOWS
AM_CFLAGS += -DWINVER=0x0501 # _WIN32_WINNT_WINXP
endif
dist_noinst_DATA = agent-signals-marshal.list
agent-signals-marshal.h: agent-signals-marshal.list
glib-genmarshal --header --prefix=agent_marshal $? > $@
agent-signals-marshal.c: agent-signals-marshal.list
echo '#include "agent-signals-marshal.h"' > $@
glib-genmarshal --body --prefix=agent_marshal $? >> $@
BUILT_SOURCES = \
agent-signals-marshal.h \
agent-signals-marshal.c \
agent-enum-types.h \
agent-enum-types.c
......@@ -77,6 +87,7 @@ agent-enum-types.c: agent.h Makefile agent-enum-types.h
--vtail " { 0, NULL, NULL }\n };\n type = g_@type@_register_static (\"@EnumName@\", values);\n }\n return type;\n}\n\n" \
$(addprefix $(srcdir)/,agent.h) > $@
libagent_la_LIBADD = \
$(top_builddir)/random/libnice-random.la \
$(top_builddir)/socket/libsocket.la \
......
......@@ -68,6 +68,7 @@
#include "agent.h"
#include "agent-priv.h"
#include "datagram-based.h"
#include "agent-signals-marshal.h"
#include "stream.h"
#include "interfaces.h"
......@@ -829,7 +830,7 @@ nice_agent_class_init (NiceAgentClass *klass)
0,
NULL,
NULL,
NULL,
agent_marshal_VOID__UINT_UINT_UINT,
G_TYPE_NONE,
3,
G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment