[Spice-devel] [PATCH spice-protocol] stats: Add SPICE_STAT_SHM_PATTERN definition

Frediano Ziglio fziglio at redhat.com
Fri Sep 15 09:04:45 UTC 2017


This was proposed by Christophe De Dinechin for coherence with
a patch in reds_stat tool to find statistic files.
Allows to search such files using a shell pattern (allows to
be used by functions like glob or fnmatch).

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 spice/stats.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spice/stats.h b/spice/stats.h
index 46bbfed..ebd1995 100644
--- a/spice/stats.h
+++ b/spice/stats.h
@@ -35,6 +35,7 @@
 #include <spice/types.h>
 
 #define SPICE_STAT_SHM_NAME "/spice.%u"
+#define SPICE_STAT_SHM_PATTERN "/spice.*"
 #define SPICE_STAT_NODE_NAME_MAX 20
 #define SPICE_STAT_MAGIC SPICE_MAGIC_CONST("STAT")
 #define SPICE_STAT_VERSION 1
-- 
2.13.5



More information about the Spice-devel mailing list