/ libpkg / private / add.h
add.h
 1  /*-
 2   * Copyright (c) 2024-2025 Baptiste Daroussin <bapt@FreeBSD.org>
 3   *
 4   * SPDX-License-Identifier: BSD-2-Clause
 5   */
 6  
 7  #pragma once
 8  
 9  #include <private/pkg.h>
10  
11  struct pkg_add_context {
12  	int rootfd;
13  	struct pkg *pkg;
14  	struct pkg *localpkg;
15  };
16  struct tempdir *open_tempdir(struct pkg_add_context *, const char *path);