about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--example/src/middle.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/example/src/middle.c b/example/src/middle.c
index 6bd4e85..57c6e5b 100644
--- a/example/src/middle.c
+++ b/example/src/middle.c
@@ -4,22 +4,6 @@
 
 #include "uv_link_t.h"
 
-static int read_start_impl(uv_link_t* link) {
-  return uv_link_read_start(link->parent);
-}
-
-
-static int read_stop_impl(uv_link_t* link) {
-  return uv_link_read_stop(link->parent);
-}
-
-
-static void close_impl(uv_link_t* link, uv_link_t* source,
-                       uv_link_close_cb cb) {
-  cb(source);
-}
-
-
 static void alloc_cb_override(uv_link_t* link,
                               size_t suggested_size,
                               uv_buf_t* buf) {
@@ -57,9 +41,9 @@ static void read_cb_override(uv_link_t* link,
 
 
 uv_link_methods_t middle_methods = {
-  .read_start = read_start_impl,
-  .read_stop = read_stop_impl,
-  .close = close_impl,
+  .read_start = uv_link_default_read_start,
+  .read_stop = uv_link_default_read_stop,
+  .close = uv_link_default_close,
 
   /* Other doesn't matter in this example */
   .alloc_cb_override = alloc_cb_override,
d=37fe21b64ac348e7412c524a8a6e05d4fe6f877c'>^
b652b3cd5 ^
e25474154 ^
d68181246 ^
2f43fdb83 ^
902bf0587 ^
d68181246 ^
e25474154 ^




9764ba933 ^
367abca38 ^
773d17cd1 ^




b4e5c9d07 ^
e25474154 ^
ed5b7cbac ^
773d17cd1 ^
4de84024e ^

e25474154 ^
4de84024e ^
e25474154 ^
902bf0587 ^

4de84024e ^



e25474154 ^
d68181246 ^
e25474154 ^

4de84024e ^
e25474154 ^
d68181246 ^
4de84024e ^


e25474154 ^
4de84024e ^


e25474154 ^
d68181246 ^
e25474154 ^

d68181246 ^
e25474154 ^
e25474154 ^
b4e5c9d07 ^


4de84024e ^

d68181246 ^


e25474154 ^

b4e5c9d07 ^

d68181246 ^
4de84024e ^
e25474154 ^






f18b3af9d ^
b4e5c9d07 ^

d68181246 ^
b4e5c9d07 ^

d68181246 ^
4de84024e ^

b4e5c9d07 ^

4de84024e ^

b4e5c9d07 ^

4de84024e ^
773d17cd1 ^
40ec7be45 ^





cc28eef38 ^
40ec7be45 ^
773d17cd1 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118