mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
libstore-c: Add nix_store_path_clone
This commit is contained in:
parent
48808a5320
commit
1233bcde37
2 changed files with 13 additions and 0 deletions
|
@ -132,3 +132,8 @@ void nix_store_path_free(StorePath * sp)
|
|||
{
|
||||
delete sp;
|
||||
}
|
||||
|
||||
StorePath * nix_store_path_clone(const StorePath * p)
|
||||
{
|
||||
return new StorePath{p->path};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue