CUBRID Engine  latest
broker_log_converter.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "cubrid_getopt.h"
#include "cas_common.h"
#include "cas_cci.h"
#include "broker_log_util.h"
Include dependency graph for broker_log_converter.c:

Go to the source code of this file.

Functions

static int get_args (int argc, char *argv[])
 
static int open_file (char *infilename, char *outfilename, FILE **infp, FILE **outfp)
 
static int log_converter (FILE *infp, FILE *outfp)
 
static void close_file (FILE *infp, FILE *outfp)
 
static int log_bind_value (char *str, int bind_len, int lineno, FILE *outfp)
 
int main (int argc, char *argv[])
 

Variables

static char add_query_info = 0
 
static char add_query_id = 0
 
static char * infilename = NULL
 

Function Documentation

static void close_file ( FILE *  infp,
FILE *  outfp 
)
static

Definition at line 223 of file broker_log_converter.c.

Referenced by main().

Here is the caller graph for this function:

static int get_args ( int  argc,
char *  argv[] 
)
static

Definition at line 419 of file broker_log_converter.c.

References add_query_id, add_query_info, getopt(), optind, and usage().

Referenced by main().

Here is the caller graph for this function:

static int log_bind_value ( char *  str,
int  bind_len,
int  lineno,
FILE *  outfp 
)
static

Definition at line 234 of file broker_log_converter.c.

References NULL, and p.

Referenced by log_converter().

Here is the caller graph for this function:

static int log_converter ( FILE *  infp,
FILE *  outfp 
)
static
int main ( int  argc,
char *  argv[] 
)

Definition at line 49 of file broker_log_converter.c.

References close_file(), get_args(), infilename, log_converter(), NULL, and open_file().

static int open_file ( char *  infilename,
char *  outfilename,
FILE **  infp,
FILE **  outfp 
)
static

Definition at line 189 of file broker_log_converter.c.

References NULL.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

char add_query_id = 0
static

Definition at line 45 of file broker_log_converter.c.

Referenced by get_args(), and log_converter().

char add_query_info = 0
static

Definition at line 44 of file broker_log_converter.c.

Referenced by get_args(), and log_converter().

char* infilename = NULL
static

Definition at line 46 of file broker_log_converter.c.

Referenced by log_converter(), and main().