]> git.proxmox.com Git - libgit2.git/blob - src/oidarray.c
Merge remote-tracking branch 'upstream/master' into cmn/host-cert-info
[libgit2.git] / src / oidarray.c
1 /*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7
8 #include "git2/oidarray.h"
9 #include "oidarray.h"
10 #include "array.h"
11
12 void git_oidarray_free(git_oidarray *arr)
13 {
14 git__free(arr->ids);
15 }
16
17 void git_oidarray__from_array(git_oidarray *arr, git_array_oid_t *array)
18 {
19 arr->count = array->size;
20 arr->ids = array->ptr;
21 }