1 | #ifndef __DISDEFS
|
---|
2 | #define __DISDEFS
|
---|
3 |
|
---|
4 | #include "dim_common.h"
|
---|
5 |
|
---|
6 | /* CFORTRAN interface */
|
---|
7 |
|
---|
8 | #define dis_start_serving dis_start_serving_
|
---|
9 | #define dis_stop_serving dis_stop_serving_
|
---|
10 | #define dis_get_next_cmnd dis_get_next_cmnd_
|
---|
11 | #define dis_get_client dis_get_client_
|
---|
12 | #define dis_add_service dis_add_service_
|
---|
13 | #define dis_add_cmnd dis_add_cmnd_
|
---|
14 | #define dis_add_client_exit_handler dis_add_client_exit_handler_
|
---|
15 | #define dis_add_exit_handler dis_add_exit_handler_
|
---|
16 | #define dis_set_client_exit_handler dis_set_client_exit_handler_
|
---|
17 | #define dis_report_service dis_report_service_
|
---|
18 | #define dis_update_service dis_update_service_
|
---|
19 | #define dis_remove_service dis_remove_service_
|
---|
20 | #define dis_send_service dis_send_service_
|
---|
21 | #define dis_convert_str dis_convert_str_
|
---|
22 | #define dis_set_quality dis_set_quality_
|
---|
23 | #define dis_set_timestamp dis_set_timestamp_
|
---|
24 | #define dis_selective_update_service dis_selective_update_service_
|
---|
25 | #define dis_get_timestamp dis_get_timestamp_
|
---|
26 |
|
---|
27 | _DIM_PROTOE( int dis_start_serving, (char *task_name) );
|
---|
28 | _DIM_PROTOE( void dis_stop_serving, () );
|
---|
29 | _DIM_PROTOE( int dis_get_next_cmnd, (long *tag, int *buffer, int *size ) );
|
---|
30 | _DIM_PROTOE( int dis_get_client, (char *name ) );
|
---|
31 | _DIM_PROTOE( int dis_get_conn_id, () );
|
---|
32 | _DIM_PROTOE( unsigned dis_add_service, (char *service_name, char *service_type,
|
---|
33 | void *service_address, int service_size,
|
---|
34 | void (*usr_routine)(void*,void**,int*,int*), long tag) );
|
---|
35 | _DIM_PROTOE( unsigned dis_add_cmnd, (char *service_name, char *service_type,
|
---|
36 | void (*usr_routine)(void*,void*,int*), long tag) );
|
---|
37 | _DIM_PROTOE( void dis_add_client_exit_handler,(void (*usr_routine)(int*)) );
|
---|
38 | _DIM_PROTOE( void dis_set_client_exit_handler,(int conn_id, int tag) );
|
---|
39 | _DIM_PROTOE( void dis_add_exit_handler,(void (*usr_routine)(int*)) );
|
---|
40 | _DIM_PROTOE( void dis_add_error_handler,(void (*usr_routine)(int, int, char*)) );
|
---|
41 | _DIM_PROTOE( void dis_report_service, (char *service_name) );
|
---|
42 | _DIM_PROTOE( int dis_update_service, (unsigned service_id) );
|
---|
43 | _DIM_PROTOE( int dis_remove_service, (unsigned service_id) );
|
---|
44 | _DIM_PROTOE( void dis_send_service, (unsigned service_id, int *buffer,
|
---|
45 | int size) );
|
---|
46 | _DIM_PROTOE( int dis_set_buffer_size, (int size) );
|
---|
47 | _DIM_PROTOE( void dis_set_quality, (unsigned service_id, int quality) );
|
---|
48 | _DIM_PROTOE( int dis_set_timestamp, (unsigned service_id,
|
---|
49 | int secs, int millisecs) );
|
---|
50 | _DIM_PROTOE( int dis_selective_update_service, (unsigned service_id,
|
---|
51 | int *client_id_list) );
|
---|
52 | _DIM_PROTOE( void dis_disable_padding, () );
|
---|
53 | _DIM_PROTOE( int dis_get_timeout, (unsigned service_id, int client_id) );
|
---|
54 | _DIM_PROTOE( char *dis_get_error_services, () );
|
---|
55 | _DIM_PROTOE( char *dis_get_client_services, (int conn_id) );
|
---|
56 | _DIM_PROTOE( int dis_start_serving_dns, (long dns_id, char *task_name/*, int *id_list*/) );
|
---|
57 | _DIM_PROTOE( void dis_stop_serving_dns, (long dns_id) );
|
---|
58 | _DIM_PROTOE( unsigned dis_add_service_dns, (long dns_id, char *service_name, char *service_type,
|
---|
59 | void *service_address, int service_size,
|
---|
60 | void (*usr_routine)(void*,void**,int*,int*), long tag) );
|
---|
61 | _DIM_PROTOE( unsigned dis_add_cmnd_dns, (long dns_id, char *service_name, char *service_type,
|
---|
62 | void (*usr_routine)(void*,void*,int*), long tag) );
|
---|
63 | _DIM_PROTOE( int dis_get_n_clients, (unsigned service_id) );
|
---|
64 | _DIM_PROTOE( int dis_get_timestamp, (unsigned service_id,
|
---|
65 | int *secs, int *millisecs) );
|
---|
66 |
|
---|
67 | #endif
|
---|