blob: c258468e58948ad00e2fd4c1f3f3c0708a2874f1 [file] [log] [blame]
Craig Tiller91624662015-06-25 16:31:02 -07001/*
2 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003 * Copyright 2015 gRPC authors.
Craig Tiller91624662015-06-25 16:31:02 -07004 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02005 * 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
Craig Tiller91624662015-06-25 16:31:02 -07008 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Craig Tiller91624662015-06-25 16:31:02 -070010 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +020011 * 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.
Craig Tiller91624662015-06-25 16:31:02 -070016 *
17 */
18
Craig Tiller9eb0fde2017-03-31 16:59:30 -070019#include "src/core/ext/filters/client_channel/connector.h"
Craig Tiller91624662015-06-25 16:31:02 -070020
Craig Tiller5de79ee2016-01-25 08:16:02 -080021grpc_connector* grpc_connector_ref(grpc_connector* connector) {
Craig Tillera82950e2015-09-22 12:33:20 -070022 connector->vtable->ref(connector);
Craig Tiller7391f132016-01-22 06:39:54 -080023 return connector;
Craig Tillerf7afa1f2015-06-26 09:02:20 -070024}
25
Craig Tillera82950e2015-09-22 12:33:20 -070026void grpc_connector_unref(grpc_exec_ctx* exec_ctx, grpc_connector* connector) {
27 connector->vtable->unref(exec_ctx, connector);
Craig Tillerf7afa1f2015-06-26 09:02:20 -070028}
29
Craig Tillera82950e2015-09-22 12:33:20 -070030void grpc_connector_connect(grpc_exec_ctx* exec_ctx, grpc_connector* connector,
31 const grpc_connect_in_args* in_args,
32 grpc_connect_out_args* out_args,
33 grpc_closure* notify) {
34 connector->vtable->connect(exec_ctx, connector, in_args, out_args, notify);
Craig Tillerf7afa1f2015-06-26 09:02:20 -070035}
Craig Tiller131f6ed2015-09-15 08:20:20 -070036
Craig Tillercda759d2017-01-27 11:37:37 -080037void grpc_connector_shutdown(grpc_exec_ctx* exec_ctx, grpc_connector* connector,
38 grpc_error* why) {
39 connector->vtable->shutdown(exec_ctx, connector, why);
Craig Tiller131f6ed2015-09-15 08:20:20 -070040}