NCBI C++ ToolKit
Functions | Variables
ncbi_priv.c File Reference
#include "ncbi_priv.h"
#include <unistd.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for ncbi_priv.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

unsigned int g_NCBI_ConnectSrandAddend (void)
 
int g_NCBI_CoreCheckLock (void)
 
int g_NCBI_CoreCheckUnlock (void)
 
const char * g_CORE_Sprintf (const char *fmt,...)
 
const char * g_CORE_RegistryGET (const char *section, const char *name, char *value, size_t value_size, const char *def_value)
 
int g_CORE_RegistrySET (const char *section, const char *name, const char *value, EREG_Storage storage)
 

Variables

TCORE_Set g_CORE_Set = 0
 
MT_LOCK g_CORE_MT_Lock = &g_CORE_MT_Lock_default
 
LOG g_CORE_Log = 0
 
REG g_CORE_Registry = 0
 
unsigned int g_NCBI_ConnectRandomSeed = 0
 
FNcbiGetAppName g_CORE_GetAppName = 0
 
FNcbiGetReferer g_CORE_GetReferer = 0
 
FNcbiGetRequestID g_CORE_GetRequestID = 0
 
FNcbiGetRequestDtab g_CORE_GetRequestDtab = 0
 
static MT_LOCK s_CoreLock = 0
 

Function Documentation

◆ g_CORE_RegistryGET()

const char* g_CORE_RegistryGET ( const char *  section,
const char *  name,
char *  value,
size_t  value_size,
const char *  def_value 
)

Definition at line 136 of file ncbi_priv.c.

References CORE_LOCK_READ, CORE_UNLOCK, g_CORE_Registry, REG_Get(), and rapidjson::value.

◆ g_CORE_RegistrySET()

int g_CORE_RegistrySET ( const char *  section,
const char *  name,
const char *  value,
EREG_Storage  storage 
)

Definition at line 152 of file ncbi_priv.c.

References CORE_LOCK_READ, CORE_UNLOCK, g_CORE_Registry, REG_Set(), and rapidjson::value.

◆ g_CORE_Sprintf()

const char* g_CORE_Sprintf ( const char *  fmt,
  ... 
)

Definition at line 107 of file ncbi_priv.c.

References assert, buf, int, len, malloc(), and vsnprintf.

◆ g_NCBI_ConnectSrandAddend()

unsigned int g_NCBI_ConnectSrandAddend ( void  )

Definition at line 67 of file ncbi_priv.c.

References eDefault, and SOCK_GetLocalHostAddress().

◆ g_NCBI_CoreCheckLock()

int g_NCBI_CoreCheckLock ( void  )

Definition at line 85 of file ncbi_priv.c.

References g_CORE_MT_Lock, and s_CoreLock.

◆ g_NCBI_CoreCheckUnlock()

int g_NCBI_CoreCheckUnlock ( void  )

Definition at line 92 of file ncbi_priv.c.

References assert, CORE_LOG, eLOG_Critical, g_CORE_MT_Lock, g_CORE_MT_Lock_default, and s_CoreLock.

Variable Documentation

◆ g_CORE_GetAppName

FNcbiGetAppName g_CORE_GetAppName = 0

Definition at line 52 of file ncbi_priv.c.

Referenced by CORE_GetAppName(), and s_Init().

◆ g_CORE_GetReferer

FNcbiGetReferer g_CORE_GetReferer = 0

Definition at line 53 of file ncbi_priv.c.

Referenced by s_Init(), and x_GetReferer().

◆ g_CORE_GetRequestDtab

FNcbiGetRequestDtab g_CORE_GetRequestDtab = 0

Definition at line 55 of file ncbi_priv.c.

Referenced by s_Init().

◆ g_CORE_GetRequestID

FNcbiGetRequestID g_CORE_GetRequestID = 0

Definition at line 54 of file ncbi_priv.c.

Referenced by CORE_GetNcbiRequestID(), and s_Init().

◆ g_CORE_Log

LOG g_CORE_Log = 0

Definition at line 49 of file ncbi_priv.c.

Referenced by CORE_GetLOG(), CORE_SetLOG(), and s_CORE_MT_Lock_default_handler().

◆ g_CORE_MT_Lock

MT_LOCK g_CORE_MT_Lock = &g_CORE_MT_Lock_default

◆ g_CORE_Registry

REG g_CORE_Registry = 0

Definition at line 50 of file ncbi_priv.c.

Referenced by CORE_GetREG(), CORE_SetREG(), g_CORE_RegistryGET(), and g_CORE_RegistrySET().

◆ g_CORE_Set

TCORE_Set g_CORE_Set = 0

◆ g_NCBI_ConnectRandomSeed

unsigned int g_NCBI_ConnectRandomSeed = 0

◆ s_CoreLock

MT_LOCK s_CoreLock = 0
static

Definition at line 83 of file ncbi_priv.c.

Referenced by g_NCBI_CoreCheckLock(), and g_NCBI_CoreCheckUnlock().

Modified on Fri Sep 20 14:57:43 2024 by modify_doxy.py rev. 669887