frsh_contract_type_t *contract_type);
/**
- * frsh_contract_set_resource_type_and_id()
+ * frsh_contract_set_resource_and_label()
*
* Specify processor_id/network_id and whether it is a processor or a
* network. Otherwise default values (type is processor and id is #0
* will apply.
**/
-int frsh_contract_set_resource_type_and_id
+int frsh_contract_set_resource_and_label
(frsh_contract_t *contract,
frsh_resource_type_t resource_type,
frsh_resource_id_t resource_id,
/**
- * frsh_contract_get_resource_type_and_id()
+ * frsh_contract_get_resource_and_label()
*
* Specify processor_id/network_id and whether it is a processor or a
* network. Otherwise default values (processor and processor #0 will
* apply.
**/
-int frsh_contract_get_resource_type_and_id
+int frsh_contract_get_resource_and_label
(const frsh_contract_t *contract,
frsh_resource_type_t *resource_type,
frsh_resource_id_t *resource_id,
* simultaneously and atomically.
*
* @{
- **//**
- * frsh_get_vres_id_from_contract_label()
- *
- * This operation retrieves the vres_id whose contract_label
- * corresponds to the parameter. It returns an error if the
- * contract_label is not known.
- *
- * @return 0 if no error \n
- * FRSH_ERR_BAD_ARGUMENT : if the contract argument is NULL or the
- * contract_label is NULL \n
- * FRSH_ERR_NOT_SCHEDULED_CALLING_THREAD : if the calling thread is not
-
+ **/
/**
* frsh_group_negotiate()
/*************************/
/** Granularity of spare capacity requirements: continuous or discrete **/
-typedef enum {FRSH_GRT_CONTINUOUS, FRSH_GRT_DISCRETE} frsh_granularity_t;
+typedef enum {FRSH_GR_CONTINUOUS, FRSH_GR_DISCRETE} frsh_granularity_t;
/** Utilization (C and T) **/
typedef struct {
} frsh_utilization_set_t;
// Constants for assigning default values
-#define FRSH_DEFAULT_GRANULARITY FRSH_GRT_CONTINUOUS
+#define FRSH_DEFAULT_GRANULARITY FRSH_GR_CONTINUOUS
#define FRSH_DEFAULT_WEIGHT 0
#define FRSH_DEFAULT_IMPORTANCE 1