* kern/act.c (GetSetState): Move struct definition to kern/act.h.

---
 kern/act.c | 8 --------
 kern/act.h | 7 +++++++
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/kern/act.c b/kern/act.c
index 321ff98..39259dd 100644
--- a/kern/act.c
+++ b/kern/act.c
@@ -776,14 +776,6 @@ kern_return_t act_resume(struct Act *act)
        return KERN_SUCCESS;
 }
 
-typedef struct GetSetState {
-       struct ReturnHandler rh;
-       int flavor;
-       void *state;
-       int *pcount;
-       int result;
-} GetSetState;
-
 /* Locking: Thread */
 kern_return_t get_set_state(struct Act *act, int flavor, void *state, int 
*pcount,
                            void (*handler)(ReturnHandler *rh, struct Act *act))
diff --git a/kern/act.h b/kern/act.h
index e064724..457f108 100644
--- a/kern/act.h
+++ b/kern/act.h
@@ -147,6 +147,13 @@ typedef mach_port_t *act_array_t;
 
 #define ACT_NULL ((Act*)0)
 
+typedef struct GetSetState {
+       struct ReturnHandler rh;
+       int flavor;
+       void *state;
+       int *pcount;
+       int result;
+} GetSetState;
 
 /* Exported to world */
 kern_return_t  act_create(struct task *task, vm_offset_t user_stack, 
vm_offset_t user_rbuf, vm_size_t user_rbuf_size, struct Act **new_act);
-- 
1.8.1.4


Reply via email to