int frsh_contract_init(frsh_contract_t *contract)
{
// alocates contract
- cntr = frsh_calloc(FRSH_CONTRACT_SIZE);
+ //cntr = frsh_calloc(FRSH_CONTRACT_SIZE);
+
+ return FRSH_NO_ERROR;
}
/* Functions: frsh_contract_init,
*/
int frsh_contract_cancel(const frsh_vres_id_t vres)
{
- frsh_in_msg_t vres_msg;
- frsh_out_msg_t reply_msg;
-
/* check for framework initialization and arguments */
- if (!frsh_initialized)
+ /*if (!frsh_initialized)
PERROR_AND_RETURN(FRSH_ERR_NOT_INITIALIZED,
"can't proceed before initializing FRSH with 'frsh_init()'!");
+ */
return FRSH_NO_ERROR;
}
const frsh_vres_id_t vres)
{
/* check for framework initialization and arguments */
- if (!frsh_initialized)
+ /*if (!frsh_initialized)
PERROR_AND_RETURN(FRSH_ERR_NOT_INITIALIZED,
"can't proceed before initializing FRSH with 'frsh_init()'!");
-
+*/
return FRSH_NO_ERROR;
}
* FRSH_NO_ERROR
* FRSH_ERR_INVALID_SCHEDULER_REPLY (error in communication with the service thread)
*/
+#if 0
int frsh_contract_renegotiate_async(const frsh_contract_t *new_contract,
const frsh_vres_id_t vres,
const frsh_signal_t signal_to_notify,
{
/* check for framework initialization and arguments */
- if (!frsh_initialized)
+ /*if (!frsh_initialized)
PERROR_AND_RETURN(FRSH_ERR_NOT_INITIALIZED,
"can't proceed before initializing FRSH with 'frsh_init()'!");
-
+ */
return FRSH_NO_ERROR;
}
+#endif
+
#if 0
/////////////////////////////////////////////////////////////
// G R O U P O F C O N T R A C T S O P E R A T I O N S
{
}
-i#endif
+
+#endif
+// -----------------------------------------------------------------------
+// Copyright (C) 2006 - 2008 FRESCOR consortium partners:
+//
+// Universidad de Cantabria, SPAIN
+// University of York, UK
+// Scuola Superiore Sant'Anna, ITALY
+// Kaiserslautern University, GERMANY
+// Univ. Politécnica Valencia, SPAIN
+// Czech Technical University in Prague, CZECH REPUBLIC
+// ENEA SWEDEN
+// Thales Communication S.A. FRANCE
+// Visual Tools S.A. SPAIN
+// Rapita Systems Ltd UK
+// Evidence ITALY
+//
+// See http://www.frescor.org for a link to partners' websites
+//
+// FRESCOR project (FP6/2005/IST/5-034026) is funded
+// in part by the European Union Sixth Framework Programme
+// The European Union is not liable of any use that may be
+// made of this code.
+//
+//
+// based on previous work (FSF) done in the FIRST project
+//
+// Copyright (C) 2005 Mälardalen University, SWEDEN
+// Scuola Superiore S.Anna, ITALY
+// Universidad de Cantabria, SPAIN
+// University of York, UK
+//
+// FSF API web pages: http://marte.unican.es/fsf/docs
+// http://shark.sssup.it/contrib/first/docs/
+//
+// 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.
+// -----------------------------------------------------------------------
+//frsh_vres.c
+//==============================================
+// ******** ******* ******** ** **
+// **///// /**////** **////// /** /**
+// ** /** /** /** /** /**
+// ******* /******* /********* /**********
+// **//// /**///** ////////** /**//////**
+// ** /** //** /** /** /**
+// ** /** //** ******** /** /**
+// // // // //////// // //
+//
+// FRSH(FRescor ScHeduler), pronounced "fresh"
+//==============================================
+
+#include "frsh_contract.h"
/*
* frsh_vres_get_contract(), get the contract associated to a vres
*/
int frsh_vres_get_contract(const frsh_vres_id_t vres, frsh_contract_t *contract)
{
- if (!frsh_initialized)
- FRSH_ERROR(FRSH_ERR_NOT_INITIALIZED);
+ /*if (!frsh_initialized)
+ FRSH_ERROR(FRSH_ERR_NOT_INITIALIZED);*/
if (contract == NULL)
FRSH_ERROR(FRSH_ERR_BAD_ARGUMENT);
{
/* check for framework initialization and arguments */
- if (!frsh_initialized)
+ /*if (!frsh_initialized)
PERROR_AND_RETURN(FRSH_ERR_NOT_INITIALIZED,
- "can't proceed before initializing FRSH with 'frsh_init()'!");
- if (renegotiation_status == NULL)
+ "can't proceed before initializing FRSH with 'frsh_init()'!");*/
+/* if (renegotiation_status == NULL)
PERROR_AND_RETURN(FRSH_ERR_BAD_ARGUMENT,
- "can't return status in a NULL renegotiation_status");
+ "can't return status in a NULL renegotiation_status");*/
/* prepare the message */
return FRSH_NO_ERROR;
}
const frsh_resource_id_t resource_id,
frsh_vres_id_t *vres)
{
+ return FRSH_NO_ERROR;
}