#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/status_util.h"
#include <string.h>
#include "src/core/lib/gpr/useful.h"
Go to the source code of this file.
Classes | |
struct | status_string_entry |
Functions | |
bool | grpc_status_code_from_int (int status_int, grpc_status_code *status) |
bool | grpc_status_code_from_string (const char *status_str, grpc_status_code *status) |
const char * | grpc_status_code_to_string (grpc_status_code status) |
Returns the string form of status, or "UNKNOWN" if invalid. More... | |
Variables | |
static const status_string_entry | g_status_string_entries [] |
bool grpc_status_code_from_int | ( | int | status_int, |
grpc_status_code * | status | ||
) |
Definition at line 103 of file status_util.cc.
bool grpc_status_code_from_string | ( | const char * | status_str, |
grpc_status_code * | status | ||
) |
If status_str is a valid status string, sets status to the corresponding status value and returns true.
Definition at line 51 of file status_util.cc.
const char* grpc_status_code_to_string | ( | grpc_status_code | status | ) |
Returns the string form of status, or "UNKNOWN" if invalid.
Definition at line 62 of file status_util.cc.
|
static |
Definition at line 31 of file status_util.cc.