From e5583e10eed68f75e8981571d322b553b784dd5b Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 25 Feb 2014 00:24:52 +0100 Subject: pfinet: improve the mig mutator functions Previously, the mig mutator functions were in misc.c, preventing them from being inlined into the mig-generated server functions. Put them in mig-decls.h instead. Rename mutations.h to mig-mutate.h. This is the naming convention used for pflocal. * pfinet/mutations.h: Rename to mig-mutate.h, adopt imports. * pfinet/Makefile: Adopt accordingly. * pfinet/mig-decls.h: New file. * pfinet/misc.c: Move mutator functions to mig-decls.h. * pfinet/pfinet.h: Move type declarations to mig-decls.h, remove mutator declarations. * pfinet/iioctl-ops.c: Include mig-decls.h. --- pfinet/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pfinet/Makefile') diff --git a/pfinet/Makefile b/pfinet/Makefile index d442629d..9bda1371 100644 --- a/pfinet/Makefile +++ b/pfinet/Makefile @@ -139,9 +139,9 @@ asm/checksum.h: ../config.status '#include "../linux-src/include/asm-$(asm_syntax)/checksum.h"' mv -f $@.new $@ -io-MIGSFLAGS = -imacros $(srcdir)/mutations.h -socket-MIGSFLAGS = -imacros $(srcdir)/mutations.h +io-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h +socket-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h # cpp doesn't automatically make dependencies for -imacros dependencies. argh. -io_S.h ioServer.c socket_S.h socketServer.c: mutations.h +io_S.h ioServer.c socket_S.h socketServer.c: mig-mutate.h $(OBJS): config.h -- cgit v1.2.3