Branch data Line data Source code
1 : : /*
2 : : * Copyright (c) 2011 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 : : #include <config.h>
18 : :
19 : : #include "ofproto/ofproto.h"
20 : :
21 : : #include "dpif.h"
22 : :
23 : : /* This function is in a separate file because it is the only ofproto function
24 : : * required by ovs-ofctl, which allows ovs-ofctl to avoid linking in extra
25 : : * baggage. */
26 : :
27 : : /* Parses 'ofproto_name', which is of the form [type@]name into component
28 : : * pieces that are suitable for passing to ofproto_create(). The caller must
29 : : * free 'name' and 'type'. */
30 : : void
31 : 3385 : ofproto_parse_name(const char *ofproto_name, char **name, char **type)
32 : : {
33 : 3385 : dp_parse_name(ofproto_name, name, type);
34 : 3385 : }
35 : :
|