summaryrefslogtreecommitdiff
path: root/ao-tools/lib/ao-hex.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-03-18 10:52:03 -0700
committerKeith Packard <keithp@keithp.com>2016-03-18 10:52:03 -0700
commit1d7f88bf7521fa6d301da072f95f97fa42d9d247 (patch)
tree812087739f4ee15947a291a13a737de9abe33554 /ao-tools/lib/ao-hex.h
parent4e738dff6dec4685b8712d3e96742971fa39c8f1 (diff)
ao-tools/lib: Add ao_hex_image_cat function
This takes two images and constructs a third containing the union of the contents along with 0xff bytes for any area between them. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/ao-hex.h')
-rw-r--r--ao-tools/lib/ao-hex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ao-tools/lib/ao-hex.h b/ao-tools/lib/ao-hex.h
index eb510ba2..a1ab490c 100644
--- a/ao-tools/lib/ao-hex.h
+++ b/ao-tools/lib/ao-hex.h
@@ -71,6 +71,9 @@ ao_hex_image_free(struct ao_hex_image *image);
struct ao_hex_image *
ao_hex_load(char *filename, struct ao_sym **symbols, int *num_symbols);
+struct ao_hex_image *
+ao_hex_image_cat(struct ao_hex_image *a, struct ao_hex_image *b);
+
int
ao_hex_image_equal(struct ao_hex_image *a, struct ao_hex_image *b);