storage_internal.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. #ifndef STORAGE_INTERNAL_H_
  2. #define STORAGE_INTERNAL_H_
  3. /**
  4. * storage_transaction_start_write(NPC, machinenum, lastseq, seqnum):
  5. * Start a write transaction, presuming that ${lastseq} is the sequence
  6. * number of the last committed transaction; and return the sequence number
  7. * of the new transaction in ${seqnum}.
  8. */
  9. int storage_transaction_start_write(NETPACKET_CONNECTION *, uint64_t,
  10. const uint8_t[32], uint8_t[32]);
  11. /**
  12. * storage_transaction_start_delete(NPC, machinenum, lastseq, seqnum):
  13. * As storage_transaction_start_delete, but s/write/delete/.
  14. */
  15. int storage_transaction_start_delete(NETPACKET_CONNECTION *, uint64_t,
  16. const uint8_t[32], uint8_t[32]);
  17. /**
  18. * storage_transaction_start_fsck(NPC, machinenum, seqnum, whichkey):
  19. * Start a fsck transaction, and return the sequence number of the new
  20. * transaction in ${seqnum}. If ${whichkey} is zero, use the
  21. * write key; otherwise, use the delete key.
  22. */
  23. int storage_transaction_start_fsck(NETPACKET_CONNECTION *, uint64_t,
  24. uint8_t[32], uint8_t);
  25. #endif /* !STORAGE_INTERNAL_H_ */