[PATCH spice-protocol] stats: Add SPICE_STAT_SHM_PATTERN definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]