1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef ORTE_MCA_STATE_PRIVATE_H
15 #define ORTE_MCA_STATE_PRIVATE_H
16
17
18
19
20 #include "orte_config.h"
21 #include "orte/constants.h"
22 #include "orte/types.h"
23
24 #ifdef HAVE_UNISTD_H
25 #include <unistd.h>
26 #endif
27
28 #include "orte/mca/plm/plm_types.h"
29 #include "orte/runtime/orte_globals.h"
30
31 #include "orte/mca/state/state.h"
32
33 BEGIN_C_DECLS
34
35 extern bool orte_state_base_run_fdcheck;
36
37
38
39 ORTE_DECLSPEC void orte_state_base_activate_job_state(orte_job_t *jdata,
40 orte_job_state_t state);
41
42 ORTE_DECLSPEC int orte_state_base_add_job_state(orte_job_state_t state,
43 orte_state_cbfunc_t cbfunc,
44 int priority);
45
46 ORTE_DECLSPEC int orte_state_base_set_job_state_callback(orte_job_state_t state,
47 orte_state_cbfunc_t cbfunc);
48
49 ORTE_DECLSPEC int orte_state_base_set_job_state_priority(orte_job_state_t state,
50 int priority);
51
52 ORTE_DECLSPEC int orte_state_base_remove_job_state(orte_job_state_t state);
53
54 ORTE_DECLSPEC void orte_util_print_job_state_machine(void);
55
56
57 ORTE_DECLSPEC void orte_state_base_activate_proc_state(orte_process_name_t *proc,
58 orte_proc_state_t state);
59
60 ORTE_DECLSPEC int orte_state_base_add_proc_state(orte_proc_state_t state,
61 orte_state_cbfunc_t cbfunc,
62 int priority);
63
64 ORTE_DECLSPEC int orte_state_base_set_proc_state_callback(orte_proc_state_t state,
65 orte_state_cbfunc_t cbfunc);
66
67 ORTE_DECLSPEC int orte_state_base_set_proc_state_priority(orte_proc_state_t state,
68 int priority);
69
70 ORTE_DECLSPEC int orte_state_base_remove_proc_state(orte_proc_state_t state);
71
72 ORTE_DECLSPEC void orte_util_print_proc_state_machine(void);
73
74
75 ORTE_DECLSPEC void orte_state_base_local_launch_complete(int fd, short argc, void *cbdata);
76 ORTE_DECLSPEC void orte_state_base_cleanup_job(int fd, short argc, void *cbdata);
77 ORTE_DECLSPEC void orte_state_base_report_progress(int fd, short argc, void *cbdata);
78 ORTE_DECLSPEC void orte_state_base_track_procs(int fd, short argc, void *cbdata);
79 ORTE_DECLSPEC void orte_state_base_check_all_complete(int fd, short args, void *cbdata);
80 ORTE_DECLSPEC void orte_state_base_check_fds(orte_job_t *jdata);
81 ORTE_DECLSPEC void orte_state_base_notify_data_server(orte_process_name_t *target);
82
83 END_C_DECLS
84 #endif