#include <time.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <signal.h>
#include "../dprint.h"
#include "../globals.h"
#include "../ut.h"
#include "../pt.h"
#include "../mem/mem.h"
#include "mi.h"
#include "../version.h"

Go to the source code of this file.
Defines | |
| #define | BUILD_STR __FILE__ " compiled on "__TIME__ " " __DATE__ " with " COMPILER "\n" |
| #define | BUILD_STR_LEN (sizeof(BUILD_STR)-1) |
| #define | SVNREVISION "unknown" |
Functions | |
| int | init_mi_core (void) |
| static int | init_mi_uptime (void) |
| static struct mi_root * | mi_arg (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_debug (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_kill (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_ps (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_pwd (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_uptime (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_version (struct mi_root *cmd, void *param) |
| static struct mi_root * | mi_which (struct mi_root *cmd, void *param) |
Variables | |
| static mi_export_t | mi_core_cmds [] |
| static time_t | up_since |
| static str | up_since_ctime |
Definition in file mi_core.c.
| #define BUILD_STR __FILE__ " compiled on "__TIME__ " " __DATE__ " with " COMPILER "\n" |
| #define BUILD_STR_LEN (sizeof(BUILD_STR)-1) |
| #define SVNREVISION "unknown" |
Definition at line 56 of file mi_core.c.
Referenced by main(), mi_version(), and print_ct_constants().
| int init_mi_core | ( | void | ) |
Definition at line 364 of file mi_core.c.
References LM_ERR, and register_mi_mod().
Referenced by main().
| static int init_mi_uptime | ( | void | ) | [static] |
Definition at line 200 of file mi_core.c.
References add_mi_node_child(), free_mi_tree(), init_mi_tree(), LM_ERR, MI_OK, MI_SSTR, my_argc, my_argv, and mi_root::node.
Definition at line 310 of file mi_core.c.
References add_mi_node_child(), debug, free_mi_tree(), init_mi_tree(), mi_node::kids, len, MI_BAD_PARM, MI_DUP_VALUE, MI_OK, MI_SSTR, mi_root::node, NULL, sint2str(), str2sint(), and mi_node::value.
Definition at line 256 of file mi_core.c.
References add_mi_attr(), add_mi_node_child(), counted_processes, free_mi_tree(), init_mi_tree(), int2str(), len, LM_ERR, MI_DUP_VALUE, MI_OK, MI_SSTR, mi_root::node, pid, and pt.
Definition at line 159 of file mi_core.c.
References add_mi_node_child(), free_mi_tree(), init_mi_tree(), LM_ERR, MI_OK, MI_SSTR, mi_root::node, NULL, pathmax(), and pkg_malloc.
Definition at line 79 of file mi_core.c.
References add_mi_node_child(), addf_mi_node_child(), free_mi_tree(), init_mi_tree(), _str::len, LM_ERR, MI_DUP_VALUE, MI_OK, MI_SSTR, mi_root::node, _str::s, and up_since.
Definition at line 116 of file mi_core.c.
References add_mi_node_child(), BUILD_STR, BUILD_STR_LEN, free_mi_tree(), init_mi_tree(), KAMAILIO_COMPILE_FLAGS, LM_ERR, MI_OK, MI_SSTR, mi_root::node, SERVER_HDR, SERVER_HDR_LEN, and SVNREVISION.
Definition at line 226 of file mi_core.c.
References add_mi_node_child(), cmds, free_mi_tree(), get_mi_cmds(), init_mi_tree(), _str::len, LM_ERR, MI_OK, MI_SSTR, mi_cmd::name, mi_node::name, mi_root::node, and _str::s.
mi_export_t mi_core_cmds[] [static] |
time_t up_since [static] |
str up_since_ctime [static] |
1.5.6