]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/blob - frsh_transaction.h
Add frsh_transaction.h
[frescor/frsh-forb.git] / frsh_transaction.h
1 /**************************************************************************/
2 /* Copyright (C) 2010 Czech Technical University in Prague                */
3 /*                                                                        */
4 /*  This file is part of FRSH (FRescor ScHeduler)                         */
5 /*                                                                        */
6 /* FRSH is free software; you can redistribute it and/or modify it        */
7 /* under terms of the GNU General Public License as published by the      */
8 /* Free Software Foundation; either version 2, or (at your option) any    */
9 /* later version.  FRSH is distributed in the hope that it will be        */
10 /* useful, but WITHOUT ANY WARRANTY; without even the implied warranty    */
11 /* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU    */
12 /* General Public License for more details. You should have received a    */
13 /* copy of the GNU General Public License along with FRSH; see file       */
14 /* COPYING. If not, write to the Free Software Foundation, 675 Mass Ave,  */
15 /* Cambridge, MA 02139, USA.                                              */
16 /*                                                                        */
17 /* As a special exception, including FRSH header files in a file,         */
18 /* instantiating FRSH generics or templates, or linking other files       */
19 /* with FRSH objects to produce an executable application, does not       */
20 /* by itself cause the resulting executable application to be covered     */
21 /* by the GNU General Public License. This exception does not             */
22 /* however invalidate any other reasons why the executable file might be  */
23 /* covered by the GNU Public License.                                     */
24 /**************************************************************************/
25
26
27 #ifndef _FRSH_TRANSACTION_H_
28 #define _FRSH_TRANSACTION_H_
29
30 #include "frsh_cpp_macros.h"
31 #include <fres_transaction.h>
32
33 FRSH_CPP_BEGIN_DECLS
34
35 typedef fres_transaction_t frsh_transaction_t;
36
37 /** 
38  * Negotiates a multi-resource transaction.
39  * 
40  * @param trans
41  * 
42  * @return Zero on success, non-zere error code on return.
43  */
44 int
45 frsh_transaction_negotiate(frsh_transaction_t *trans);
46
47 FRSH_CPP_END_DECLS
48
49 #endif // _FRSH_TRANSACTION_H_