Classes | Namespaces | Macros | Typedefs | Functions
global_config_env.h File Reference
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include "src/core/lib/gprpp/global_config_generic.h"
#include "src/core/lib/gprpp/memory.h"
Include dependency graph for global_config_env.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  grpc_core::GlobalConfigEnv
 
class  grpc_core::GlobalConfigEnvBool
 
class  grpc_core::GlobalConfigEnvInt32
 
class  grpc_core::GlobalConfigEnvString
 

Namespaces

 grpc_core
 

Macros

#define GPR_GLOBAL_CONFIG_DEFINE_BOOL(name, default_value, help)
 
#define GPR_GLOBAL_CONFIG_DEFINE_INT32(name, default_value, help)
 
#define GPR_GLOBAL_CONFIG_DEFINE_STRING(name, default_value, help)
 

Typedefs

typedef void(* grpc_core::GlobalConfigEnvErrorFunctionType) (const char *error_message)
 

Functions

void grpc_core::SetGlobalConfigEnvErrorFunction (GlobalConfigEnvErrorFunctionType func)
 

Macro Definition Documentation

◆ GPR_GLOBAL_CONFIG_DEFINE_BOOL

#define GPR_GLOBAL_CONFIG_DEFINE_BOOL (   name,
  default_value,
  help 
)
Value:
static char g_env_str_##name[] = #name; \
static ::grpc_core::GlobalConfigEnvBool g_env_##name(g_env_str_##name, \
default_value); \
bool gpr_global_config_get_##name() { return g_env_##name.Get(); } \
void gpr_global_config_set_##name(bool value) { g_env_##name.Set(value); }

Definition at line 108 of file global_config_env.h.

◆ GPR_GLOBAL_CONFIG_DEFINE_INT32

#define GPR_GLOBAL_CONFIG_DEFINE_INT32 (   name,
  default_value,
  help 
)
Value:
static char g_env_str_##name[] = #name; \
static ::grpc_core::GlobalConfigEnvInt32 g_env_##name(g_env_str_##name, \
default_value); \
int32_t gpr_global_config_get_##name() { return g_env_##name.Get(); } \
void gpr_global_config_set_##name(int32_t value) { g_env_##name.Set(value); }

Definition at line 115 of file global_config_env.h.

◆ GPR_GLOBAL_CONFIG_DEFINE_STRING

#define GPR_GLOBAL_CONFIG_DEFINE_STRING (   name,
  default_value,
  help 
)
Value:
static char g_env_str_##name[] = #name; \
static ::grpc_core::GlobalConfigEnvString g_env_##name(g_env_str_##name, \
default_value); \
::grpc_core::UniquePtr<char> gpr_global_config_get_##name() { \
return g_env_##name.Get(); \
} \
void gpr_global_config_set_##name(const char* value) { \
g_env_##name.Set(value); \
}

Definition at line 122 of file global_config_env.h.

setup.name
name
Definition: setup.py:542
grpc_core::UniquePtr
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
Definition: src/core/lib/gprpp/memory.h:43
value
const char * value
Definition: hpack_parser_table.cc:165
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:13