File include/query_instructions.h

  $Revision: 1.21 $

Query instruction module (qi) config module.
Status: NOT REVUED, NOT TESTED
Included in: modules/pw/protocol_whois.c

Included Files


Preprocessor definitions

#define READ_QUERY_INSTRUCTIONS

#define Q_OBJECTS "SELECT last.object_id, last.sequence_id, last.object ,last.object_type FROM last, %s WHERE last.object_id=%s.id AND last.object_type != 100 GROUP BY last.object_id"

#define Q_REC "INSERT INTO %s_R SELECT pe_ro_id FROM %s, %s WHERE object_id = %s.id"

#define Q_REC_OBJECTS "SELECT last.object_id, last.sequence_id, last.object,last.object_type FROM last, %s_R WHERE last.object_id=%s_R.id AND last.object_type != 100 GROUP BY last.object_id"

#define Q_NO_OBJECTS "SELECT object_id, sequence_id, object FROM last WHERE object_id = 0"

#define MAX_INSTRUCTIONS 100


Typedef R_Type_t

typedef enum _R_Type_t R_Type_t
enum _R_Type_t 
   { 
     R_SQL; 
     R_RADIX; 
     R_END; 
   } 

Typedef Q_Type_t

typedef enum _Q_Type_t Q_Type_t
enum _Q_Type_t 
   { 
     Q_LOOKUP; 
     Q_INVERSE; 
   } 

Typedef S_Type_t

typedef enum _S_Type_t S_Type_t
enum _S_Type_t 
   { 
     IPv4; 
     IPv6; 
   } 

Typedef Query_instruction

typedef struct Query_instruction_t Query_instruction
struct Query_instruction_t 
   { 
     R_Type_t search_type; 
     int queryindex; 
     char* query_str; 
     char* rx_keys; 
     unsigned int rx_srch_mode; 
     unsigned int rx_par_a; 
     ip_space_t space; 
     rx_fam_t family; 
   } 

Typedef Query_instructions

typedef struct Query_instructions_t Query_instructions
struct Query_instructions_t 
   { 
     Query_instruction* instruction[100]; 
     unsigned int filtered; 
     unsigned int fast; 
     unsigned int recursive; 
     const Query_command* qc; 
   }