File modules/nh/nh.c

  $Revision: 1.8 $

Status: NOT REVUED, NOT TESTED
Author(s): Andrei Robachevsky

Included Files


Preprocessor definitions

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 get_min_range( prange, sql_connection )

#define RANGE_ID 0

#define RANGE_START 1

#define RANGE_END 2


Global Function NH_check()

int NH_check ( nic_handle_t* nh_ptr, MYSQL* sql_connection )
Prototyped in: modules/nh/nh.h
Calls: get_range()modules/nh/nh.c

Global Function NH_comrol()

int NH_comrol ( MYSQL* sql_connection, int thread_ins, int thread_del )
Prototyped in: modules/nh/nh.h
Calls: SQ_error(), SQ_execute_query(), fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()

Global Function NH_convert()

char* NH_convert ( nic_handle_t* nh_ptr )
Prototyped in: modules/nh/nh.h
Calls: UT_free_real(), g_strdup_printf(), g_strjoinv()

Global Function NH_free()

int NH_free ( nic_handle_t* nh_ptr, MYSQL* sql_connection, int commit_now )
Prototyped in: modules/nh/nh.h
Calls: create_range()modules/nh/nh.c
  get_range()modules/nh/nh.c
  update_range()modules/nh/nh.c

Global Function NH_parse()

int NH_parse ( char* nic, nic_handle_t** nh_ptr_ptr )
Prototyped in: modules/nh/nh.h
Calls: calloc(), fprintf(), malloc(), strcpy(), strlen(), strncpy(), strtol()

Global Function NH_register()

int NH_register ( nic_handle_t* nh_ptr, MYSQL* sql_connection, int commit_now )
Prototyped in: modules/nh/nh.h
Calls: create_range()modules/nh/nh.c
  get_range()modules/nh/nh.c
  update_range()modules/nh/nh.c

Global Function free_nh()

void free_nh ( nic_handle_t* nh_ptr )
Prototyped in: modules/nh/nh.h
Calls: free()

Local Function create_range()

static long create_range ( range_t* p_range, MYSQL* sql_connection, int commit_now )
Prototyped in: modules/nh/nh.c
Calls: SQ_execute_query(), SQ_get_affected_rows(), SQ_get_insert_id(), fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: NH_free()modules/nh/nh.c
  NH_register()modules/nh/nh.c

Local Function get_range()

static long get_range ( long nic_id, range_t* prange, MYSQL* sql_connection )
Prototyped in: modules/nh/nh.c
Calls: SQ_error(), SQ_execute_query(), SQ_free_result(), SQ_get_column_string(), SQ_row_next(), atoi(), atol(), fprintf(), free(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: NH_check()modules/nh/nh.c
  NH_free()modules/nh/nh.c
  NH_register()modules/nh/nh.c
  update_range()modules/nh/nh.c

Local Function update_range()

static long update_range ( long range_id, range_t* p_newrange, MYSQL* sql_connection, int commit_now )
Prototyped in: modules/nh/nh.c
Calls: get_range()modules/nh/nh.c
  SQ_execute_query(), SQ_get_affected_rows(), fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: NH_free()modules/nh/nh.c
  NH_register()modules/nh/nh.c