1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1996,2008 Oracle. All rights reserved. 5 * 6 * $Id: xa_stub.c,v 1.5 2008/01/08 20:59:00 bostic Exp $ 7 */ 8 9#include "db_config.h" 10 11#include "db_int.h" 12#include "dbinc/txn.h" 13 14/* 15 * If the library wasn't compiled with XA support, various routines 16 * aren't available. Stub them here, returning an appropriate error. 17 */ 18static int __db_noxa __P((DB_ENV *)); 19 20/* 21 * __db_noxa -- 22 * Error when a Berkeley DB build doesn't include XA support. 23 */ 24static int 25__db_noxa(dbenv) 26 DB_ENV *dbenv; 27{ 28 __db_errx(dbenv->env, 29 "library build did not include support for XA"); 30 return (DB_OPNOTSUP); 31} 32 33int 34__db_xa_create(dbp) 35 DB *dbp; 36{ 37 return (__db_noxa(dbp->dbenv)); 38} 39