mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
Until now, the ovs-vswitchd main loop has managed the connection to the database. This worked adequately until now, but upcoming patches will tie the bridge code more tightly to the database, which means that the bridge needs more control over interaction with the database connection and thus that it is better for the bridge to handle that connection itself. This commit makes the latter change, moving the database interaction from the ovs-vswitchd main loop into bridge.c.
29 lines
833 B
C
29 lines
833 B
C
/* Copyright (c) 2008, 2009, 2010 Nicira Networks
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at:
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef VSWITCHD_BRIDGE_H
|
|
#define VSWITCHD_BRIDGE_H 1
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
struct svec;
|
|
|
|
void bridge_init(const char *remote);
|
|
void bridge_run(void);
|
|
void bridge_wait(void);
|
|
|
|
#endif /* bridge.h */
|