Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
core
ext
transport
cronet
transport
cronet_api_phony.cc
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
/* This file has empty implementation of all the functions exposed by the cronet
20
library, so we can build it in all environments */
21
22
#include <
grpc/support/port_platform.h
>
23
24
#include "
third_party/objective_c/Cronet/bidirectional_stream_c.h
"
25
26
#include <
grpc/support/log.h
>
27
28
#ifdef GRPC_COMPILE_WITH_CRONET
29
/* link with the real CRONET library in the build system */
30
#else
31
/* Phony implementation of cronet API just to test for build-ability */
32
bidirectional_stream
*
bidirectional_stream_create
(
33
stream_engine
*
/*engine*/
,
void
*
/*annotation*/
,
34
bidirectional_stream_callback
*
/*callback*/
) {
35
GPR_ASSERT
(0);
36
return
nullptr
;
37
}
38
39
int
bidirectional_stream_destroy
(
bidirectional_stream
*
/*stream*/
) {
40
GPR_ASSERT
(0);
41
return
0;
42
}
43
44
int
bidirectional_stream_start
(
45
bidirectional_stream
*
/*stream*/
,
const
char
*
/*url*/
,
int
/*priority*/
,
46
const
char
*
/*method*/
,
47
const
bidirectional_stream_header_array
*
/*headers*/
,
48
bool
/*end_of_stream*/
) {
49
GPR_ASSERT
(0);
50
return
0;
51
}
52
53
int
bidirectional_stream_read
(
bidirectional_stream
*
/*stream*/
,
54
char
*
/*buffer*/
,
int
/*capacity*/
) {
55
GPR_ASSERT
(0);
56
return
0;
57
}
58
59
int
bidirectional_stream_write
(
bidirectional_stream
*
/*stream*/
,
60
const
char
*
/*buffer*/
,
int
/*count*/
,
61
bool
/*end_of_stream*/
) {
62
GPR_ASSERT
(0);
63
return
0;
64
}
65
66
void
bidirectional_stream_cancel
(
bidirectional_stream
*
/*stream*/
) {
67
GPR_ASSERT
(0);
68
}
69
70
void
bidirectional_stream_disable_auto_flush
(
bidirectional_stream
*
/*stream*/
,
71
bool
/*disable_auto_flush*/
) {
72
GPR_ASSERT
(0);
73
}
74
75
void
bidirectional_stream_delay_request_headers_until_flush
(
76
bidirectional_stream
*
/*stream*/
,
bool
/*delay_headers_until_flush*/
) {
77
GPR_ASSERT
(0);
78
}
79
80
void
bidirectional_stream_flush
(
bidirectional_stream
*
/*stream*/
) {
81
GPR_ASSERT
(0);
82
}
83
84
#endif
/* GRPC_COMPILE_WITH_CRONET */
log.h
bidirectional_stream_cancel
void bidirectional_stream_cancel(bidirectional_stream *)
Definition:
cronet_api_phony.cc:66
bidirectional_stream
Definition:
bidirectional_stream_c.h:33
bidirectional_stream_c.h
bidirectional_stream_start
int bidirectional_stream_start(bidirectional_stream *, const char *, int, const char *, const bidirectional_stream_header_array *, bool)
Definition:
cronet_api_phony.cc:44
GPR_ASSERT
#define GPR_ASSERT(x)
Definition:
include/grpc/impl/codegen/log.h:94
bidirectional_stream_disable_auto_flush
void bidirectional_stream_disable_auto_flush(bidirectional_stream *, bool)
Definition:
cronet_api_phony.cc:70
bidirectional_stream_create
bidirectional_stream * bidirectional_stream_create(stream_engine *, void *, bidirectional_stream_callback *)
Definition:
cronet_api_phony.cc:32
bidirectional_stream_delay_request_headers_until_flush
void bidirectional_stream_delay_request_headers_until_flush(bidirectional_stream *, bool)
Definition:
cronet_api_phony.cc:75
stream_engine
Definition:
bidirectional_stream_c.h:25
bidirectional_stream_destroy
int bidirectional_stream_destroy(bidirectional_stream *)
Definition:
cronet_api_phony.cc:39
bidirectional_stream_header_array
Definition:
bidirectional_stream_c.h:45
bidirectional_stream_write
int bidirectional_stream_write(bidirectional_stream *, const char *, int, bool)
Definition:
cronet_api_phony.cc:59
bidirectional_stream_read
int bidirectional_stream_read(bidirectional_stream *, char *, int)
Definition:
cronet_api_phony.cc:53
bidirectional_stream_flush
void bidirectional_stream_flush(bidirectional_stream *)
Definition:
cronet_api_phony.cc:80
bidirectional_stream_callback
Definition:
bidirectional_stream_c.h:52
port_platform.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:00