diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-25 01:01:09 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-25 11:39:26 +0100 |
commit | 8287b6ffdf2cb631591decb17429701218122259 (patch) | |
tree | dd27e493119b4c80c288bb5eeb3fb91ffaa6733d /libtrivfs/mig-mutate.h | |
parent | e5583e10eed68f75e8981571d322b553b784dd5b (diff) |
libtrivfs: improve the mig mutator functions
Previously, the mig mutator functions were in migsupport.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.
* libtrivfs/fsmutations.h: Rename to mig-mutate.h, adopt imports.
* libtrivfs/Makefile: Adopt accordingly.
* libtrivfs/migsupport.c: Rename to mig-decls.h.
* libtrivfs/trivfs.h: Move dynamic classes/buckets declarations to
mig-decls.h, remove superfluous imports.
* exec/execmutations.h: Fix import.
* pfinet/mig-mutate.h: Likewise.
* trans/Makefile: Likewise.
Diffstat (limited to 'libtrivfs/mig-mutate.h')
-rw-r--r-- | libtrivfs/mig-mutate.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libtrivfs/mig-mutate.h b/libtrivfs/mig-mutate.h new file mode 100644 index 00000000..fad5389a --- /dev/null +++ b/libtrivfs/mig-mutate.h @@ -0,0 +1,32 @@ +/* + Copyright (C) 1994,95,2002 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* Only CPP macro definitions should go in this file. */ + +#define REPLY_PORTS + +#define FILE_INTRAN trivfs_protid_t trivfs_begin_using_protid (file_t) +#define FILE_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t) +#define FILE_IMPORTS import "mig-decls.h"; + +#define IO_INTRAN trivfs_protid_t trivfs_begin_using_protid (io_t) +#define IO_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t) +#define IO_IMPORTS import "mig-decls.h"; + +#define FSYS_INTRAN trivfs_control_t trivfs_begin_using_control (fsys_t) +#define FSYS_DESTRUCTOR trivfs_end_using_control (trivfs_control_t) +#define FSYS_IMPORTS import "mig-decls.h"; |