blob: 8a256c8d48f88c07bda9e7118aeccd28038eb629 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Sandesha2/C - Sandesha2/C: sandesha2_transaction.h Source File</title><style type="text/css" media="all">
@import url("../../style/maven-base.css");
@import url("../../style/maven-classic.css");</style><link rel="stylesheet" href="../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://www.apache.org/images/asf-logo.gif"></img></a><a href="http://ws.apache.org/sandesha2/c" id="projectLogo"><img alt="Apache Sandesha2/C" src="http://ws.apache.org/sandesha2/c/images/sandesha2c_logo.jpg"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
Last published: 05 October 2007
| Doc for 0.91</div><div class="xright"></div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuApache_Sandesha2_C"><h5>Apache Sandesha2/C</h5><ul><li class="none"><a href="../../index.html">Apache Sandesha2/C Home</a></li><li class="expanded"><a href="../../download.cgi">Download Sandesha2/C</a><ul><li class="none"><a href="../../download.cgi">Releases</a></li></ul></li><li class="expanded"><a href="../../docs/index.html">Documentation</a><ul><li class="none"><a href="../../docs/installationguide.html">Installation Guide</a></li><li class="none"><a href="../../docs/sandesha2c_manual.html">Sandesha2/C manual</a></li></ul></li><li class="expanded"><a href="../../lists_issues.html">Get Involved</a><ul><li class="none"><a href="../../lists_issues.html">Mailing Lists &amp; Issue Tracking</a></li><li class="none"><a href="../../svn.html">Checkout Source Code</a></li></ul></li><li class="expanded"><a href="../../coding_conventions.html">Developer Guidelines</a><ul><li class="none"><a href="../../coding_conventions.html">Coding Convention</a></li><li class="none"><a href="../../versioning.html">Versionning</a></li></ul></li><li class="expanded"><a href="../../team-list.html">Project Information</a><ul><li class="none"><a href="../../team-list.html">Project Team</a></li><li class="none"><a href="http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/" class="externalLink" title="External Link">Source Code</a></li></ul></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../images/logos/maven-button-1.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><p>
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div><div class="nav">
<a class="el" href="dir_16487952adfeac4b2b9df719b49efdb6.html">include</a></div></p></div><div class="section"><a name="sandesha2_transaction_h"></a><h2>sandesha2_transaction.h</h2><p><a href="sandesha2__transaction_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright 2004,2005 The Apache Software Foundation.</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
<a name="l00005"></a>00005 <span class="comment"> * you may not use this file except in compliance with the License.</span>
<a name="l00006"></a>00006 <span class="comment"> * You may obtain a copy of the License at</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment"> */</span>
<a name="l00016"></a>00016
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef SANDESHA2_TRANSACTION_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define SANDESHA2_TRANSACTION_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;axutil_allocator.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;axutil_env.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;axutil_error.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;axutil_string.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;axutil_utils.h&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span>
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034 <span class="preprocessor">#endif</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="keyword">typedef</span> <span class="keyword">struct </span>sandesha2_transaction sandesha2_transaction_t;
<a name="l00037"></a>00037 <span class="keyword">typedef</span> <span class="keyword">struct </span>sandesha2_transaction_ops sandesha2_transaction_ops_t;
<a name="l00038"></a>00038 <span class="keyword">struct </span>sandesha2_storage_mgr;
<a name="l00039"></a>00039 <span class="keyword">struct </span>sandesha2_rm_bean;
<a name="l00040"></a>00040
<a name="l00046"></a>00046 AXIS2_DECLARE_DATA <span class="keyword">struct </span>sandesha2_transaction_ops
<a name="l00047"></a>00047 {
<a name="l00052"></a>00052 axis2_status_t (AXIS2_CALL *
<a name="l00053"></a>00053 free) (
<a name="l00054"></a>00054 sandesha2_transaction_t *transaction,
<a name="l00055"></a>00055 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00056"></a>00056
<a name="l00057"></a>00057 axis2_bool_t (AXIS2_CALL *
<a name="l00058"></a>00058 is_active)(
<a name="l00059"></a>00059 sandesha2_transaction_t *transaction,
<a name="l00060"></a>00060 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00061"></a>00061
<a name="l00062"></a>00062 void (AXIS2_CALL *
<a name="l00063"></a>00063 commit) (
<a name="l00064"></a>00064 sandesha2_transaction_t *transaction,
<a name="l00065"></a>00065 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00066"></a>00066
<a name="l00067"></a>00067 void (AXIS2_CALL *
<a name="l00068"></a>00068 rollback) (
<a name="l00069"></a>00069 sandesha2_transaction_t *transaction,
<a name="l00070"></a>00070 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00071"></a>00071
<a name="l00072"></a>00072 void (AXIS2_CALL *
<a name="l00073"></a>00073 enlist)(
<a name="l00074"></a>00074 sandesha2_transaction_t *trans,
<a name="l00075"></a>00075 <span class="keyword">const</span> axutil_env_t *env,
<a name="l00076"></a>00076 <span class="keyword">struct </span>sandesha2_rm_bean *rm_bean);
<a name="l00077"></a>00077 };
<a name="l00078"></a>00078
<a name="l00079"></a>00079 AXIS2_DECLARE_DATA <span class="keyword">struct </span>sandesha2_transaction
<a name="l00080"></a>00080 {
<a name="l00081"></a>00081 <span class="keyword">const</span> sandesha2_transaction_ops_t *ops;
<a name="l00082"></a>00082 };
<a name="l00083"></a>00083
<a name="l00084"></a>00084 AXIS2_EXTERN sandesha2_transaction_t* AXIS2_CALL
<a name="l00085"></a>00085 sandesha2_transaction_create(
<a name="l00086"></a>00086 <span class="keyword">const</span> axutil_env_t *env,
<a name="l00087"></a>00087 <span class="keyword">struct</span> sandesha2_storage_mgr *storage_mgr);
<a name="l00088"></a>00088
<a name="l00089"></a>00089 axis2_status_t AXIS2_CALL
<a name="l00090"></a>00090 sandesha2_transaction_free(
<a name="l00091"></a>00091 sandesha2_transaction_t *transaction,
<a name="l00092"></a>00092 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00093"></a>00093
<a name="l00094"></a>00094 axis2_bool_t AXIS2_CALL
<a name="l00095"></a>00095 sandesha2_transaction_is_active(
<a name="l00096"></a>00096 sandesha2_transaction_t *transaction,
<a name="l00097"></a>00097 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00098"></a>00098
<a name="l00099"></a>00099 <span class="keywordtype">void</span> AXIS2_CALL
<a name="l00100"></a>00100 sandesha2_transaction_commit(
<a name="l00101"></a>00101 sandesha2_transaction_t *transaction,
<a name="l00102"></a>00102 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00103"></a>00103
<a name="l00104"></a>00104 <span class="keywordtype">void</span> AXIS2_CALL
<a name="l00105"></a>00105 sandesha2_transaction_rollback(
<a name="l00106"></a>00106 sandesha2_transaction_t *transaction,
<a name="l00107"></a>00107 <span class="keyword">const</span> axutil_env_t *env);
<a name="l00108"></a>00108
<a name="l00109"></a>00109 <span class="keywordtype">void</span> AXIS2_CALL
<a name="l00110"></a>00110 sandesha2_transaction_enlist(
<a name="l00111"></a>00111 sandesha2_transaction_t *trans,
<a name="l00112"></a>00112 <span class="keyword">const</span> axutil_env_t *env,
<a name="l00113"></a>00113 <span class="keyword">struct</span> sandesha2_rm_bean *rm_bean);
<a name="l00114"></a>00114
<a name="l00116"></a>00116 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span>}
<a name="l00118"></a>00118 <span class="preprocessor">#endif</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* SANDESHA2_TRANSACTION_H */</span>
</pre></div></p></div><div class="section"><address style="text-align: right;"><small>Generated on Mon Oct 1 17:19:03 2007 for Sandesha2/C by 
<a href="http://www.doxygen.org/index.html" class="externalLink" title="External Link">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></img></a> 1.5.3 </small></address></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2005-2007, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>