consdiff.h 620 B

12345678910111213141516171819202122
  1. /* Copyright (c) 2014, Daniel Martí
  2. * Copyright (c) 2014, The Tor Project, Inc. */
  3. /* See LICENSE for licensing information */
  4. #ifndef TOR_CONSDIFF_H
  5. #define TOR_CONSDIFF_H
  6. #include "or.h"
  7. smartlist_t *
  8. consdiff_gen_diff(smartlist_t *cons1, smartlist_t *cons2,
  9. common_digests_t *digests1, common_digests_t *digests2);
  10. char *
  11. consdiff_apply_diff(smartlist_t *cons1, smartlist_t *diff,
  12. common_digests_t *digests1);
  13. int
  14. consdiff_get_digests(smartlist_t *diff,
  15. char *digest1, char *digest1_hex,
  16. char *digest2, char *digest2_hex);
  17. #endif