From 1c7f0c1f5835ae82a7103b65403f8b9c2d68ae5c Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 29 Jun 2008 12:06:31 +0200 Subject: [PATCH] Add module constants for the standard namespaces --- xattr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xattr.c b/xattr.c index 0f02a66..0abca72 100644 --- a/xattr.c +++ b/xattr.c @@ -317,4 +317,10 @@ initxattr(void) PyModule_AddIntConstant(m, "XATTR_CREATE", XATTR_CREATE); PyModule_AddIntConstant(m, "XATTR_REPLACE", XATTR_REPLACE); + /* namespace constants */ + PyModule_AddStringConstant(m, "NS_SECURITY", "security"); + PyModule_AddStringConstant(m, "NS_SYSTEM", "system"); + PyModule_AddStringConstant(m, "NS_TRUSTED", "trusted"); + PyModule_AddStringConstant(m, "NS_USER", "user"); + } -- 2.39.5