1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * $Id: error.c,v 1.1 2004/05/16 19:01:17 nedko Exp $
7 * Mediadatabase error handling.
10 * Nedko Arnaudov <nedko@users.sourceforge.net>
13 * GNU GENERAL PUBLIC LICENSE version 2
15 *****************************************************************************/
21 #include "../result.h"
24 #define FORMATTING_BUFFER_SIZE 8*1024
28 const char *pszFormat
,
32 char Buffer
[FORMATTING_BUFFER_SIZE
];
34 va_start(argList
, pszFormat
);
35 vsnprintf(Buffer
, FORMATTING_BUFFER_SIZE
-1, pszFormat
, argList
);
38 Buffer
[FORMATTING_BUFFER_SIZE
-1] = 0;
40 mediadb_error_callback(Buffer
);
43 /*****************************************************************************
47 * !!! WARNING !!! Following lines are automatically updated by the CVS system.
50 * Revision 1.1 2004/05/16 19:01:17 nedko
51 * libfrontend holds code common to frontends but not in libdb.
53 *****************************************************************************/