[Spice-devel] [PATCH usbredir 4/8] Do not provide the filter print utility when building for the kernel.
Jeremy White
jwhite at codeweavers.com
Wed Dec 9 14:15:02 PST 2015
Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
usbredirparser/usbredirfilter.c | 2 ++
usbredirparser/usbredirfilter.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/usbredirparser/usbredirfilter.c b/usbredirparser/usbredirfilter.c
index dfabacb..6b5310b 100644
--- a/usbredirparser/usbredirfilter.c
+++ b/usbredirparser/usbredirfilter.c
@@ -243,6 +243,7 @@ int usbredirfilter_verify(
return 0;
}
+#if ! defined(__KERNEL__)
void usbredirfilter_print(
const struct usbredirfilter_rule *rules, int rules_count, FILE *out)
{
@@ -278,3 +279,4 @@ void usbredirfilter_print(
product, version, rules[i].allow ? "Allow":"Block");
}
}
+#endif
diff --git a/usbredirparser/usbredirfilter.h b/usbredirparser/usbredirfilter.h
index c869e98..e595a60 100644
--- a/usbredirparser/usbredirfilter.h
+++ b/usbredirparser/usbredirfilter.h
@@ -131,9 +131,11 @@ int usbredirfilter_check(
int usbredirfilter_verify(
const struct usbredirfilter_rule *rules, int rules_count);
+#if ! defined(__KERNEL__)
/* Print the passed in rules to FILE out in human readable format */
void usbredirfilter_print(
const struct usbredirfilter_rule *rules, int rules_count, FILE *out);
+#endif
#ifdef __cplusplus
}
--
2.1.4
More information about the Spice-devel
mailing list