summaryrefslogtreecommitdiff
path: root/send-utils.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-12 17:06:48 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-15 14:09:11 +0200
commitb6a77a272b1a687f90999fe7aacf7a85523f0aa6 (patch)
tree975394432ce6eeee6395c3afdc44f677579b72db /send-utils.h
parentd304cf1a2d96705eb9fad051cb0db75cd88b93a5 (diff)
downloadbtrfs-progs-b6a77a272b1a687f90999fe7aacf7a85523f0aa6.tar.gz
btrfs-progs: and new path_cat helpers to send utils
Add versions of path_cat and path_cat3 that do not allocate the memory. The unhandled memory allocations are still there. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'send-utils.h')
-rw-r--r--send-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/send-utils.h b/send-utils.h
index d28c8d5..32e4fdc 100644
--- a/send-utils.h
+++ b/send-utils.h
@@ -90,7 +90,9 @@ void subvol_uuid_search_add(struct subvol_uuid_search *s,
int btrfs_subvolid_resolve(int fd, char *path, size_t path_len, u64 subvol_id);
char *path_cat(const char *p1, const char *p2);
+int path_cat_out(char *out, const char *p1, const char *p2);
char *path_cat3(const char *p1, const char *p2, const char *p3);
+int path_cat3_out(char *out, const char *p1, const char *p2, const char *p3);
#ifdef __cplusplus
}