summaryrefslogtreecommitdiffstats
path: root/common/elapi/elapi_priv.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_priv.h
parent8140cea7b4e3d3c9c6003eb6ae30e5e0fdd7c1ae (diff)
downloadsssd2-a78d04984240a3d04045402c964d9d8c5be463ef.tar.gz
sssd2-a78d04984240a3d04045402c964d9d8c5be463ef.tar.xz
sssd2-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_priv.h')
-rw-r--r--common/elapi/elapi_priv.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/common/elapi/elapi_priv.h b/common/elapi/elapi_priv.h
index 27b0079f..e7480f90 100644
--- a/common/elapi/elapi_priv.h
+++ b/common/elapi/elapi_priv.h
@@ -24,6 +24,7 @@
#include <stdarg.h>
#include "collection.h"
+#include "elapi_basic.h"
#include "elapi_async.h"
#include "elapi_sink.h"
@@ -178,8 +179,8 @@ struct elapi_sink_ctx {
* needed to resolve the event.
*/
struct elapi_resolve_data {
- /* Reference to the event */
- struct collection_item *event;
+ /* Reference to the message item inside event */
+ struct collection_item *message;
/* Reference back to dispatcher */
struct elapi_dispatcher *handle;
/* Time related data */
@@ -321,6 +322,12 @@ int elapi_resolve_event(struct collection_item **final_event,
struct collection_item *event,
struct elapi_dispatcher *handle);
+/* Function to place the event items into a formatted string */
+int elapi_sprintf(struct elapi_data_out *out_data,
+ const char *format_str,
+ struct collection_item *event);
+
+
/* Send ELAPI config errors into a file */
void elapi_dump_ini_err(struct collection_item *error_list);