|
Contiki 2.5
|
storage module interface More...
#include <core/net/uDTN/storage.h>
Data Fields | |
| void(* | init )(void) |
| called by agent a startup | |
| uint8_t(* | save_bundle )(struct mmem *bundlemem, uint32_t **bundle_number) |
| saves a bundle | |
| uint16_t(* | del_bundle )(uint32_t bundle_num, uint8_t reason) |
| deletes a bundle | |
| struct mmem *(* | read_bundle )(uint32_t bundle_num) |
| reads a bundle | |
| uint8_t(* | lock_bundle )(uint32_t bundle_num) |
| Marks a bundle as locked so it will not be deleted until it is unlocked. | |
| void(* | unlock_bundle )(uint32_t bundle_num) |
| Unlocks a bundle so it can be deleted again. | |
| uint16_t(* | free_space )(struct mmem *bundlemem) |
| checks if there is space for a bundle | |
| uint16_t(* | get_bundle_num )(void) |
| returns the number of saved bundles | |
| struct storage_entry_t *(* | get_bundles )(void) |
| returns pointer to list of bundles | |
1.8.3.1