grpc
include
grpc
impl
codegen
gpr_types.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright 2016 gRPC authors.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*/
18
19
#ifndef GRPC_IMPL_CODEGEN_GPR_TYPES_H
20
#define GRPC_IMPL_CODEGEN_GPR_TYPES_H
21
22
// IWYU pragma: private, include <grpc/grpc.h>
23
// IWYU pragma: friend "src/.*"
24
25
#include <
grpc/impl/codegen/port_platform.h
>
26
27
#include <stddef.h>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
34
typedef
enum
{
36
GPR_CLOCK_MONOTONIC
= 0,
39
GPR_CLOCK_REALTIME
,
42
GPR_CLOCK_PRECISE
,
45
GPR_TIMESPAN
46
}
gpr_clock_type
;
47
50
typedef
struct
gpr_timespec
{
51
int64_t
tv_sec
;
52
int32_t
tv_nsec
;
55
gpr_clock_type
clock_type
;
56
}
gpr_timespec
;
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
/* GRPC_IMPL_CODEGEN_GPR_TYPES_H */
gpr_timespec::tv_nsec
int32_t tv_nsec
Definition:
gpr_types.h:52
GPR_TIMESPAN
@ GPR_TIMESPAN
Definition:
gpr_types.h:45
gpr_timespec::tv_sec
int64_t tv_sec
Definition:
gpr_types.h:51
int64_t
signed __int64 int64_t
Definition:
stdint-msvc2008.h:89
GPR_CLOCK_MONOTONIC
@ GPR_CLOCK_MONOTONIC
Definition:
gpr_types.h:36
gpr_timespec::clock_type
gpr_clock_type clock_type
Definition:
gpr_types.h:55
GPR_CLOCK_PRECISE
@ GPR_CLOCK_PRECISE
Definition:
gpr_types.h:42
gpr_timespec
struct gpr_timespec gpr_timespec
port_platform.h
gpr_timespec
Definition:
gpr_types.h:50
GPR_CLOCK_REALTIME
@ GPR_CLOCK_REALTIME
Definition:
gpr_types.h:39
int32_t
signed int int32_t
Definition:
stdint-msvc2008.h:77
gpr_clock_type
gpr_clock_type
Definition:
gpr_types.h:34
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:44