Ticket #884: diff

File diff, 5.6 KB (added by gombasg, 16 years ago)
  • api/boinc_api.h

    diff --git a/api/boinc_api.h b/api/boinc_api.h
    index e68f17e..5e60ba6 100644
    a b typedef struct BOINC_STATUS { 
    6666    double max_working_set_size;
    6767} BOINC_STATUS;
    6868
    69 typedef void (*FUNC_PTR)();
     69typedef void (*FUNC_PTR)(void);
    7070
    7171struct APP_INIT_DATA;
    7272
    extern int boinc_fraction_done(double); 
    8181extern int boinc_suspend_other_activities(void);
    8282extern int boinc_resume_other_activities(void);
    8383extern 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();
     84extern int boinc_time_to_checkpoint(void);
     85extern void boinc_begin_critical_section(void);
     86extern int boinc_try_critical_section(void);
     87extern void boinc_end_critical_section(void);
     88extern void boinc_need_network(void);
     89extern int boinc_network_poll(void);
     90extern void boinc_network_done(void);
    9191extern int boinc_is_standalone(void);
    9292extern void boinc_ops_per_cpu_sec(double fp, double integer);
    9393extern void boinc_ops_cumulative(double fp, double integer);
    extern void boinc_set_credit_claim(double credit); 
    9595extern int boinc_receive_trickle_down(char* buf, int len);
    9696extern int boinc_init_options(BOINC_OPTIONS*);
    9797extern int boinc_get_status(BOINC_STATUS*);
    98 extern double boinc_get_fraction_done();
     98extern double boinc_get_fraction_done(void);
    9999extern void boinc_register_timer_callback(FUNC_PTR);
    100 extern double boinc_worker_thread_cpu_time();
     100extern double boinc_worker_thread_cpu_time(void);
    101101extern void boinc_exit(int);    // deprecated
    102102
    103103#ifdef __APPLE__
  • api/graphics_api.h

    diff --git a/api/graphics_api.h b/api/graphics_api.h
    index 6ef267b..314bbea 100644
    a b  
    2222extern "C" {
    2323#endif
    2424
    25 typedef void (*WORKER_FUNC_PTR)();
     25typedef void (*WORKER_FUNC_PTR)(void);
    2626
    2727extern int boinc_init_graphics(WORKER_FUNC_PTR);
    2828
    extern void boinc_app_mouse_button(int x, int y, int which, int is_down); 
    4040extern void boinc_app_mouse_move(int x, int y, int left, int middle, int right);
    4141extern void boinc_app_key_press(int, int);
    4242extern void boinc_app_key_release(int, int);
    43 extern void boinc_suspend_graphics_thread();
    44 extern void boinc_resume_graphics_thread();
     43extern void boinc_suspend_graphics_thread(void);
     44extern void boinc_resume_graphics_thread(void);
    4545
    4646// C++ API follows here
    4747#ifdef __cplusplus
    extern void boinc_resume_graphics_thread(); 
    5050#include "boinc_api.h"
    5151
    5252extern int boinc_init_options_graphics(BOINC_OPTIONS&, WORKER_FUNC_PTR);
    53 extern bool boinc_graphics_possible();
     53extern bool boinc_graphics_possible(void);
    5454
    5555// Implementation stuff
    5656//
  • lib/diagnostics.h

    diff --git a/lib/diagnostics.h b/lib/diagnostics.h
    index a897b36..eaf68c7 100644
    a b extern "C" { 
    7070// These are functions common to all platforms
    7171extern int boinc_init_diagnostics( int flags );
    7272extern int boinc_init_graphics_diagnostics( int flags );
    73 extern int boinc_install_signal_handlers();
    74 extern int boinc_finish_diag();
     73extern int boinc_install_signal_handlers(void);
     74extern int boinc_finish_diag(void);
    7575
    7676extern int diagnostics_init(
    7777    int flags, const char* stdout_prefix, const char* stderr_prefix
    7878);
    79 extern int diagnostics_finish();
    80 extern int diagnostics_is_initialized();
     79extern int diagnostics_finish(void);
     80extern int diagnostics_is_initialized(void);
    8181extern int diagnostics_is_flag_set( int flags );
    8282
    8383// Properties
    84 extern char* diagnostics_get_boinc_dir();
    85 extern char* diagnostics_get_boinc_install_dir();
    86 extern char* diagnostics_get_symstore();
     84extern char* diagnostics_get_boinc_dir(void);
     85extern char* diagnostics_get_boinc_install_dir(void);
     86extern char* diagnostics_get_symstore(void);
    8787extern int diagnostics_set_symstore(char* symstore);
    88 extern int diagnostics_is_proxy_enabled();
    89 extern char* diagnostics_get_proxy();
     88extern int diagnostics_is_proxy_enabled(void);
     89extern char* diagnostics_get_proxy(void);
    9090
    91 extern int diagnostics_is_aborted_via_gui();
    92 extern int diagnostics_set_aborted_via_gui();
     91extern int diagnostics_is_aborted_via_gui(void);
     92extern int diagnostics_set_aborted_via_gui(void);
    9393
    9494// Log rotation
    95 extern int diagnostics_cycle_logs();
     95extern int diagnostics_cycle_logs(void);
    9696extern void diagnostics_set_max_file_sizes(int stdout_size, int stderr_size);
    9797
    9898// 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();
     99extern int diagnostics_init_thread_list(void);
     100extern int diagnostics_finish_thread_list(void);
     101extern int diagnostics_update_thread_list(void);
     102extern int diagnostics_set_thread_exempt_suspend(void);
    103103
    104104// Message Monitoring
    105 extern int diagnostics_init_message_monitor();
    106 extern int diagnostics_finish_message_monitor();
     105extern int diagnostics_init_message_monitor(void);
     106extern int diagnostics_finish_message_monitor(void);
    107107#ifdef _WIN32
    108108extern UINT WINAPI diagnostics_message_monitor(LPVOID lpParameter);
    109109#endif
    110110
    111111// Unhandled exception monitor
    112 extern int diagnostics_init_unhandled_exception_monitor();
    113 extern int diagnostics_finish_unhandled_exception_monitor();
     112extern int diagnostics_init_unhandled_exception_monitor(void);
     113extern int diagnostics_finish_unhandled_exception_monitor(void);
    114114#ifdef _WIN32
    115115extern UINT WINAPI diagnostics_unhandled_exception_monitor(LPVOID lpParameter);
    116116extern LONG CALLBACK boinc_catch_signal(EXCEPTION_POINTERS *ExceptionInfo);