2 * Copyright (c) 2008, 2009, 2010 Nicira Networks.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
27 int discovery_create(const char *accept_controller_re, bool update_resolv_conf,
28 struct dpif *, struct switch_status *,
30 void discovery_destroy(struct discovery *);
31 bool discovery_get_update_resolv_conf(const struct discovery *);
32 void discovery_set_update_resolv_conf(struct discovery *,
33 bool update_resolv_conf);
34 const char *discovery_get_accept_controller_re(const struct discovery *);
35 int discovery_set_accept_controller_re(struct discovery *, const char *re);
36 void discovery_question_connectivity(struct discovery *);
37 bool discovery_run(struct discovery *, char **controller_name);
38 void discovery_wait(struct discovery *);
40 #endif /* discovery.h */