]> git.proxmox.com Git - ovs.git/blob - ovn/lib/actions.h
actions: Factor out new helper function add_prerequisite().
[ovs.git] / ovn / lib / actions.h
1 /*
2 * Copyright (c) 2015 Nicira, Inc.
3 *
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:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17 #ifndef OVN_ACTIONS_H
18 #define OVN_ACTIONS_H 1
19
20 #include <stdint.h>
21 #include "compiler.h"
22
23 struct expr;
24 struct lexer;
25 struct ofpbuf;
26 struct shash;
27 struct simap;
28
29 char *actions_parse(struct lexer *, const struct shash *symtab,
30 const struct simap *ports, const struct simap *ct_zones,
31 uint8_t first_ptable, uint8_t n_tables, uint8_t cur_ltable,
32 uint8_t output_ptable, struct ofpbuf *ofpacts,
33 struct expr **prereqsp)
34 OVS_WARN_UNUSED_RESULT;
35 char *actions_parse_string(const char *s, const struct shash *symtab,
36 const struct simap *ports,
37 const struct simap *ct_zones, uint8_t first_ptable,
38 uint8_t n_tables, uint8_t cur_ltable,
39 uint8_t output_ptable, struct ofpbuf *ofpacts,
40 struct expr **prereqsp)
41 OVS_WARN_UNUSED_RESULT;
42
43 #endif /* ovn/actions.h */