From 57a13bcea2b70c09aff2953bd0a2d451659e9bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 21 Aug 2020 12:48:32 +0200 Subject: text: provide load function taking a directory descriptor --- text.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text.h') diff --git a/text.h b/text.h index a5816eb..43ff9c1 100644 --- a/text.h +++ b/text.h @@ -95,6 +95,7 @@ enum TextLoadMethod { * @endrst */ Text *text_load(const char *filename); +Text *text_loadat(int dirfd, const char *filename); /** * Create a text instance populated with the given file content. * @@ -109,6 +110,7 @@ Text *text_load(const char *filename); * @endrst */ Text *text_load_method(const char *filename, enum TextLoadMethod); +Text *text_loadat_method(int dirfd, const char *filename, enum TextLoadMethod); /** Release all ressources associated with this text instance. */ void text_free(Text*); /** -- cgit v1.2.3