source: Evidence/DIM/dis.h@ 142

Last change on this file since 142 was 127, checked in by ogrimm, 15 years ago
First commit of Evidence control system core components
File size: 3.2 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
26_DIM_PROTOE( int dis_start_serving, (char *task_name) );
27_DIM_PROTOE( void dis_stop_serving, () );
28_DIM_PROTOE( int dis_get_next_cmnd, (long *tag, int *buffer, int *size ) );
29_DIM_PROTOE( int dis_get_client, (char *name ) );
30_DIM_PROTOE( int dis_get_conn_id, () );
31_DIM_PROTOE( unsigned dis_add_service, (char *service_name, char *service_type,
32 void *service_address, int service_size,
33 void (*usr_routine)(void*,void**,int*,int*), long tag) );
34_DIM_PROTOE( unsigned dis_add_cmnd, (char *service_name, char *service_type,
35 void (*usr_routine)(void*,void*,int*), long tag) );
36_DIM_PROTOE( void dis_add_client_exit_handler,(void (*usr_routine)(int*)) );
37_DIM_PROTOE( void dis_set_client_exit_handler,(int conn_id, int tag) );
38_DIM_PROTOE( void dis_add_exit_handler,(void (*usr_routine)(int*)) );
39_DIM_PROTOE( void dis_add_error_handler,(void (*usr_routine)(int, int, char*)) );
40_DIM_PROTOE( void dis_report_service, (char *service_name) );
41_DIM_PROTOE( int dis_update_service, (unsigned service_id) );
42_DIM_PROTOE( int dis_remove_service, (unsigned service_id) );
43_DIM_PROTOE( void dis_send_service, (unsigned service_id, int *buffer,
44 int size) );
45_DIM_PROTOE( int dis_set_buffer_size, (int size) );
46_DIM_PROTOE( void dis_set_quality, (unsigned service_id, int quality) );
47_DIM_PROTOE( void dis_set_timestamp, (unsigned service_id,
48 int secs, int millisecs) );
49_DIM_PROTOE( int dis_selective_update_service, (unsigned service_id,
50 int *client_id_list) );
51_DIM_PROTOE( void dis_disable_padding, () );
52_DIM_PROTOE( int dis_get_timeout, (unsigned service_id, int client_id) );
53_DIM_PROTOE( char *dis_get_error_services, () );
54_DIM_PROTOE( char *dis_get_client_services, (int conn_id) );
55_DIM_PROTOE( int dis_start_serving_dns, (long dns_id, char *task_name/*, int *id_list*/) );
56_DIM_PROTOE( void dis_stop_serving_dns, (long dns_id) );
57_DIM_PROTOE( unsigned dis_add_service_dns, (long dns_id, char *service_name, char *service_type,
58 void *service_address, int service_size,
59 void (*usr_routine)(void*,void**,int*,int*), long tag) );
60_DIM_PROTOE( unsigned dis_add_cmnd_dns, (long dns_id, char *service_name, char *service_type,
61 void (*usr_routine)(void*,void*,int*), long tag) );
62_DIM_PROTOE( int dis_get_n_clients, (unsigned service_id) );
63
64#endif
Note: See TracBrowser for help on using the repository browser.