GRPC C++  1.39.1
Macros | Functions
json_util.h File Reference
#include <grpc/support/port_platform.h>
#include <stdbool.h>
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/json/json.h"

Go to the source code of this file.

Macros

#define GRPC_AUTH_JSON_TYPE_INVALID   "invalid"
 
#define GRPC_AUTH_JSON_TYPE_SERVICE_ACCOUNT   "service_account"
 
#define GRPC_AUTH_JSON_TYPE_AUTHORIZED_USER   "authorized_user"
 
#define GRPC_AUTH_JSON_TYPE_EXTERNAL_ACCOUNT   "external_account"
 

Functions

const char * grpc_json_get_string_property (const grpc_core::Json &json, const char *prop_name, grpc_error_handle *error)
 
bool grpc_copy_json_string_property (const grpc_core::Json &json, const char *prop_name, char **copied_value)
 

Macro Definition Documentation

◆ GRPC_AUTH_JSON_TYPE_AUTHORIZED_USER

#define GRPC_AUTH_JSON_TYPE_AUTHORIZED_USER   "authorized_user"

◆ GRPC_AUTH_JSON_TYPE_EXTERNAL_ACCOUNT

#define GRPC_AUTH_JSON_TYPE_EXTERNAL_ACCOUNT   "external_account"

◆ GRPC_AUTH_JSON_TYPE_INVALID

#define GRPC_AUTH_JSON_TYPE_INVALID   "invalid"

◆ GRPC_AUTH_JSON_TYPE_SERVICE_ACCOUNT

#define GRPC_AUTH_JSON_TYPE_SERVICE_ACCOUNT   "service_account"

Function Documentation

◆ grpc_copy_json_string_property()

bool grpc_copy_json_string_property ( const grpc_core::Json json,
const char *  prop_name,
char **  copied_value 
)

◆ grpc_json_get_string_property()

const char* grpc_json_get_string_property ( const grpc_core::Json json,
const char *  prop_name,
grpc_error_handle error 
)