1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * $Id: error.c,v 1.2 2004/05/21 23:42:49 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 unsigned int nCritical
,
29 const char *pszFormat
,
33 char Buffer
[FORMATTING_BUFFER_SIZE
];
35 va_start(argList
, pszFormat
);
36 vsnprintf(Buffer
, FORMATTING_BUFFER_SIZE
-1, pszFormat
, argList
);
39 Buffer
[FORMATTING_BUFFER_SIZE
-1] = 0;
41 mediadb_error_callback(nCritical
, Buffer
);
44 /*****************************************************************************
48 * !!! WARNING !!! Following lines are automatically updated by the CVS system.
51 * Revision 1.2 2004/05/21 23:42:49 nedko
52 * mediadb_error_callback() now tells if error is critical.
54 * Revision 1.1 2004/05/16 19:01:17 nedko
55 * libfrontend holds code common to frontends but not in libdb.
57 *****************************************************************************/