diff --git a/api/boinc_api.h b/api/boinc_api.h
index e68f17e..5e60ba6 100644
a
|
b
|
typedef struct BOINC_STATUS { |
66 | 66 | double max_working_set_size; |
67 | 67 | } BOINC_STATUS; |
68 | 68 | |
69 | | typedef void (*FUNC_PTR)(); |
| 69 | typedef void (*FUNC_PTR)(void); |
70 | 70 | |
71 | 71 | struct APP_INIT_DATA; |
72 | 72 | |
… |
… |
extern int boinc_fraction_done(double); |
81 | 81 | extern int boinc_suspend_other_activities(void); |
82 | 82 | extern int boinc_resume_other_activities(void); |
83 | 83 | extern int boinc_report_app_status(double, double, double); |
84 | | extern int boinc_time_to_checkpoint(); |
85 | | extern void boinc_begin_critical_section(); |
86 | | extern int boinc_try_critical_section(); |
87 | | extern void boinc_end_critical_section(); |
88 | | extern void boinc_need_network(); |
89 | | extern int boinc_network_poll(); |
90 | | extern void boinc_network_done(); |
| 84 | extern int boinc_time_to_checkpoint(void); |
| 85 | extern void boinc_begin_critical_section(void); |
| 86 | extern int boinc_try_critical_section(void); |
| 87 | extern void boinc_end_critical_section(void); |
| 88 | extern void boinc_need_network(void); |
| 89 | extern int boinc_network_poll(void); |
| 90 | extern void boinc_network_done(void); |
91 | 91 | extern int boinc_is_standalone(void); |
92 | 92 | extern void boinc_ops_per_cpu_sec(double fp, double integer); |
93 | 93 | extern void boinc_ops_cumulative(double fp, double integer); |
… |
… |
extern void boinc_set_credit_claim(double credit); |
95 | 95 | extern int boinc_receive_trickle_down(char* buf, int len); |
96 | 96 | extern int boinc_init_options(BOINC_OPTIONS*); |
97 | 97 | extern int boinc_get_status(BOINC_STATUS*); |
98 | | extern double boinc_get_fraction_done(); |
| 98 | extern double boinc_get_fraction_done(void); |
99 | 99 | extern void boinc_register_timer_callback(FUNC_PTR); |
100 | | extern double boinc_worker_thread_cpu_time(); |
| 100 | extern double boinc_worker_thread_cpu_time(void); |
101 | 101 | extern void boinc_exit(int); // deprecated |
102 | 102 | |
103 | 103 | #ifdef __APPLE__ |
diff --git a/api/graphics_api.h b/api/graphics_api.h
index 6ef267b..314bbea 100644
a
|
b
|
|
22 | 22 | extern "C" { |
23 | 23 | #endif |
24 | 24 | |
25 | | typedef void (*WORKER_FUNC_PTR)(); |
| 25 | typedef void (*WORKER_FUNC_PTR)(void); |
26 | 26 | |
27 | 27 | extern int boinc_init_graphics(WORKER_FUNC_PTR); |
28 | 28 | |
… |
… |
extern void boinc_app_mouse_button(int x, int y, int which, int is_down); |
40 | 40 | extern void boinc_app_mouse_move(int x, int y, int left, int middle, int right); |
41 | 41 | extern void boinc_app_key_press(int, int); |
42 | 42 | extern void boinc_app_key_release(int, int); |
43 | | extern void boinc_suspend_graphics_thread(); |
44 | | extern void boinc_resume_graphics_thread(); |
| 43 | extern void boinc_suspend_graphics_thread(void); |
| 44 | extern void boinc_resume_graphics_thread(void); |
45 | 45 | |
46 | 46 | // C++ API follows here |
47 | 47 | #ifdef __cplusplus |
… |
… |
extern void boinc_resume_graphics_thread(); |
50 | 50 | #include "boinc_api.h" |
51 | 51 | |
52 | 52 | extern int boinc_init_options_graphics(BOINC_OPTIONS&, WORKER_FUNC_PTR); |
53 | | extern bool boinc_graphics_possible(); |
| 53 | extern bool boinc_graphics_possible(void); |
54 | 54 | |
55 | 55 | // Implementation stuff |
56 | 56 | // |
diff --git a/lib/diagnostics.h b/lib/diagnostics.h
index a897b36..eaf68c7 100644
a
|
b
|
extern "C" { |
70 | 70 | // These are functions common to all platforms |
71 | 71 | extern int boinc_init_diagnostics( int flags ); |
72 | 72 | extern int boinc_init_graphics_diagnostics( int flags ); |
73 | | extern int boinc_install_signal_handlers(); |
74 | | extern int boinc_finish_diag(); |
| 73 | extern int boinc_install_signal_handlers(void); |
| 74 | extern int boinc_finish_diag(void); |
75 | 75 | |
76 | 76 | extern int diagnostics_init( |
77 | 77 | int flags, const char* stdout_prefix, const char* stderr_prefix |
78 | 78 | ); |
79 | | extern int diagnostics_finish(); |
80 | | extern int diagnostics_is_initialized(); |
| 79 | extern int diagnostics_finish(void); |
| 80 | extern int diagnostics_is_initialized(void); |
81 | 81 | extern int diagnostics_is_flag_set( int flags ); |
82 | 82 | |
83 | 83 | // Properties |
84 | | extern char* diagnostics_get_boinc_dir(); |
85 | | extern char* diagnostics_get_boinc_install_dir(); |
86 | | extern char* diagnostics_get_symstore(); |
| 84 | extern char* diagnostics_get_boinc_dir(void); |
| 85 | extern char* diagnostics_get_boinc_install_dir(void); |
| 86 | extern char* diagnostics_get_symstore(void); |
87 | 87 | extern int diagnostics_set_symstore(char* symstore); |
88 | | extern int diagnostics_is_proxy_enabled(); |
89 | | extern char* diagnostics_get_proxy(); |
| 88 | extern int diagnostics_is_proxy_enabled(void); |
| 89 | extern char* diagnostics_get_proxy(void); |
90 | 90 | |
91 | | extern int diagnostics_is_aborted_via_gui(); |
92 | | extern int diagnostics_set_aborted_via_gui(); |
| 91 | extern int diagnostics_is_aborted_via_gui(void); |
| 92 | extern int diagnostics_set_aborted_via_gui(void); |
93 | 93 | |
94 | 94 | // Log rotation |
95 | | extern int diagnostics_cycle_logs(); |
| 95 | extern int diagnostics_cycle_logs(void); |
96 | 96 | extern void diagnostics_set_max_file_sizes(int stdout_size, int stderr_size); |
97 | 97 | |
98 | 98 | // Thread Tracking |
99 | | extern int diagnostics_init_thread_list(); |
100 | | extern int diagnostics_finish_thread_list(); |
101 | | extern int diagnostics_update_thread_list(); |
102 | | extern int diagnostics_set_thread_exempt_suspend(); |
| 99 | extern int diagnostics_init_thread_list(void); |
| 100 | extern int diagnostics_finish_thread_list(void); |
| 101 | extern int diagnostics_update_thread_list(void); |
| 102 | extern int diagnostics_set_thread_exempt_suspend(void); |
103 | 103 | |
104 | 104 | // Message Monitoring |
105 | | extern int diagnostics_init_message_monitor(); |
106 | | extern int diagnostics_finish_message_monitor(); |
| 105 | extern int diagnostics_init_message_monitor(void); |
| 106 | extern int diagnostics_finish_message_monitor(void); |
107 | 107 | #ifdef _WIN32 |
108 | 108 | extern UINT WINAPI diagnostics_message_monitor(LPVOID lpParameter); |
109 | 109 | #endif |
110 | 110 | |
111 | 111 | // Unhandled exception monitor |
112 | | extern int diagnostics_init_unhandled_exception_monitor(); |
113 | | extern int diagnostics_finish_unhandled_exception_monitor(); |
| 112 | extern int diagnostics_init_unhandled_exception_monitor(void); |
| 113 | extern int diagnostics_finish_unhandled_exception_monitor(void); |
114 | 114 | #ifdef _WIN32 |
115 | 115 | extern UINT WINAPI diagnostics_unhandled_exception_monitor(LPVOID lpParameter); |
116 | 116 | extern LONG CALLBACK boinc_catch_signal(EXCEPTION_POINTERS *ExceptionInfo); |