2 * Copyright (C) 2013 Intel Corporation.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 * Stephen Clymans <stephen.clymans@open.eurogiciel.org>
25 #ifndef TIZEN_PLATFORM_WRAPPER_GROUPS_H
26 #define TIZEN_PLATFORM_WRAPPER_GROUPS_H
28 #include "tzplatform_variables.h"
31 * This feature aims to know if a user belongs to a specified group
35 * Return 0 if the given uid is not in the specified group.
36 * Return 1 if the given uid is in the specified group.
38 * If you pass the -1 value to this function it will take the current uid given
39 * by the POSIX function getuid();
41 int _has_specified_group_static_(uid_t uid, enum tzplatform_variable group);
47 #endif /* TIZEN_PLATFORM_WRAPPER_GROUPS_H */