File include/ud_int.h

  $Revision: 1.9 $

Semi-internal header file for UD module
Status: NOT REVUED, NOT TESTED
Author(s): Andrei Robachevsky
Included in: modules/pm/pm_serials.c

Included Files


Preprocessor definitions

#define _UD_INT_H

String sizes

#define STR_S 63

#define STR_M 255

#define STR_L 1023

#define STR_XL 4095

#define STR_XXL 16383

#define STR_XXXL 65535

#define MAX_NIC_HDL 30

#define DUMMY_TYPE 100

#define MAX_DUMMIES 16

#define S_RIPE "RIPE"

#define S_INTERNIC "InterNIC"

#define S_SIMPLE "SIMPLE"

#define S_CLIENTADDERSS "CLIENTADDRESS"

#define RF_DEF_PORT 43

#define CURRENT_SERIAL_FILE "./RIPE.CURRENTSERIAL"

#define _NRTM_PORT 43

#define _NRTM_VERSION 1

#define _DB_PORT 3306

#define _DB_NAME "andrei"

#define _DB_USER "dbint"

#define _DB_PSWD "reimp"


Typedef Attribute_t

typedef struct _Attribute_t Attribute_t
struct _Attribute_t 
   { 
     A_Type_t type; 
     char* value; 
   } 

Typedef Object_t

typedef struct _Object_t Object_t
struct _Object_t 
   { 
     C_Type_t type; 
     long id; 
     GSList* attributes; 
     GString* object; 
   } 

Typedef Transaction_t

typedef struct _Transaction Transaction_t
struct _Transaction 
   { 
     MYSQL* sql_connection; 
     Object_t* object; 
     int thread_ins; 
     int thread_upd; 
     long object_id; 
     long sequence_id; 
     int dummy; 
     int ndummy; 
     long dummy_id[16]; 
     int action; 
     int load_pass; 
     int standalone; 
     C_Type_t class_type; 
     int succeeded; 
     int error; 
     GString* error_script; 
     char* save; 
     rp_upd_pack_t* packptr; 
     nic_handle_t* nh; 
   } 

Typedef refer_t

typedef enum {...} refer_t
enum 
   { 
     RF_RIPE; 
     RF_INTERNIC; 
     RF_SIMPLE; 
     RF_CLIENTADDRESS; 
   } 

Type struct _nrtm

struct _nrtm
struct _nrtm 
   { 
     const char* server; 
     int port; 
     int version; 
     long current_serial; 
     Transaction_t* tr; 
     char object_name[255]; 
     int op; 
   } 

Typedef Log_t

typedef struct _Log_t Log_t
struct _Log_t 
   { 
     int num_ok; 
     int num_failed; 
     FILE* logfile; 
   } 

Typedef UD_stream_t

typedef struct UD_stream_t_ UD_stream_t
struct UD_stream_t_ 
   { 
     FILE* stream; 
     int num_skip; 
     int load_pass; 
     int ud_mode; 
     struct _nrtm* nrtm; 
     MYSQL* db_connection; 
     Log_t log; 
     char* error_script; 
   }