13
0
livetrax/libs/fst/fst.c
Paul Davis 2b5d095464 correctly forward configure events to plugin windows, and cleanup FST code
git-svn-id: svn://localhost/ardour2/trunk@635 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-22 21:04:47 +00:00

28 lines
414 B
C

#include <stdio.h>
#include <stdarg.h>
#include "fst.h"
void
default_fst_error_callback (const char *desc)
{
fprintf(stderr, "%s\n", desc);
}
void (*fst_error_callback)(const char *desc) = &default_fst_error_callback;
void
fst_error (const char *fmt, ...)
{
va_list ap;
char buffer[512];
va_start (ap, fmt);
vsnprintf (buffer, sizeof(buffer), fmt, ap);
fst_error_callback (buffer);
va_end (ap);
}