grpc
third_party
boringssl-with-bazel
src
crypto
pool
third_party/boringssl-with-bazel/src/crypto/pool/internal.h
Go to the documentation of this file.
1
/* Copyright (c) 2016, Google Inc.
2
*
3
* Permission to use, copy, modify, and/or distribute this software for any
4
* purpose with or without fee is hereby granted, provided that the above
5
* copyright notice and this permission notice appear in all copies.
6
*
7
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
14
15
#ifndef OPENSSL_HEADER_POOL_INTERNAL_H
16
#define OPENSSL_HEADER_POOL_INTERNAL_H
17
18
#include <
openssl/lhash.h
>
19
#include <
openssl/thread.h
>
20
21
#include "../lhash/internal.h"
22
23
24
#if defined(__cplusplus)
25
extern
"C"
{
26
#endif
27
28
29
DEFINE_LHASH_OF
(
CRYPTO_BUFFER
)
30
31
struct
crypto_buffer_st
{
32
CRYPTO_BUFFER_POOL
*
pool
;
33
uint8_t
*
data
;
34
size_t
len
;
35
CRYPTO_refcount_t
references
;
36
int
data_is_static
;
37
};
38
39
struct
crypto_buffer_pool_st
{
40
LHASH_OF
(
CRYPTO_BUFFER
) *
bufs
;
41
CRYPTO_MUTEX
lock
;
42
};
43
44
45
#if defined(__cplusplus)
46
}
// extern C
47
#endif
48
49
#endif // OPENSSL_HEADER_POOL_INTERNAL_H
crypto_buffer_st::pool
CRYPTO_BUFFER_POOL * pool
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:32
crypto_buffer_st::references
CRYPTO_refcount_t references
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:35
crypto_buffer_pool_st::LHASH_OF
LHASH_OF(CRYPTO_BUFFER) *bufs
crypto_buffer_st::data
uint8_t * data
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:33
crypto_buffer_st::len
size_t len
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:34
crypto_buffer_st
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:31
uint8_t
unsigned char uint8_t
Definition:
stdint-msvc2008.h:78
gen_build_yaml.struct
def struct(**kwargs)
Definition:
test/core/end2end/gen_build_yaml.py:30
lhash.h
crypto_buffer_pool_st::lock
CRYPTO_MUTEX lock
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:41
bufs
static uv_buf_t bufs[5]
Definition:
benchmark-udp-pummel.c:51
DEFINE_LHASH_OF
#define DEFINE_LHASH_OF(type)
Definition:
third_party/boringssl-with-bazel/src/crypto/lhash/internal.h:159
crypto_buffer_pool_st
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:39
crypto_buffer_st::data_is_static
int data_is_static
Definition:
third_party/boringssl-with-bazel/src/crypto/pool/internal.h:36
thread.h
CRYPTO_refcount_t
uint32_t CRYPTO_refcount_t
Definition:
thread.h:101
crypto_mutex_st
Definition:
thread.h:70
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:07