From 13cf6a9c9d37a14ff46f6d512aab402616359570 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Wed, 2 Sep 2009 19:41:06 -0400 Subject: ELAPI Adding file provider and CSV format This patch creates the infrastructure for logging of the event from the top of the interface to the bottom. It is a start. A lot of functionality is left aside. The attempt of this patch is pass event from caller of the ELAPI interface via targets to sinks then to providers and do serialization creating entity that is ready to be written to a file. It also implements more specific provider related configuration parameters. Also it addresses couple suggestions that were brought up against previous patch. ELAPI Correcting issues This patch addresses the issues found during the review of the previous patches and addresses ticket #166. --- common/elapi/elapi_sink.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/elapi/elapi_sink.h') diff --git a/common/elapi/elapi_sink.h b/common/elapi/elapi_sink.h index 41a89896..b7287213 100644 --- a/common/elapi/elapi_sink.h +++ b/common/elapi/elapi_sink.h @@ -39,7 +39,11 @@ /* Log facility callbacks */ /* FIXME - the signatures need to take into the account async processing */ -typedef int (*init_fn)(void **priv_ctx, char *name, struct collection_item *ini_config); +typedef int (*init_fn)(void **priv_ctx, + const char *name, + struct collection_item *ini_config, + const char *appname); + typedef int (*submit_fn)(void *priv_ctx, struct collection_item *event); typedef void (*close_fn)(void **priv_ctx); -- cgit