X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Futils.h;fp=ltt-sessiond%2Futils.h;h=449c3ef6bc5276689d55c43beb9299e5006cd9b6;hp=4da5f498e6556de40a9d024f89a9eb9dc7fb8243;hb=54d01ffb43587b221dc50ec42b6070fad89bd255;hpb=e848fc768a950acc1b823fcb139057a4fac1442a diff --git a/ltt-sessiond/utils.h b/ltt-sessiond/utils.h index 4da5f498e..449c3ef6b 100644 --- a/ltt-sessiond/utils.h +++ b/ltt-sessiond/utils.h @@ -1,9 +1,5 @@ -#ifndef _LTT_UTILS_H -#define _LTT_UTILS_H - /* * Copyright (C) 2011 - David Goulet - * Copyright (C) 2011 - Mathieu Desnoyers * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -19,13 +15,13 @@ * Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include +#ifndef _LTT_UTILS_H +#define _LTT_UTILS_H -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0]))) -#endif +#include int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid); const char *get_home_dir(void); +int notify_thread_pipe(int wpipe); #endif /* _LTT_UTILS_H */