add a cinelerra error which can be used to forward standard C errors from errno

This commit is contained in:
Christian Thaeter 2007-08-31 01:21:44 +02:00
parent 5832cfeae2
commit 194d7810f4
2 changed files with 13 additions and 0 deletions

View file

@ -21,6 +21,14 @@
#include <pthread.h>
#include "lib/error.h"
/*
predefined errors
*/
CINELERRA_ERROR_DEFINE (ERRNO, "errno");
/* Thread local storage */
static pthread_key_t cinelerra_error_tls;
static pthread_once_t cinelerra_error_initialized = PTHREAD_ONCE_INIT;

View file

@ -84,6 +84,11 @@ cinelerra_error_set (const char * err);
const char*
cinelerra_error ();
/*
predefined errors
*/
CINELERRA_ERROR_DECLARE (ERRNO);
#ifdef __cplusplus
} /* extern "C" */
#endif