diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-23 11:16:40 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-23 11:16:40 -0500 |
commit | d56b86e42b72abb68ba74bf540ddc259f6b20f84 (patch) | |
tree | a9d78e760bcf4254d883c6242d384f9d1261098f /include/litmus.h | |
parent | 23701920e39a903883f19c2749383bba2a746405 (diff) |
reorganize liblitmus to be more modular
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/litmus.h b/include/litmus.h index 925cb44..ff21963 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -126,12 +126,8 @@ int reg_ics_cb(struct ics_cb* ics_cb); | |||
126 | int start_wcs(int od); | 126 | int start_wcs(int od); |
127 | 127 | ||
128 | /* library functions */ | 128 | /* library functions */ |
129 | void init_litmus(void); | 129 | int init_litmus(void); |
130 | /* exit is currently unused, but was needed for syscall | 130 | void exit_litmus(void); |
131 | * tracing and may be needed in the future. Leave it in | ||
132 | * for the purpose of source code compatability. | ||
133 | */ | ||
134 | #define exit_litmus() {} | ||
135 | 131 | ||
136 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); | 132 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); |
137 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, | 133 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, |
@@ -157,12 +153,4 @@ void exit_np(void); | |||
157 | */ | 153 | */ |
158 | int litmus_task_active(); | 154 | int litmus_task_active(); |
159 | 155 | ||
160 | |||
161 | /* low level operations, not intended for API use */ | ||
162 | |||
163 | /* prepare a real-time task */ | ||
164 | typedef int (*rt_setup_fn_t)(int pid, void* arg); | ||
165 | int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | ||
166 | rt_setup_fn_t setup, void* setup_arg); | ||
167 | |||
168 | #endif | 156 | #endif |