Make compare_packet follow memcmp semantics and export to other modules
[onak.git] / merge.h
diff --git a/merge.h b/merge.h
index cabbc1886a35db8e26654690ba065b51f4185db7..770da9eee3f331fdcd00e25ddd0dcc765d7cef45 100644 (file)
--- a/merge.h
+++ b/merge.h
 
 #include "keystructs.h"
 
+/**
+ *     compare_packets - Check to see if 2 OpenPGP packets are the same.
+ *     @a: The first packet to compare.
+ *     @b: The second packet to compare.
+ *
+ *     Takes 2 packets and returns 0 if they are the same, -1 if a is
+ *      less than b, or 1 if a is greater than b.
+ */
+int compare_packets(struct openpgp_packet *a, struct openpgp_packet *b);
+
 /**
  *     merge_keys - Takes 2 public keys and merges them.
  *     @a: The old key. The merged key is returned in this structure.