Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / ofproto / bundles.h
1 /*
2  * Copyright (c) 2013, 2014 Alexandru Copot <alex.mihai.c@gmail.com>, with support from IXIA.
3  * Copyright (c) 2013, 2014 Daniel Baluta <dbaluta@ixiacom.com>
4  *
5  * 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:
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * 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.
16  */
17
18 #ifndef BUNDLES_H
19 #define BUNDLES_H 1
20
21 #include <sys/types.h>
22
23 #include "ofp-msgs.h"
24 #include "connmgr.h"
25 #include "ofp-util.h"
26
27 #ifdef  __cplusplus
28 extern "C" {
29 #endif
30
31
32 enum ofperr ofp_bundle_open(struct ofconn *ofconn, uint32_t id, uint16_t flags);
33
34 enum ofperr ofp_bundle_close(struct ofconn *ofconn, uint32_t id, uint16_t flags);
35
36 enum ofperr ofp_bundle_commit(struct ofconn *ofconn, uint32_t id, uint16_t flags);
37
38 enum ofperr ofp_bundle_discard(struct ofconn *ofconn, uint32_t id);
39
40 enum ofperr ofp_bundle_add_message(struct ofconn *ofconn,
41                                    struct ofputil_bundle_add_msg *badd);
42
43 void ofp_bundle_remove_all(struct ofconn *ofconn);
44
45 #ifdef  __cplusplus
46 }
47 #endif
48
49 #endif