[syslog-ng] [PATCH 1/4] scratch-buffers: Support any number of stacks

Balazs Scheidler bazsi at balabit.hu
Sat Feb 16 13:44:43 CET 2013


Applied to 3.5 with some whitespace fixes, 

thanks Gergely.

On Fri, 2013-02-15 at 16:26 +0100, Gergely Nagy wrote:
> From: Gergely Nagy <algernon at madhouse-project.org>
> 
> Instead of being tied to GStrings only, support registering new kinds
> of stacks, which will be automatiaclly free'd on thread shutdown. For
> convenience, wrappers are provided for GString-based scratch buffer
> acquire and release, and that stack is automatically registered and
> free'd by the library itself.
> 
> This fixes #2.
> 
> Signed-off-by: Gergely Nagy <algernon at madhouse-project.org>
> ---
>  lib/mainloop.c            |    3 +-
>  lib/scratch-buffers.c     |   80 +++++++++++++++++++++++++++++++++++----------
>  lib/scratch-buffers.h     |   41 +++++++++++++++++++----
>  lib/value-pairs.c         |   34 ++++++++++---------
>  lib/vptransform.c         |   38 +++++++++++----------
>  modules/afamqp/afamqp.c   |   20 ++++++------
>  modules/json/jsonparser.c |   54 +++++++++++++++---------------
>  7 files changed, 174 insertions(+), 96 deletions(-)





More information about the syslog-ng mailing list