/* * $Id: tmtransaction.h,v 1.1.1.1 2004/08/25 19:21:40 jan Exp $ * * Copyright (c) 2002 Jan Algermissen * See the file "COPYING" for copying permission. * */ #ifndef TM_TRANSACTION_INCLUDED #define TM_TRANSACTION_INCLUDED #include "tmtk.h" #include "tmmem.h" #include "tm.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup TMTransaction * \ingroup TMTopicMap * TopicMap internal transactions. * * @{ */ typedef struct TMTransaction *TMTransaction; TM_API(TMTransaction) tm_transaction_new(TMPool pool,TM tm,const char *tag); TM_API(void) tm_transaction_delete(TMTransaction *pself); TM_API(const char *) tm_transaction_get_tag(TMTransaction self); TM_API(TMPool) tm_transaction_get_pool(TMTransaction self); TM_API(void) tm_transaction_store_topic(TMTransaction self,const char *sym, TMTopic topic); TM_API(TMTopic) tm_transaction_get_topic(TMTransaction self,const char *sym); /** @} */ #ifdef __cplusplus } // extern C #endif #endif /* TM_STACK_INCLUDED */