summaryrefslogtreecommitdiff
path: root/src/libgit2/oidarray.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-06 17:37:17 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-09 15:17:20 +0000
commit5e561752bbe4347549e5a3d029f61a9e716b6660 (patch)
treea88ef27920bbd174510ba3b9d47b73980a1bdba4 /src/libgit2/oidarray.h
parent88fb742de83f12e3b13bdcbcd4f4e0fbbd3f8bd1 (diff)
downloadlibgit2-5e561752bbe4347549e5a3d029f61a9e716b6660.tar.gz
refactor: `src` is now `src/libgit2`
Adding an additional hierarchy allows us to split out utility functions.
Diffstat (limited to 'src/libgit2/oidarray.h')
-rw-r--r--src/libgit2/oidarray.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libgit2/oidarray.h b/src/libgit2/oidarray.h
new file mode 100644
index 000000000..eed3a1091
--- /dev/null
+++ b/src/libgit2/oidarray.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+#ifndef INCLUDE_oidarray_h__
+#define INCLUDE_oidarray_h__
+
+#include "common.h"
+
+#include "git2/oidarray.h"
+#include "array.h"
+
+typedef git_array_t(git_oid) git_array_oid_t;
+
+extern void git_oidarray__reverse(git_oidarray *arr);
+extern void git_oidarray__from_array(git_oidarray *arr, git_array_oid_t *array);
+
+#endif