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

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_con * | flat_new_connection (struct flat_id *id) |
| int | flat_reopen_connection (struct flat_con *con) |
| static char * | get_name (struct flat_id *id) |
| #define FILE_SUFFIX ".log" |
| #define FILE_SUFFIX_LEN (sizeof(FILE_SUFFIX) - 1) |
| 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().
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] |
Definition at line 37 of file flat_con.c.
References buf, buf_len, flat_id::dir, FILE_SUFFIX, FILE_SUFFIX_LEN, flat_pid, int2str(), _str::len, LM_ERR, pathmax(), pkg_free, pkg_malloc, _str::s, and flat_id::table.
Referenced by flat_new_connection(), and flat_reopen_connection().
1.5.6