]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Added a comment about inappropriate power-managemnt implementation
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 10 May 2009 09:30:14 +0000 (11:30 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 10 May 2009 09:30:14 +0000 (11:30 +0200)
frsh_api/frsh_contract.c

index 4b262545c4f0b68f2afabd47fe7e1e95f874a130..790d6099b71429f76c9612b52b918a4aba74c0a1 100644 (file)
@@ -338,6 +338,12 @@ int frsh_contract_negotiate
                goto err;
        }
 
+       /* TODO: Battery time check should be moved to
+        * FCB. Implementation of FRSH API is meant only as a thin
+        * wrapper of FRES framework and the FRES framework could
+        * theoretically be used without FRSH API. Moreover, if there
+        * is some logging mechanism in FCB, this contract rejection
+        * will not be logged. */
        p = fres_contract_get_power_management(*contract);
        if (p && !fosa_rel_time_is_null(p->min_expiration)) {
                frsh_abs_time_t req_time, exp_time;