1 /**************************************************************************/
2 /* Copyright (C) 2010 Czech Technical University in Prague */
4 /* This file is part of FRSH (FRescor ScHeduler) */
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. */
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 /**************************************************************************/
27 #ifndef _FRSH_TRANSACTION_H_
28 #define _FRSH_TRANSACTION_H_
30 #include "frsh_cpp_macros.h"
31 #include <fres_transaction.h>
35 typedef fres_transaction_t frsh_transaction_t;
38 * Negotiates a multi-resource transaction.
42 * @return Zero on success, non-zere error code on return.
45 frsh_transaction_negotiate(frsh_transaction_t *trans);
49 #endif // _FRSH_TRANSACTION_H_