1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of tlm (Tiny Login Manager)
6 * Copyright (C) 2013 Intel Corporation.
8 * Contact: Amarnath Valluri <amarnath.valluri@linux.intel.com>
9 * Jussi Laako <jussi.laako@linux.intel.com>
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
30 #include <sys/types.h>
36 g_clear_string (gchar **);
39 tlm_user_get_name (uid_t user_id);
42 tlm_user_get_uid (const gchar *username);
45 tlm_user_get_gid (const gchar *username);
48 tlm_user_get_home_dir (const gchar *username);
51 tlm_user_get_shell (const gchar *username);
54 tlm_utils_delete_dir (const gchar *dir);
57 tlm_utils_log_utmp_entry (const gchar *username);
60 tlm_utils_split_command_line (const gchar *command);
63 tlm_utils_split_command_lines (const GList const *commands_list);
65 typedef void (*WatchCb) (const gchar *found_item, gboolean is_final, GError *error, gpointer userdata);
68 tlm_utils_watch_for_files (const gchar **watch_list, WatchCb cb, gpointer userdata);
72 #endif /* _TLM_UTILS_H */