grpc
src
core
lib
security
authorization
authorization_policy_provider_vtable.cc
Go to the documentation of this file.
1
// Copyright 2021 gRPC authors.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#include <
grpc/support/port_platform.h
>
16
17
#include <
grpc/grpc.h
>
18
#include <
grpc/grpc_security.h
>
19
#include <
grpc/impl/codegen/grpc_types.h
>
20
21
#include "
src/core/lib/gpr/useful.h
"
22
#include "
src/core/lib/gprpp/ref_counted_ptr.h
"
23
#include "
src/core/lib/security/authorization/authorization_policy_provider.h
"
24
25
namespace
{
26
27
void
* ProviderArgCopy(
void
*
p
) {
28
grpc_authorization_policy_provider
* provider =
29
static_cast<
grpc_authorization_policy_provider
*
>
(
p
);
30
provider->
Ref
().
release
();
31
return
provider;
32
}
33
34
void
ProviderArgDestroy(
void
*
p
) {
35
grpc_authorization_policy_provider
* provider =
36
static_cast<
grpc_authorization_policy_provider
*
>
(
p
);
37
provider->
Unref
();
38
}
39
40
int
ProviderArgCmp(
void
*
p
,
void
* q) {
return
grpc_core::QsortCompare
(
p
, q); }
41
42
}
// namespace
43
44
// Wrapper API declared in grpc.h
45
46
const
grpc_arg_pointer_vtable
*
grpc_authorization_policy_provider_arg_vtable
() {
47
static
const
grpc_arg_pointer_vtable
vtable
= {
48
ProviderArgCopy, ProviderArgDestroy, ProviderArgCmp};
49
return
&
vtable
;
50
}
vtable
static const grpc_transport_vtable vtable
Definition:
binder_transport.cc:680
grpc_authorization_policy_provider_arg_vtable
const grpc_arg_pointer_vtable * grpc_authorization_policy_provider_arg_vtable()
Definition:
authorization_policy_provider_vtable.cc:46
useful.h
grpc_authorization_policy_provider
Definition:
src/core/lib/security/authorization/authorization_policy_provider.h:30
grpc_core::RefCountedPtr::release
T * release()
Definition:
ref_counted_ptr.h:140
xds_manager.p
p
Definition:
xds_manager.py:60
grpc_security.h
grpc_arg_pointer_vtable
Definition:
grpc_types.h:85
grpc_types.h
grpc.h
grpc_core::DualRefCounted::Ref
RefCountedPtr< Child > Ref() GRPC_MUST_USE_RESULT
Definition:
dual_ref_counted.h:52
grpc_core::DualRefCounted::Unref
void Unref()
Definition:
dual_ref_counted.h:63
grpc_core::QsortCompare
int QsortCompare(const T &a, const T &b)
Definition:
useful.h:95
ref_counted_ptr.h
authorization_policy_provider.h
port_platform.h
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:45