]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
filter new files through cppi, so syntax-check passes once again
authorJim Meyering <meyering@redhat.com>
Fri, 26 Mar 2010 18:29:54 +0000 (19:29 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 26 Mar 2010 21:47:30 +0000 (22:47 +0100)
* src/conf/nwfilter_conf.h: Indent cpp directives.
* src/conf/nwfilter_params.h: Likewise.
* src/datatypes.h: Likewise.
* src/nwfilter/nwfilter_driver.h: Likewise.
* src/nwfilter/nwfilter_ebiptables_driver.h: Likewise.
* src/nwfilter/nwfilter_gentech_driver.h: Likewise.

src/conf/nwfilter_conf.h
src/conf/nwfilter_params.h
src/datatypes.h
src/nwfilter/nwfilter_driver.h
src/nwfilter/nwfilter_ebiptables_driver.h
src/nwfilter/nwfilter_gentech_driver.h

index 5ba2f417c47d4bfc181bd5b1c2807e2e9b57589c..9b6ca409734040830851c457138892dd899848ef 100644 (file)
  * Author: Stefan Berger <stefanb@us.ibm.com>
  */
 #ifndef NWFILTER_CONF_H
-#define NWFILTER_CONF_H
+# define NWFILTER_CONF_H
 
-#include <stdint.h>
-#include <stddef.h>
+# include <stdint.h>
+# include <stddef.h>
 
-#include "internal.h"
-#include "util.h"
-#include "hash.h"
-#include "xml.h"
+# include "internal.h"
+# include "util.h"
+# include "hash.h"
+# include "xml.h"
 
 /**
  * Chain suffix size is:
@@ -43,7 +43,7 @@
  *   terminating '0' =
  * 32-3-15-1-1 = 12
  */
-#define MAX_CHAIN_SUFFIX_SIZE  12
+# define MAX_CHAIN_SUFFIX_SIZE 12
 
 
 enum virNWFilterEntryItemFlags {
@@ -53,10 +53,10 @@ enum virNWFilterEntryItemFlags {
 };
 
 
-#define HAS_ENTRY_ITEM(data) \
+# define HAS_ENTRY_ITEM(data) \
   (((data)->flags) & NWFILTER_ENTRY_ITEM_FLAG_EXISTS)
 
-#define ENTRY_GET_NEG_SIGN(data) \
+# define ENTRY_GET_NEG_SIGN(data) \
   ((((data)->flags) & NWFILTER_ENTRY_ITEM_FLAG_IS_NEG) ? "!" : "")
 
 // datatypes appearing in rule attributes
@@ -288,7 +288,7 @@ enum virNWFilterEbtablesTableType {
 };
 
 
-#define MAX_RULE_PRIORITY  1000
+# define MAX_RULE_PRIORITY  1000
 
 
 typedef struct _virNWFilterRuleDef  virNWFilterRuleDef;
@@ -522,7 +522,7 @@ void virNWFilterConfLayerShutdown(void);
 int virNWFilterParamConfLayerInit(void);
 void virNWFilterParamConfLayerShutdown(void);
 
-#define virNWFilterReportError(conn, code, fmt...)                          \
+# define virNWFilterReportError(conn, code, fmt...)                          \
         virReportErrorHelper(conn, VIR_FROM_NWFILTER, code, __FILE__,       \
                                __FUNCTION__, __LINE__, fmt)
 
index 7a9b1eee1cf544b004259a4ecfbf109791bc38bd..5b4afba609047aa634e33bce99ecde72b9754835 100644 (file)
@@ -20,9 +20,9 @@
  * Author: Stefan Berger <stefanb@us.ibm.com>
  */
 #ifndef NWFILTER_PARAMS_H
-#define NWFILTER_PARAMS_H
+# define NWFILTER_PARAMS_H
 
-#include "hash.h"
+# include "hash.h"
 
 typedef struct _virNWFilterHashTable virNWFilterHashTable;
 typedef virNWFilterHashTable *virNWFilterHashTablePtr;
index c22111997190fd4059bf8938993918ccdf773b65..4663c9c6f345a215e9104f6fc52a49c497e3cafa 100644 (file)
  * magic value used to protect the API when pointers to network filter
  * pool structures are passed down by the users.
  */
-#define VIR_NWFILTER_MAGIC                     0xDEAD7777
-#define VIR_IS_NWFILTER(obj)                   ((obj) && (obj)->magic==VIR_NWFILTER_MAGIC)
-#define VIR_IS_CONNECTED_NWFILTER(obj)         (VIR_IS_NWFILTER(obj) && VIR_IS_CONNECT((obj)->conn))
+# define VIR_NWFILTER_MAGIC                    0xDEAD7777
+# define VIR_IS_NWFILTER(obj)                  ((obj) && (obj)->magic==VIR_NWFILTER_MAGIC)
+# define VIR_IS_CONNECTED_NWFILTER(obj)                (VIR_IS_NWFILTER(obj) && VIR_IS_CONNECT((obj)->conn))
 
 
 /**
index b7d8668f45cfdda597493aa67b6005221eba781d..3f60560ab55e4af2da8b76c8a656ad5869bd70c5 100644 (file)
  */
 
 #ifndef __VIR_NWFILTER_DRIVER_H__
-#define __VIR_NWFILTER_DRIVER_H__
+# define __VIR_NWFILTER_DRIVER_H__
 
-#include "nwfilter_params.h"
-#include "nwfilter_conf.h"
+# include "nwfilter_params.h"
+# include "nwfilter_conf.h"
 
 int nwfilterRegister(void);
 
index a036b994a7f60f4501887cab7597452a5c51aa59..ff2284401f04ad059d2ca56c14bf5be18931781a 100644 (file)
@@ -21,9 +21,9 @@
  * Author: Stefan Berger <stefanb@us.ibm.com>
  */
 #ifndef VIR_NWFILTER_EBTABLES_DRIVER_H__
-#define VIR_NWFILTER_EBTABLES_DRIVER_H__
+# define VIR_NWFILTER_EBTABLES_DRIVER_H__
 
-#define MAX_CHAINNAME_LENGTH  32 /* see linux/netfilter_bridge/ebtables.h */
+# define MAX_CHAINNAME_LENGTH  32 /* see linux/netfilter_bridge/ebtables.h */
 
 enum RuleType {
     RT_EBTABLES,
@@ -43,6 +43,6 @@ struct _ebiptablesRuleInst {
 
 extern virNWFilterTechDriver ebiptables_driver;
 
-#define EBIPTABLES_DRIVER_ID "ebiptables"
+# define EBIPTABLES_DRIVER_ID "ebiptables"
 
 #endif
index a77d95a5c8becb6ffb83ea660dfc88623d9c65a6..6b7da71e4d5e662979dbdff0e8630f093b9b44c9 100644 (file)
@@ -21,7 +21,7 @@
  * Author: Stefan Berger <stefanb@us.ibm.com>
  */
 #ifndef __NWFILTER_GENTECH_DRIVER_H
-#define __NWFILTER_GENTECH_DRIVER_H
+# define __NWFILTER_GENTECH_DRIVER_H
 
 virNWFilterTechDriverPtr virNWFilterTechDriverForName(const char *name);