--- /dev/null
+/**************************************************************************/
+/* Copyright (C) 2010 Czech Technical University in Prague */
+/* */
+/* This file is part of FRSH (FRescor ScHeduler) */
+/* */
+/* FRSH is free software; you can redistribute it and/or modify it */
+/* under terms of the GNU General Public License as published by the */
+/* Free Software Foundation; either version 2, or (at your option) any */
+/* later version. FRSH is distributed in the hope that it will be */
+/* useful, but WITHOUT ANY WARRANTY; without even the implied warranty */
+/* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
+/* General Public License for more details. You should have received a */
+/* copy of the GNU General Public License along with FRSH; see file */
+/* COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, */
+/* Cambridge, MA 02139, USA. */
+/* */
+/* As a special exception, including FRSH header files in a file, */
+/* instantiating FRSH generics or templates, or linking other files */
+/* with FRSH objects to produce an executable application, does not */
+/* by itself cause the resulting executable application to be covered */
+/* by the GNU General Public License. This exception does not */
+/* however invalidate any other reasons why the executable file might be */
+/* covered by the GNU Public License. */
+/**************************************************************************/
+
+
+#ifndef _FRSH_TRANSACTION_H_
+#define _FRSH_TRANSACTION_H_
+
+#include "frsh_cpp_macros.h"
+#include <fres_transaction.h>
+
+FRSH_CPP_BEGIN_DECLS
+
+typedef fres_transaction_t frsh_transaction_t;
+
+/**
+ * Negotiates a multi-resource transaction.
+ *
+ * @param trans
+ *
+ * @return Zero on success, non-zere error code on return.
+ */
+int
+frsh_transaction_negotiate(frsh_transaction_t *trans);
+
+FRSH_CPP_END_DECLS
+
+#endif // _FRSH_TRANSACTION_H_