1%YAML 1.2 2--- 3foreach: libs 4cond: selected.get('generate_plugin_registry', False) 5output_name: ${selected.name}_plugin_registry.cc 6template: | 7 /* 8 * 9 * Copyright 2016 gRPC authors. 10 * 11 * Licensed under the Apache License, Version 2.0 (the "License"); 12 * you may not use this file except in compliance with the License. 13 * You may obtain a copy of the License at 14 * 15 * http://www.apache.org/licenses/LICENSE-2.0 16 * 17 * Unless required by applicable law or agreed to in writing, software 18 * distributed under the License is distributed on an "AS IS" BASIS, 19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 * See the License for the specific language governing permissions and 21 * limitations under the License. 22 * 23 */ 24 25 #include <grpc/support/port_platform.h> 26 27 #include <grpc/grpc.h> 28 29 %for plugin in selected.plugins: 30 void ${plugin}_init(void); 31 void ${plugin}_shutdown(void); 32 %endfor 33 34 void grpc_register_built_in_plugins(void) { 35 %for plugin in selected.plugins: 36 grpc_register_plugin(${plugin}_init, 37 ${plugin}_shutdown); 38 %endfor 39 } 40