Apache2
apr_dbd_internal.h File Reference
#include <stdarg.h>
#include "apr_dbd.h"
Include dependency graph for apr_dbd_internal.h:

Go to the source code of this file.

Data Structures

struct  apr_dbd_driver_t
 

Macros

#define TXN_IGNORE_ERRORS(t)    ((t) && ((t)->mode & APR_DBD_TRANSACTION_IGNORE_ERRORS))
 
#define TXN_NOTICE_ERRORS(t)    ((t) && !((t)->mode & APR_DBD_TRANSACTION_IGNORE_ERRORS))
 
#define TXN_DO_COMMIT(t)   (!((t)->mode & APR_DBD_TRANSACTION_ROLLBACK))
 
#define TXN_DO_ROLLBACK(t)   ((t)->mode & APR_DBD_TRANSACTION_ROLLBACK)
 
#define TXN_MODE_BITS    (APR_DBD_TRANSACTION_ROLLBACK|APR_DBD_TRANSACTION_IGNORE_ERRORS)
 

Functions

apr_status_t apr_dbd_mutex_lock (void)
 
apr_status_t apr_dbd_mutex_unlock (void)
 

Macro Definition Documentation

◆ TXN_DO_COMMIT

#define TXN_DO_COMMIT (   t)    (!((t)->mode & APR_DBD_TRANSACTION_ROLLBACK))

◆ TXN_DO_ROLLBACK

#define TXN_DO_ROLLBACK (   t)    ((t)->mode & APR_DBD_TRANSACTION_ROLLBACK)

◆ TXN_IGNORE_ERRORS

#define TXN_IGNORE_ERRORS (   t)     ((t) && ((t)->mode & APR_DBD_TRANSACTION_IGNORE_ERRORS))

◆ TXN_MODE_BITS

◆ TXN_NOTICE_ERRORS

#define TXN_NOTICE_ERRORS (   t)     ((t) && !((t)->mode & APR_DBD_TRANSACTION_IGNORE_ERRORS))

Function Documentation

◆ apr_dbd_mutex_lock()

apr_status_t apr_dbd_mutex_lock ( void  )

◆ apr_dbd_mutex_unlock()

apr_status_t apr_dbd_mutex_unlock ( void  )