File modules/pm/pm_serials.c

* PM_get_minmax_serial()                                    *
*                                                           *
* Returns the min or max serial number.                     *
*                                                           *
* Returns:                                                  *
*  min (max=0) or max (max=1) serial number                 *
*  -1 in case of an error                                   *
*                                                           *
* Note:                                                     *
*  min serial= MIN(serial_id)+1                             *
*  MIN(serial_id) represents legacy RIPE.CURRENSERIAL       *
*  of the snapshot                                          *
*                                                           *

Included Files


Global Function PM_get_minmax_serial()

long PM_get_minmax_serial ( MYSQL* sql_connection, int max )
Prototyped in: modules/pm/protocol_mirror.h
Calls: SQ_error(), SQ_execute_query(), SQ_free_result(), SQ_get_column_string(), SQ_row_next(), atol(), fprintf(), free(), sprintf()

Global Function PM_get_serial_object()

char* PM_get_serial_object ( MYSQL* sql_connection, long serial_number, int* operation )
Prototyped in: modules/pm/protocol_mirror.h
Calls: atlast()modules/pm/pm_serials.c
  getop()modules/pm/pm_serials.c
  SQ_error(), SQ_execute_query(), SQ_free_result(), SQ_get_column_string(), SQ_row_next(), fprintf(), free(), sprintf()

Local Function atlast()

static int atlast ( MYSQL* sql_connection, long serial_number )
Calls: atoi(), free(), get_field_str(), sprintf()
Called by: PM_get_serial_object()modules/pm/pm_serials.c

Local Function getop()

static int getop ( MYSQL* sql_connection, long serial_number )
Calls: atoi(), free(), get_field_str(), sprintf()
Called by: PM_get_serial_object()modules/pm/pm_serials.c