]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
fcb: Add skeleton of transaction handling
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 23 Jun 2010 15:31:33 +0000 (17:31 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 23 Jun 2010 15:31:33 +0000 (17:31 +0200)
fres/cbroker/fcb.c
fres/cbroker/fcb.idl

index f34d47f003ad5348d4667957410bfd65c26622ef..7f74dab6c06294bfef5b1ab90504e65f9455aa1f 100644 (file)
@@ -903,6 +903,31 @@ void get_resources(fres_contract_broker obj, fres_resource_seq** resources, CORB
        *resources = seq;
 }
 
+CORBA_long
+negotiate_transaction(fres_contract_broker _obj,
+                     const fres_transaction_t* transaction,
+                     CORBA_Environment *ev)
+{
+       return FRSH_ERR_NOT_IMPLEMENTED;
+}
+
+CORBA_long
+wait_transaction(fres_contract_broker _obj,
+                const CORBA_char * name,
+                CORBA_Environment *ev)
+{
+       return FRSH_ERR_NOT_IMPLEMENTED;
+}
+
+CORBA_long
+allocate_transaction_vres(fres_contract_broker _obj,
+                         const CORBA_long id,
+                         CORBA_Environment *ev)
+{
+       return FRSH_ERR_NOT_IMPLEMENTED;
+}
+
+
 #if CONFIG_FCB_INET && !CONFIG_FORB_PROTO_INET_DEFAULT
 static int register_inet_port(forb_orb orb)
 {
@@ -928,6 +953,9 @@ struct forb_fres_contract_broker_impl impl = {
        .register_allocator = register_allocator,
        .redistribute_spare_capacity = redistribute_spare_capacity,
        .get_resources = get_resources,
+       .negotiate_transaction = negotiate_transaction,
+       .wait_transaction = wait_transaction,
+       .allocate_transaction_vres = allocate_transaction_vres,
 };
 
 void peer_discovery_callback(const forb_orb peer_orb, const char *orb_id)
index 58d4c66113393f239f074ddf11f38bfc594cb352..70eb59a96e1e7b805b44294f89b4ad6e3d67ef3a 100644 (file)
@@ -58,6 +58,7 @@
 #define _CM_IDL
 
 #include "../contract/fres_contract_idl.idl"
+#include "../contract/fres_transaction_idl.idl"
 #include "../contract/fres_blocks.idl"
 #include "../resmng/frm.idl"
 #include "../resalloc/fra.idl"
@@ -153,6 +154,11 @@ module fres {
                 * @param[out] resources
                 */
                void get_resources(out resource_seq resources);
+
+               long negotiate_transaction(in transaction_t transaction);
+               long wait_transaction(in string name,
+                                     out transaction_t transaction);
+               long allocate_transaction_vres(in long id);
        };
 };