#include "gwlib/gwlib.h"
#include "shared.h"
#include "bearerbox.h"
Go to the source code of this file.
◆ check_args()
static int check_args |
( |
int |
i, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 81 of file test_store_dump.c.
References check_args(), counter, get_and_set_debugs(), gwlib_init(), gwlib_shutdown(), info(), msg_pack(), msg_unpack_wrapper(), octstr_create, octstr_imm(), panic, print_msg(), store_init(), store_load, and type.
90 if (argv[cf_index] == NULL)
91 panic(0,
"Usage: %s <store-file>", argv[0]);
101 info(0,
"Store file contains %d msg entries",
counter);
102 info(0,
"Shutting down.");
void info(int err, const char *fmt,...)
static int check_args(int i, int argc, char **argv)
Msg * msg_unpack_wrapper(Octstr *os)
Octstr * octstr_imm(const char *cstr)
int store_init(Cfg *cfg, const Octstr *type, const Octstr *fname, long dump_freq, void *pack_func, void *unpack_func)
#define octstr_create(cstr)
static void print_msg(Msg *msg)
int(* store_load)(void(*receive_msg)(Msg *))
void gwlib_shutdown(void)
Octstr * msg_pack(Msg *msg)
int get_and_set_debugs(int argc, char **argv, int(*find_own)(int index, int argc, char **argv))
◆ print_msg()
static void print_msg |
( |
Msg * |
msg | ) |
|
|
static |
◆ counter