Ticket #116: boinc_api.patch

File boinc_api.patch, 3.1 kB (added by AlbertStrasheim, 1 year ago)
  • api/boinc_api.h

    old new  
    2424#include <Carbon/Carbon.h> 
    2525#endif 
    2626 
     27#ifdef BOINC_DLL 
     28#ifdef BOINC_EXPORTS 
     29#define BOINC_API __declspec(dllexport) 
     30#else 
     31#define BOINC_API __declspec(dllimport) 
     32#endif 
     33#else 
     34#define BOINC_API 
     35#endif 
     36 
    2737// ANSI C API BEGINS HERE 
    2838// Do not put implementation stuff here 
    2939 
     
    6676 
    6777struct APP_INIT_DATA; 
    6878 
    69 extern int boinc_init(void); 
    70 extern int boinc_finish(int status); 
    71 extern int boinc_resolve_filename(const char*, char*, int len); 
    72 extern int boinc_get_init_data_p(struct APP_INIT_DATA*); 
    73 extern int boinc_parse_init_data_file(void); 
    74 extern int boinc_send_trickle_up(char* variety, char* text); 
    75 extern int boinc_checkpoint_completed(void); 
    76 extern int boinc_fraction_done(double); 
    77 extern int boinc_suspend_other_activities(void); 
    78 extern int boinc_resume_other_activities(void); 
    79 extern int boinc_report_app_status(double, double, double); 
    80 extern int boinc_time_to_checkpoint(); 
    81 extern void boinc_begin_critical_section(); 
    82 extern int boinc_try_critical_section(); 
    83 extern void boinc_end_critical_section(); 
    84 extern void boinc_need_network(); 
    85 extern int boinc_network_poll(); 
    86 extern void boinc_network_done(); 
    87 extern int boinc_is_standalone(void); 
    88 extern void boinc_ops_per_cpu_sec(double fp, double integer); 
    89 extern void boinc_ops_cumulative(double fp, double integer); 
    90 extern int boinc_receive_trickle_down(char* buf, int len); 
    91 extern int boinc_init_options(BOINC_OPTIONS*); 
    92 extern int boinc_get_status(BOINC_STATUS*); 
    93 extern double boinc_get_fraction_done(); 
     79extern BOINC_API int boinc_init(void); 
     80extern BOINC_API int boinc_finish(int status); 
     81extern BOINC_API int boinc_resolve_filename(const char*, char*, int len); 
     82extern BOINC_API int boinc_get_init_data_p(struct APP_INIT_DATA*); 
     83extern BOINC_API int boinc_parse_init_data_file(void); 
     84extern BOINC_API int boinc_send_trickle_up(char* variety, char* text); 
     85extern BOINC_API int boinc_checkpoint_completed(void); 
     86extern BOINC_API int boinc_fraction_done(double); 
     87extern BOINC_API int boinc_suspend_other_activities(void); 
     88extern BOINC_API int boinc_resume_other_activities(void); 
     89extern BOINC_API int boinc_report_app_status(double, double, double); 
     90extern BOINC_API int boinc_time_to_checkpoint(); 
     91extern BOINC_API void boinc_begin_critical_section(); 
     92extern BOINC_API int boinc_try_critical_section(); 
     93extern BOINC_API void boinc_end_critical_section(); 
     94extern BOINC_API void boinc_need_network(); 
     95extern BOINC_API int boinc_network_poll(); 
     96extern BOINC_API void boinc_network_done(); 
     97extern BOINC_API int boinc_is_standalone(void); 
     98extern BOINC_API void boinc_ops_per_cpu_sec(double fp, double integer); 
     99extern BOINC_API void boinc_ops_cumulative(double fp, double integer); 
     100extern BOINC_API int boinc_receive_trickle_down(char* buf, int len); 
     101extern BOINC_API int boinc_init_options(BOINC_OPTIONS*); 
     102extern BOINC_API int boinc_get_status(BOINC_STATUS*); 
     103extern BOINC_API double boinc_get_fraction_done(); 
    94104 
    95105#ifdef __APPLE__ 
    96106extern int setMacPList(void); 

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.