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/trivfs.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/trivfs.h')
-rw-r--r-- | libtrivfs/trivfs.h | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h index 306a4302..bb456ffa 100644 --- a/libtrivfs/trivfs.h +++ b/libtrivfs/trivfs.h @@ -37,11 +37,6 @@ struct trivfs_protid struct trivfs_peropen *po; }; -/* These can be used as `intran' and `destructor' functions for - a MiG port type, to have the stubs called with the protid pointer. */ -struct trivfs_protid *trivfs_begin_using_protid (mach_port_t); -void trivfs_end_using_protid (struct trivfs_protid *); - struct trivfs_peropen { void *hook; /* for user use */ @@ -62,11 +57,6 @@ struct trivfs_control void *hook; /* for user use */ }; -/* These can be used as `intran' and `destructor' functions for - a MiG port type, to have the stubs called with the control pointer. */ -struct trivfs_control *trivfs_begin_using_control (mach_port_t); -void trivfs_end_using_control (struct trivfs_control *); - /* The user must define these variables. */ extern int trivfs_fstype; @@ -267,41 +257,9 @@ error_t trivfs_add_port_bucket (struct port_bucket **bucket); /* Remove the previously added dynamic port bucket BUCKET, freeing it if it was allocated by trivfs_add_port_bucket. */ void trivfs_remove_port_bucket (struct port_bucket *bucket); - -/* This stuff is for the sake of MiG stubs and could be in a private - header. But it might be handy for users that override parts of the - library. Moreover, since the stub headers will use all the imports we - need for the stubs, we couldn't make the stub headers public without - making this public too. */ - +/* Type-aliases for mig. */ typedef struct trivfs_protid *trivfs_protid_t; typedef struct trivfs_control *trivfs_control_t; -struct trivfs_protid *_trivfs_begin_using_protid (mach_port_t); -void _trivfs_end_using_protid (struct trivfs_protid *); -struct trivfs_control *_trivfs_begin_using_control (mach_port_t); -void _trivfs_end_using_control (struct trivfs_control *); - -/* Vectors of dynamically allocated port classes/buckets. */ - -/* Protid port classes. */ -extern struct port_class **trivfs_dynamic_protid_port_classes; -extern size_t trivfs_num_dynamic_protid_port_classes; - -/* Control port classes. */ -extern struct port_class **trivfs_dynamic_control_port_classes; -extern size_t trivfs_num_dynamic_control_port_classes; - -/* Port buckets. */ -extern struct port_bucket **trivfs_dynamic_port_buckets; -extern size_t trivfs_num_dynamic_port_buckets; - -/* These are the MiG-generated headers that declare prototypes - for the server functions. */ -#include <hurd/trivfs_fs_S.h> -#include <hurd/trivfs_io_S.h> -#include <hurd/trivfs_fsys_S.h> - - #endif /* __TRIVFS_H__ */ |