]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Removed gavl_node from contract as the contract container is very application specific
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 20 Oct 2008 13:25:20 +0000 (15:25 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 20 Oct 2008 13:25:20 +0000 (15:25 +0200)
fres/contract/fres_contract.h

index 72a47e9e2c4b940ff061d09ef2f0873d67c222a6..24b72e3092b82eeebfb5c6eee62490db29b87cba 100644 (file)
@@ -10,7 +10,6 @@
 struct fres_contract {
        fres_contract_id_t id;
        struct fres_container *container;       /**< Pointer to the container (opaque type). */
-       gavl_node_t node;
 };
 
 struct fres_contract *fres_contract_new(void);
@@ -19,19 +18,19 @@ struct fres_contract *fres_contract_duplicate(struct fres_contract *src);
 
 #define FRES_CONTRACT_ACCESSOR(type)                                   \
        static inline int                                               \
-       fres_contract_add_##type(struct fres_contract *contract,                \
-                              fres_block_##type *block)                        \
+       fres_contract_add_##type(struct fres_contract *contract,        \
+                                fres_block_##type *block)              \
        {                                                               \
                return fres_container_add_##type(contract->container,   \
-                                              block);                  \
+                                                block);                \
        }                                                               \
-       static inline fres_block_##type *                                       \
-       fres_contract_get_##type(struct fres_contract *contract)                \
+       static inline fres_block_##type *                               \
+       fres_contract_get_##type(struct fres_contract *contract)        \
        {                                                               \
                return fres_container_get_##type(contract->container);  \
        }                                                               \
        static inline void                                              \
-       fres_contract_del_##type(struct fres_contract *contract)                \
+       fres_contract_del_##type(struct fres_contract *contract)        \
        {                                                               \
                fres_container_del_##type(contract->container);         \
        }