FACT++  1.0
dim_common.h File Reference
#include <sys/types.h>
+ Include dependency graph for dim_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ONCE_ONLY   0x01
 
#define TIMED   0x02
 
#define MONITORED   0x04
 
#define COMMAND   0x08
 
#define DIM_DELETE   0x10
 
#define MONIT_ONLY   0x20
 
#define UPDATE   0x40
 
#define TIMED_ONLY   0x80
 
#define MONIT_FIRST   0x100
 
#define MAX_TYPE_DEF   0x100
 
#define STAMPED   0x1000
 
#define _DIM_PROTO(func, param)   func ()
 
#define _DIM_PROTOE(func, param)   _DIM_PROTO(func,param)
 
#define DllExp
 
#define __CXX_CONST
 
#define my_ctime(t, str, size)   strcpy(str,(const char *)ctime(t))
 
#define DIMDNSUNDEF   0x1 /* DIM_DNS_NODE undefined FATAL */
 
#define DIMDNSREFUS   0x2 /* DIM_DNS refuses connection FATAL */
 
#define DIMDNSDUPLC   0x3 /* Service already exists in DNS FATAL */
 
#define DIMDNSEXIT   0x4 /* DNS requests server to EXIT FATAL */
 
#define DIMDNSTMOUT   0x5 /* Server failed sending Watchdog WARNING */
 
#define DIMSVCDUPLC   0x10 /* Service already exists in Server ERROR */
 
#define DIMSVCFORMT   0x11 /* Bat format string for service ERROR */
 
#define DIMSVCINVAL   0x12 /* Service ID invalid ERROR */
 
#define DIMSVCTOOLG   0x13 /* Service name too long ERROR */
 
#define DIMTCPRDERR   0x20 /* TCP/IP read error ERROR */
 
#define DIMTCPWRRTY   0x21 /* TCP/IP write error - Retrying WARNING */
 
#define DIMTCPWRTMO   0x22 /* TCP/IP write error - Disconnect ERROR */
 
#define DIMTCPLNERR   0x23 /* TCP/IP listen error ERROR */
 
#define DIMTCPOPERR   0x24 /* TCP/IP open server error ERROR */
 
#define DIMTCPCNERR   0x25 /* TCP/IP connection error ERROR */
 
#define DIMTCPCNEST   0x26 /* TCP/IP connection established INFO */
 
#define DIMDNSCNERR   0x30 /* Connection to DNS failed ERROR */
 
#define DIMDNSCNEST   0x31 /* Connection to DNS established INFO */
 

Typedefs

typedef int64_t longlong
 
typedef long dim_long
 

Enumerations

enum  SRC_TYPES {
  SRC_NONE, SRC_DIS, SRC_DIC, SRC_DNS,
  SRC_DNA, SRC_USR
}
 
enum  DIM_SEVERITIES { DIM_INFO, DIM_WARNING, DIM_ERROR, DIM_FATAL }
 

Functions

 _DIM_PROTOE (int id_get,(void *ptr, int type))
 
 _DIM_PROTOE (void id_free,(int id, int type))
 
 _DIM_PROTOE (void *id_get_ptr,(int id, int type))
 
 _DIM_PROTOE (unsigned int dtq_sleep,(unsigned int secs))
 
 _DIM_PROTOE (void dtq_start_timer,(int secs, void(*rout)(void *), void *tag))
 
 _DIM_PROTOE (int dtq_stop_timer,(void *tag))
 
 _DIM_PROTOE (void dim_init,())
 
 _DIM_PROTOE (void dna_set_test_write,(int conn_id, int time))
 
 _DIM_PROTOE (void dna_rem_test_write,(int conn_id))
 
 _DIM_PROTOE (int dim_set_dns_node,(__CXX_CONST char *node))
 
 _DIM_PROTOE (int dim_get_dns_node,(char *node))
 
 _DIM_PROTOE (int dim_set_dns_port,(int port))
 
 _DIM_PROTOE (int dim_get_dns_port,())
 
 _DIM_PROTOE (void dim_print_msg,(__CXX_CONST char *msg, int severity))
 
 _DIM_PROTOE (void dim_set_write_timeout,(int secs))
 
 _DIM_PROTOE (void dim_usleep,(unsigned int t))
 
 _DIM_PROTOE (int dim_wait,(void))
 
 _DIM_PROTOE (int dim_get_priority,(int dim_thread, int prio))
 
 _DIM_PROTOE (int dim_set_priority,(int dim_thread, int *prio))
 
 _DIM_PROTOE (int dim_set_scheduler_class,(int sched_class))
 
 _DIM_PROTOE (int dim_get_scheduler_class,(int *sched_class))
 
 _DIM_PROTOE (dim_long dim_start_thread,(void(*rout)(void *), void *tag))
 
 _DIM_PROTOE (int dim_stop_thread,(dim_long tid))
 
 _DIM_PROTOE (dim_long dis_add_dns,(__CXX_CONST char *node, int port))
 
 _DIM_PROTOE (int dim_get_env_var,(__CXX_CONST char *env_var, char *value, int value_size))
 
 _DIM_PROTOE (int dim_set_write_buffer_size,(int bytes))
 
 _DIM_PROTOE (void dim_set_listen_backlog,(int size))