FACT++  1.0
dic.h
Go to the documentation of this file.
1 #ifndef __DICDEFS
2 #define __DICDEFS
3 
4 #include "dim_common.h"
5 
6 /* part for CFORTRAN */
7 
8 #define dic_info_service dic_info_service_
9 #define dic_info_service_stamped dic_info_service_stamped_
10 #define dic_cmnd_service dic_cmnd_service_
11 #define dic_cmnd_callback dic_cmnd_callback_
12 #define dic_cmnd_service_stamped dic_cmnd_service_stamped_
13 #define dic_cmnd_callback_stamped dic_cmnd_callback_stamped_
14 #define dic_change_address dic_change_address_
15 #define dic_release_service dic_release_service_
16 #define dic_find_service dic_find_service_
17 #define dic_get_id dic_get_id_
18 #define dic_get_quality dic_get_quality_
19 #define dic_get_timestamp dic_get_timestamp_
20 #define dic_get_format dic_get_format_
21 
22 /* Routine definition */
23 #ifdef __cplusplus
24 extern "C" {
25 #define __CXX_CONST const
26 #else
27 #define __CXX_CONST
28 #endif
29 
30 _DIM_PROTOE( unsigned dic_info_service, (__CXX_CONST char *service_name, int req_type,
31  int req_timeout, void *service_address,
32  int service_size, void (*usr_routine)(void*, void*, int*),
33  dim_long tag, void *fill_addr, int fill_size) );
34 _DIM_PROTOE( unsigned dic_info_service_stamped, (__CXX_CONST char *service_name, int req_type,
35  int req_timeout, void *service_address,
36  int service_size, void (*usr_routine)(void*, void*, int*),
37  dim_long tag, void *fill_addr, int fill_size) );
38 _DIM_PROTOE( int dic_cmnd_callback, (__CXX_CONST char *service_name, void *service_address,
39  int service_size, void (*usr_routine)(void*, int*),
40  dim_long tag) );
41 _DIM_PROTOE( int dic_cmnd_service, (__CXX_CONST char *service_name, void *service_address,
42  int service_size) );
43 _DIM_PROTOE( void dic_change_address, (unsigned service_id, void *service_address,
44  int service_size) );
45 _DIM_PROTOE( void dic_release_service, (unsigned service_id) );
46 _DIM_PROTOE( int dic_find_service, (__CXX_CONST char *service_name) );
47 _DIM_PROTOE( int dic_get_id, (__CXX_CONST char *name) );
48 _DIM_PROTOE( int dic_get_quality, (unsigned service_id) );
49 _DIM_PROTOE( int dic_get_timestamp, (unsigned service_id, int *secs, int *milisecs) );
50 _DIM_PROTOE( char *dic_get_format, (unsigned service_id) );
52 _DIM_PROTOE( void dic_close_dns, () );
53 _DIM_PROTOE( void dic_add_error_handler,(void (*usr_routine)(int, int, char*)) );
55 _DIM_PROTOE( char *dic_get_server_services, (int conn_id) );
56 _DIM_PROTOE( int dic_get_server, (char *name ) );
57 _DIM_PROTOE( int dic_get_conn_id, () );
58 _DIM_PROTOE( void dic_stop, () );
59 _DIM_PROTOE( int dic_get_server_pid, (int *pid ) );
60 
61 #ifdef __cplusplus
62 #undef __CXX_CONST
63 }
64 #endif
65 
66 #endif
67 
68 
69 
70 
71 
72 
73 
74 
75 
void dic_add_error_handler(void(*user_routine)())
Definition: dic.c:112
unsigned service_id
Definition: db_dim_client.c:22
#define dic_cmnd_service
Definition: dic.h:10
#define dic_find_service
Definition: dic.h:16
int dic_get_server(char *name)
Definition: dic.c:2305
#define dic_info_service_stamped
Definition: dic.h:9
#define dic_get_id
Definition: dic.h:17
_DIM_PROTOE(unsigned dic_info_service,(__CXX_CONST char *service_name, int req_type, int req_timeout, void *service_address, int service_size, void(*usr_routine)(void *, void *, int *), dim_long tag, void *fill_addr, int fill_size))
int dic_get_server_pid(int *pid)
Definition: dic.c:2324
char * dic_get_server_services(int conn_id)
Definition: dic.c:2238
#define dic_change_address
Definition: dic.h:14
char * dic_get_error_services()
Definition: dic.c:2233
#define dic_get_quality
Definition: dic.h:18
#define dic_release_service
Definition: dic.h:15
long dim_long
Definition: dim_common.h:57
#define dic_cmnd_callback
Definition: dic.h:11
#define __CXX_CONST
Definition: dic.h:27
void dic_disable_padding()
Definition: copy_swap.c:25
void dic_close_dns()
Definition: dic.c:2142
#define dic_info_service
Definition: dic.h:8
#define dic_get_format
Definition: dic.h:20
#define dic_get_timestamp
Definition: dic.h:19
int dic_get_conn_id()
Definition: dic.c:2300
void dic_stop()
Definition: dic.c:2340