Cleanup comments and bad indent
[lttng-tools.git] / ltt-sessiond / utils.h
CommitLineData
996b65c8
MD
1#ifndef _LTT_UTILS_H
2#define _LTT_UTILS_H
3
8e68d1c8
DG
4/*
5 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
996b65c8 6 * Copyright (C) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8e68d1c8 7 *
050349bb
DG
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; only version 2 of the License.
8e68d1c8 11 *
050349bb
DG
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
8e68d1c8 16 *
050349bb
DG
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19 * Place - Suite 330, Boston, MA 02111-1307, USA.
8e68d1c8
DG
20 */
21
996b65c8 22#include <unistd.h>
8e68d1c8 23
ab147185 24#ifndef ARRAY_SIZE
050349bb 25#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
ab147185
MD
26#endif
27
996b65c8 28int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
b082db07 29const char *get_home_dir(void);
8e68d1c8
DG
30
31#endif /* _LTT_UTILS_H */
This page took 0.034165 seconds and 4 git commands to generate.