summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2013-04-17 18:19:19 +0800
committerOsier Yang <jyang@redhat.com>2013-04-18 11:31:19 +0800
commit919889aa59f93176e46b00956d2dc0693f1f05c1 (patch)
treef4ba16271efc6db7cefba40d87eda0738d538a14
parent109e7e30b2697a18436bf4c9556302aaeb1e9777 (diff)
downloadlibvirt-python-split-919889aa59f93176e46b00956d2dc0693f1f05c1.zip
libvirt-python-split-919889aa59f93176e46b00956d2dc0693f1f05c1.tar.gz
libvirt-python-split-919889aa59f93176e46b00956d2dc0693f1f05c1.tar.xz
syntax-check: Only allows to include public headers in external tools
With this patch, include public headers in "" form is only allowed for "internal.h". And only the external tools (examples|tools|python |include/libvirt) can include the public headers in <> form.
-rw-r--r--libvirt-lxc-override.c4
-rw-r--r--libvirt-override.c4
-rw-r--r--libvirt-qemu-override.c4
-rw-r--r--typewrappers.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/libvirt-lxc-override.c b/libvirt-lxc-override.c
index c80668e..ead175f 100644
--- a/libvirt-lxc-override.c
+++ b/libvirt-lxc-override.c
@@ -17,8 +17,8 @@
#undef HAVE_PTHREAD_H
#include <Python.h>
-#include "libvirt/libvirt-lxc.h"
-#include "libvirt/virterror.h"
+#include <libvirt/libvirt-lxc.h>
+#include <libvirt/virterror.h>
#include "typewrappers.h"
#include "libvirt-lxc.h"
#include "viralloc.h"
diff --git a/libvirt-override.c b/libvirt-override.c
index f6573e1..3d8490c 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -20,8 +20,8 @@
#define VIR_ENUM_SENTINELS
#include <Python.h>
-#include "libvirt/libvirt.h"
-#include "libvirt/virterror.h"
+#include <libvirt/libvirt.h>
+#include <libvirt/virterror.h>
#include "typewrappers.h"
#include "libvirt.h"
#include "viralloc.h"
diff --git a/libvirt-qemu-override.c b/libvirt-qemu-override.c
index 243692a..8f1ce5e 100644
--- a/libvirt-qemu-override.c
+++ b/libvirt-qemu-override.c
@@ -17,8 +17,8 @@
#undef HAVE_PTHREAD_H
#include <Python.h>
-#include "libvirt/libvirt-qemu.h"
-#include "libvirt/virterror.h"
+#include <libvirt/libvirt-qemu.h>
+#include <libvirt/virterror.h>
#include "typewrappers.h"
#include "libvirt-qemu.h"
diff --git a/typewrappers.h b/typewrappers.h
index af68bce..d871d3f 100644
--- a/typewrappers.h
+++ b/typewrappers.h
@@ -8,8 +8,8 @@
#include <Python.h>
#include <stdbool.h>
-#include "libvirt/libvirt.h"
-#include "libvirt/virterror.h"
+#include <libvirt/libvirt.h>
+#include <libvirt/virterror.h>
#ifdef __GNUC__
# ifdef ATTRIBUTE_UNUSED