summaryrefslogtreecommitdiff
path: root/src/textfile.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-04-15 13:48:39 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-04-18 16:52:56 -0700
commit5fb27418e7decc30000f57f2f7911dd25c24cb59 (patch)
treef1fa4f30d395ab676f69b42c1717a778b62ecafb /src/textfile.h
parent180cf09933b2d8eb03972c8638063429fe5fece5 (diff)
downloadbluez-5fb27418e7decc30000f57f2f7911dd25c24cb59.tar.gz
storage: Add support for STATE_DIRECTORY environment variable
When running as a systemd service the STATE_DIRECTORY environment variable maybe set: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
Diffstat (limited to 'src/textfile.h')
-rw-r--r--src/textfile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/textfile.h b/src/textfile.h
index b4e2e0248..4ecd5ed98 100644
--- a/src/textfile.h
+++ b/src/textfile.h
@@ -8,9 +8,10 @@
*
*/
+int create_filename(char *str, size_t size, const char *fmt, ...)
+ __attribute__((format(printf, 3, 4)));
int create_file(const char *filename, const mode_t mode);
-int create_name(char *buf, size_t size, const char *path,
- const char *address, const char *name);
+int create_name(char *buf, size_t size, const char *address, const char *name);
int textfile_put(const char *pathname, const char *key, const char *value);
int textfile_del(const char *pathname, const char *key);