summaryrefslogtreecommitdiff
path: root/server/stat.h
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-05-18 00:01:57 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-05-18 00:24:37 +0100
commitf36c3887ba956aef57393d4746b4ad2e5ef2ba6e (patch)
tree08c3651858bbe4e23cc8e16752c64dfc7963049e /server/stat.h
parent9fd82215d12e249006ee7a715025edffab1462ed (diff)
Make sure all headers are independent
Make sure is possible to include any headers alone. I used this script to check independence (run under server directory): ---- #!/bin/bash set -e # check not already modified if grep -q libheaders.la Makefile.am; then echo "Header library already prepared" >&2 exit 1 fi add_lib() { local hdr="$1" hdr=${hdr%.h} c="mao_${hdr}.c" echo "#include \"${hdr}.h\"" > $c echo -e "\t$c \\" >&3 } # add library to compile all headers alones exec 3>> Makefile.am echo " noinst_LTLIBRARIES += libheaders.la libheaders_la_SOURCES = \\" >&3 for hdr in *.h; do case $hdr in spice-bitmap-utils.h) add_lib $hdr ;; spice*.h) ;; *) add_lib $hdr ;; esac done echo -e "\t\$(NULL)" >&3 exec 3>&- ---- Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'server/stat.h')
-rw-r--r--server/stat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/stat.h b/server/stat.h
index 7db27ee1..f6f7a044 100644
--- a/server/stat.h
+++ b/server/stat.h
@@ -21,6 +21,8 @@
#include <stdint.h>
#include <glib.h>
+#include "spice.h"
+
typedef uint32_t StatNodeRef;
#define INVALID_STAT_REF (~(StatNodeRef)0)