From: Thomas Graf Date: Wed, 12 Nov 2014 14:06:02 +0000 (+0100) Subject: include: Use #include <.*> in public headers. X-Git-Tag: v2.4.0~959 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=1825f2ec0d41ceac29f3ba3ff6931efe8c907034 include: Use #include <.*> in public headers. Required to make the headers installable. Signed-off-by: Thomas Graf Acked-by: Flavio Leitner Signed-off-by: Ben Pfaff --- diff --git a/build-aux/check-structs b/build-aux/check-structs index 0428abf51..44ffaa72c 100755 --- a/build-aux/check-structs +++ b/build-aux/check-structs @@ -20,7 +20,7 @@ token = None line = "" idRe = "[a-zA-Z_][a-zA-Z_0-9]*" tokenRe = "#?" + idRe + "|[0-9]+|." -includeRe = re.compile(r'\s*#include\s+"(openflow/[^#]+)"') +includeRe = re.compile(r'\s*#include\s+<(openflow/[^#]+)>') includePath = '' inComment = False inDirective = False diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h index b20bab354..e74945090 100644 --- a/include/openflow/nicira-ext.h +++ b/include/openflow/nicira-ext.h @@ -17,8 +17,8 @@ #ifndef OPENFLOW_NICIRA_EXT_H #define OPENFLOW_NICIRA_EXT_H 1 -#include "openflow/openflow.h" -#include "openvswitch/types.h" +#include +#include /* The following vendor extensions, proposed by Nicira, are not yet * standardized, so they are not included in openflow.h. Some of them may be diff --git a/include/openflow/openflow-1.0.h b/include/openflow/openflow-1.0.h index 22c4be23d..856634a5f 100644 --- a/include/openflow/openflow-1.0.h +++ b/include/openflow/openflow-1.0.h @@ -19,7 +19,7 @@ #ifndef OPENFLOW_OPENFLOW10_H #define OPENFLOW_OPENFLOW10_H 1 -#include "openflow/openflow-common.h" +#include /* Port number(s) meaning * --------------- -------------------------------------- diff --git a/include/openflow/openflow-1.1.h b/include/openflow/openflow-1.1.h index 8b52b251f..ff3928a16 100644 --- a/include/openflow/openflow-1.1.h +++ b/include/openflow/openflow-1.1.h @@ -52,7 +52,7 @@ #ifndef OPENFLOW_11_H #define OPENFLOW_11_H 1 -#include "openflow/openflow-common.h" +#include /* OpenFlow 1.1 uses 32-bit port numbers. Open vSwitch, for now, uses OpenFlow * 1.0 port numbers internally. We map them to OpenFlow 1.0 as follows: diff --git a/include/openflow/openflow-1.2.h b/include/openflow/openflow-1.2.h index f4c97a1e5..65417d618 100644 --- a/include/openflow/openflow-1.2.h +++ b/include/openflow/openflow-1.2.h @@ -53,7 +53,7 @@ #ifndef OPENFLOW_12_H #define OPENFLOW_12_H 1 -#include "openflow/openflow-1.1.h" +#include /* Error type for experimenter error messages. */ #define OFPET12_EXPERIMENTER 0xffff diff --git a/include/openflow/openflow-1.3.h b/include/openflow/openflow-1.3.h index caae674fd..142d32c01 100644 --- a/include/openflow/openflow-1.3.h +++ b/include/openflow/openflow-1.3.h @@ -37,7 +37,7 @@ #ifndef OPENFLOW_13_H #define OPENFLOW_13_H 1 -#include "openflow/openflow-1.2.h" +#include /* * OpenFlow 1.3 modifies the syntax of the following message types: diff --git a/include/openflow/openflow-1.4.h b/include/openflow/openflow-1.4.h index 2a765cfe2..7631e47c4 100644 --- a/include/openflow/openflow-1.4.h +++ b/include/openflow/openflow-1.4.h @@ -37,7 +37,7 @@ #ifndef OPENFLOW_14_H #define OPENFLOW_14_H 1 -#include "openflow/openflow-1.3.h" +#include /* ## ---------- ## */ diff --git a/include/openflow/openflow-1.5.h b/include/openflow/openflow-1.5.h index 1d4d58983..d1245d3ee 100644 --- a/include/openflow/openflow-1.5.h +++ b/include/openflow/openflow-1.5.h @@ -37,7 +37,7 @@ #ifndef OPENFLOW_15_H #define OPENFLOW_15_H 1 -#include "openflow/openflow-common.h" +#include /* Group commands */ enum ofp15_group_mod_command { diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 3a11725fc..0915c9154 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -50,7 +50,7 @@ #ifndef OPENFLOW_COMMON_H #define OPENFLOW_COMMON_H 1 -#include "openvswitch/types.h" +#include #ifdef SWIG #define OFP_ASSERT(EXPR) /* SWIG can't handle OFP_ASSERT. */ diff --git a/include/openflow/openflow.h b/include/openflow/openflow.h index b9cbdcaed..7976fbb5a 100644 --- a/include/openflow/openflow.h +++ b/include/openflow/openflow.h @@ -17,11 +17,11 @@ #ifndef OPENFLOW_OPENFLOW_H #define OPENFLOW_OPENFLOW_H 1 -#include "openflow/openflow-1.0.h" -#include "openflow/openflow-1.1.h" -#include "openflow/openflow-1.2.h" -#include "openflow/openflow-1.3.h" -#include "openflow/openflow-1.4.h" -#include "openflow/openflow-1.5.h" +#include +#include +#include +#include +#include +#include #endif /* openflow/openflow.h */