]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Add frsh_transaction.h
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 22 Jun 2010 15:28:56 +0000 (17:28 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 22 Jun 2010 15:28:56 +0000 (17:28 +0200)
frsh.h
frsh_transaction.h [new file with mode: 0644]

diff --git a/frsh.h b/frsh.h
index 4ff7cd84a9f1e3ebf41522b93bdad7ba2b605904..f6347f3c058b49645f32a0afae06b0fd447cc2d2 100644 (file)
--- a/frsh.h
+++ b/frsh.h
 
 #endif  //FRSH_SPARE_CAPACITY_MODULE_SUPPORTED
 
+#include <frsh_transaction.h>
+
 #endif // _FRSH_H_
diff --git a/frsh_transaction.h b/frsh_transaction.h
new file mode 100644 (file)
index 0000000..c7814eb
--- /dev/null
@@ -0,0 +1,49 @@
+/**************************************************************************/
+/* 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_