source: trunk/FACT++/dim_v19r19/dim/dis.h@ 10480

Last change on this file since 10480 was 10480, checked in by tbretz, 14 years ago
New version V19r19 with some important bug fixes.
File size: 3.4 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.