Added support for Ardour
[klaudia.git] / fst / fst.c
blobcbee5de52ae033f989e8fef0cb300de043d05ff4
1 #include <stdio.h>
2 #include <stdarg.h>
4 #include "fst.h"
6 void
7 fst_error (const char *fmt, ...)
9 va_list ap;
10 char buffer[512];
12 va_start (ap, fmt);
13 vsnprintf (buffer, sizeof(buffer), fmt, ap);
14 fst_error_callback (buffer);
15 va_end (ap);
18 void
19 default_fst_error_callback (const char *desc)
21 fprintf(stderr, "%s\n", desc);
24 void (*fst_error_callback)(const char *desc) = &default_fst_error_callback;