summaryrefslogtreecommitdiffstats
path: root/common/elapi/elapi_event.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-09-27 22:16:17 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-05 10:32:08 -0400
commita78d04984240a3d04045402c964d9d8c5be463ef (patch)
tree0353869fca520c545daea46deb43069d2a172e9a /common/elapi/elapi_event.h
parent8140cea7b4e3d3c9c6003eb6ae30e5e0fdd7c1ae (diff)
downloadsssd-a78d04984240a3d04045402c964d9d8c5be463ef.tar.gz
sssd-a78d04984240a3d04045402c964d9d8c5be463ef.tar.xz
sssd-a78d04984240a3d04045402c964d9d8c5be463ef.zip
ELAPI Resolving message attribute
This patch continues work started with the previous patch. It resolves message attribute. Message attribute is a special attribute in the event that may contain references to other attributes in the event. When message is resolved the references are replaced with actual values of the referenced attributes.
Diffstat (limited to 'common/elapi/elapi_event.h')
-rw-r--r--common/elapi/elapi_event.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/common/elapi/elapi_event.h b/common/elapi/elapi_event.h
index 6a5fe044e..3e52dfdb6 100644
--- a/common/elapi/elapi_event.h
+++ b/common/elapi/elapi_event.h
@@ -22,11 +22,15 @@
#include "collection.h"
-/* Possible predefined elements of the event */
-#define E_TIMESTAMP "__stamp__" /* string - the value is the format for strftime()
+/* Possible predefined elements of the event.
+ * First letter R means that it is a property
+ * resolvable at the logging time.
+ */
+
+#define E_TIMESTAMP "R_stamp__" /* string - the value is the format for strftime()
* default is standard format for current locale. */
-#define E_UTCTIME "__time__" /* int - UTC time as unix time in seconds since 1970 */
-#define E_OFFSET "__loco__" /* int - local time displacement */
+#define E_UTCTIME "R_time__" /* int - UTC time as unix time in seconds since 1970 */
+#define E_OFFSET "R_loco__" /* int - local time displacement */
#define E_PID "__pid__" /* int - Process ID of the current process */
#define E_APPNAME "__appnm__" /* string - Name of the current application */
#define E_HOSTNAME "__host__" /* string - Name of the current host */
@@ -44,11 +48,11 @@
* The token %(server) will be replaced by value
* in the attribute "server" in the event.
*/
-#define E_MESSAGE "__message__"
+#define E_MESSAGE "R_message__"
-/* Standard prefix for internal attributes */
-#define E_PREFIX "__"
+/* Standard prefix for internal resolvable attributes */
+#define E_PREFIX "R_"
#define E_PREFIX_LEN 2
/* Base argument in the template creation function is a bit mask.