]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/interfaces/LogWrite.nc
Merge over into the trunk.
[tinyos-2.x.git] / tos / interfaces / LogWrite.nc
index cf1736d12f860270b668e0611068d8821712113b..ddeb976e6781804dbe43942f35200d58b5636b73 100644 (file)
@@ -60,10 +60,13 @@ interface LogWrite {
    *
    * @param buf buffer that written data was read from.
    * @param len number of bytes actually written (valid even in case of error)
+   * @param records_lost TRUE if this append destroyed some old records from
+   *   the beginning of the log (only possible for circular logs).
    * @param error SUCCESS if append was possible, ESIZE if the (linear) log
    *    is full and FAIL for other errors.
    */
-  event void appendDone(void* buf, storage_len_t len, error_t error);
+  event void appendDone(void* buf, storage_len_t len, bool recordsLost,
+                       error_t error);
   
   /**
    * Return a "cookie" representing the current append offset within the