X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Futil.h;h=407160d528c88eda7e4092bf496851f24098b57b;hb=1d6702e8d3877c0bebf3ac817dc45ff72f5ecfa9;hp=bf5703c5aa310290199704eda0ed50f1dbc00463;hpb=4b67834e9f8a336dbc917f3bf212550e61cc98b4;p=elogind.git diff --git a/src/util.h b/src/util.h index bf5703c5a..407160d52 100644 --- a/src/util.h +++ b/src/util.h @@ -458,6 +458,10 @@ int dirent_ensure_type(DIR *d, struct dirent *de); int in_search_path(const char *path, char **search); int get_files_in_directory(const char *path, char ***list); +char *join(const char *x, ...) _sentinel_; + +bool is_main_thread(void); + #define NULSTR_FOREACH(i, l) \ for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)