Craig Tiller | 04b7ca8 | 2016-03-29 08:07:54 -0700 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * Copyright 2016, Google Inc. |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions are |
| 8 | * met: |
| 9 | * |
| 10 | * * Redistributions of source code must retain the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer. |
| 12 | * * Redistributions in binary form must reproduce the above |
| 13 | * copyright notice, this list of conditions and the following disclaimer |
| 14 | * in the documentation and/or other materials provided with the |
| 15 | * distribution. |
| 16 | * * Neither the name of Google Inc. nor the names of its |
| 17 | * contributors may be used to endorse or promote products derived from |
| 18 | * this software without specific prior written permission. |
| 19 | * |
| 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | * |
| 32 | */ |
Craig Tiller | fb43385 | 2016-03-29 08:51:07 -0700 | [diff] [blame] | 33 | |
| 34 | #include <grpc/grpc.h> |
| 35 | |
Craig Tiller | af76743 | 2017-04-03 13:54:31 -0700 | [diff] [blame] | 36 | extern void grpc_http_filters_init(void); |
| 37 | extern void grpc_http_filters_shutdown(void); |
Craig Tiller | f82ddc4 | 2016-04-05 17:15:07 -0700 | [diff] [blame] | 38 | extern void grpc_chttp2_plugin_init(void); |
| 39 | extern void grpc_chttp2_plugin_shutdown(void); |
Craig Tiller | 3be7dd0 | 2017-04-03 14:30:03 -0700 | [diff] [blame] | 40 | extern void grpc_deadline_filter_init(void); |
| 41 | extern void grpc_deadline_filter_shutdown(void); |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 42 | extern void grpc_client_channel_init(void); |
| 43 | extern void grpc_client_channel_shutdown(void); |
Yuchen Zeng | d4bbfc7 | 2016-08-05 10:33:16 -0700 | [diff] [blame] | 44 | extern void grpc_resolver_dns_ares_init(void); |
| 45 | extern void grpc_resolver_dns_ares_shutdown(void); |
Yuchen Zeng | fdae4bd | 2016-11-07 17:46:16 -0800 | [diff] [blame] | 46 | extern void grpc_resolver_dns_native_init(void); |
| 47 | extern void grpc_resolver_dns_native_shutdown(void); |
Craig Tiller | 65938df | 2016-03-31 13:08:49 -0700 | [diff] [blame] | 48 | extern void grpc_resolver_sockaddr_init(void); |
| 49 | extern void grpc_resolver_sockaddr_shutdown(void); |
David Garcia Quintas | 4bb11ac | 2016-05-02 09:20:21 -0700 | [diff] [blame] | 50 | extern void grpc_load_reporting_plugin_init(void); |
| 51 | extern void grpc_load_reporting_plugin_shutdown(void); |
David Garcia Quintas | 3fb8f73 | 2016-06-15 22:53:08 -0700 | [diff] [blame] | 52 | extern void grpc_lb_policy_grpclb_init(void); |
| 53 | extern void grpc_lb_policy_grpclb_shutdown(void); |
Craig Tiller | fb43385 | 2016-03-29 08:51:07 -0700 | [diff] [blame] | 54 | extern void grpc_lb_policy_pick_first_init(void); |
| 55 | extern void grpc_lb_policy_pick_first_shutdown(void); |
| 56 | extern void grpc_lb_policy_round_robin_init(void); |
| 57 | extern void grpc_lb_policy_round_robin_shutdown(void); |
Craig Tiller | 8f8e9f9 | 2016-03-29 09:41:28 -0700 | [diff] [blame] | 58 | extern void census_grpc_plugin_init(void); |
| 59 | extern void census_grpc_plugin_shutdown(void); |
Craig Tiller | 6d4894e | 2017-03-31 17:22:06 -0700 | [diff] [blame] | 60 | extern void grpc_max_age_filter_init(void); |
| 61 | extern void grpc_max_age_filter_shutdown(void); |
Craig Tiller | 9b3648a | 2017-04-03 12:25:19 -0700 | [diff] [blame] | 62 | extern void grpc_message_size_filter_init(void); |
| 63 | extern void grpc_message_size_filter_shutdown(void); |
Muxi Yan | 29ff466 | 2017-05-15 10:27:55 -0700 | [diff] [blame] | 64 | extern void grpc_workaround_cronet_compression_filter_init(void); |
| 65 | extern void grpc_workaround_cronet_compression_filter_shutdown(void); |
Craig Tiller | fb43385 | 2016-03-29 08:51:07 -0700 | [diff] [blame] | 66 | |
| 67 | void grpc_register_built_in_plugins(void) { |
Craig Tiller | af76743 | 2017-04-03 13:54:31 -0700 | [diff] [blame] | 68 | grpc_register_plugin(grpc_http_filters_init, |
| 69 | grpc_http_filters_shutdown); |
David Garcia Quintas | aea5f12 | 2016-05-03 23:20:49 -0700 | [diff] [blame] | 70 | grpc_register_plugin(grpc_chttp2_plugin_init, |
| 71 | grpc_chttp2_plugin_shutdown); |
Craig Tiller | 3be7dd0 | 2017-04-03 14:30:03 -0700 | [diff] [blame] | 72 | grpc_register_plugin(grpc_deadline_filter_init, |
| 73 | grpc_deadline_filter_shutdown); |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 74 | grpc_register_plugin(grpc_client_channel_init, |
| 75 | grpc_client_channel_shutdown); |
Yuchen Zeng | d4bbfc7 | 2016-08-05 10:33:16 -0700 | [diff] [blame] | 76 | grpc_register_plugin(grpc_resolver_dns_ares_init, |
| 77 | grpc_resolver_dns_ares_shutdown); |
Yuchen Zeng | fdae4bd | 2016-11-07 17:46:16 -0800 | [diff] [blame] | 78 | grpc_register_plugin(grpc_resolver_dns_native_init, |
| 79 | grpc_resolver_dns_native_shutdown); |
Craig Tiller | 65938df | 2016-03-31 13:08:49 -0700 | [diff] [blame] | 80 | grpc_register_plugin(grpc_resolver_sockaddr_init, |
| 81 | grpc_resolver_sockaddr_shutdown); |
David Garcia Quintas | 4bb11ac | 2016-05-02 09:20:21 -0700 | [diff] [blame] | 82 | grpc_register_plugin(grpc_load_reporting_plugin_init, |
| 83 | grpc_load_reporting_plugin_shutdown); |
David Garcia Quintas | 3fb8f73 | 2016-06-15 22:53:08 -0700 | [diff] [blame] | 84 | grpc_register_plugin(grpc_lb_policy_grpclb_init, |
| 85 | grpc_lb_policy_grpclb_shutdown); |
Craig Tiller | fb43385 | 2016-03-29 08:51:07 -0700 | [diff] [blame] | 86 | grpc_register_plugin(grpc_lb_policy_pick_first_init, |
| 87 | grpc_lb_policy_pick_first_shutdown); |
| 88 | grpc_register_plugin(grpc_lb_policy_round_robin_init, |
| 89 | grpc_lb_policy_round_robin_shutdown); |
David Garcia Quintas | aea5f12 | 2016-05-03 23:20:49 -0700 | [diff] [blame] | 90 | grpc_register_plugin(census_grpc_plugin_init, |
| 91 | census_grpc_plugin_shutdown); |
Craig Tiller | 6d4894e | 2017-03-31 17:22:06 -0700 | [diff] [blame] | 92 | grpc_register_plugin(grpc_max_age_filter_init, |
| 93 | grpc_max_age_filter_shutdown); |
Craig Tiller | 9b3648a | 2017-04-03 12:25:19 -0700 | [diff] [blame] | 94 | grpc_register_plugin(grpc_message_size_filter_init, |
| 95 | grpc_message_size_filter_shutdown); |
Muxi Yan | 29ff466 | 2017-05-15 10:27:55 -0700 | [diff] [blame] | 96 | grpc_register_plugin(grpc_workaround_cronet_compression_filter_init, |
| 97 | grpc_workaround_cronet_compression_filter_shutdown); |
Craig Tiller | fb43385 | 2016-03-29 08:51:07 -0700 | [diff] [blame] | 98 | } |