flat_con.c File Reference

#include <string.h>
#include <errno.h>
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../ut.h"
#include "flatstore_mod.h"
#include "flat_con.h"

Include dependency graph for flat_con.c:

Go to the source code of this file.

Defines

#define FILE_SUFFIX   ".log"
#define FILE_SUFFIX_LEN   (sizeof(FILE_SUFFIX) - 1)

Functions

void flat_free_connection (struct flat_con *con)
struct flat_conflat_new_connection (struct flat_id *id)
int flat_reopen_connection (struct flat_con *con)
static char * get_name (struct flat_id *id)


Define Documentation

#define FILE_SUFFIX   ".log"

Definition at line 33 of file flat_con.c.

Referenced by get_name().

#define FILE_SUFFIX_LEN   (sizeof(FILE_SUFFIX) - 1)

Definition at line 34 of file flat_con.c.

Referenced by get_name().


Function Documentation

void flat_free_connection ( struct flat_con con  ) 

Definition at line 136 of file flat_con.c.

References flat_con::file, free_flat_id(), flat_con::id, and pkg_free.

Referenced by flat_release_connection().

struct flat_con* flat_new_connection ( struct flat_id id  )  [read]

Definition at line 93 of file flat_con.c.

References flat_con::file, get_name(), flat_con::id, LM_ERR, pkg_free, pkg_malloc, and flat_con::ref.

Referenced by flat_get_connection().

int flat_reopen_connection ( struct flat_con con  ) 

Definition at line 150 of file flat_con.c.

References flat_con::file, get_name(), flat_con::id, LM_ERR, and pkg_free.

Referenced by flat_rotate_logs().

static char* get_name ( struct flat_id id  )  [static]


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6