xref: /aosp_15_r20/external/selinux/restorecond/utmpwatcher.h (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
1*2d543d20SAndroid Build Coastguard Worker /* utmpwatcher.h --
2*2d543d20SAndroid Build Coastguard Worker  * Copyright 2006 Red Hat Inc., Durham, North Carolina.
3*2d543d20SAndroid Build Coastguard Worker  * All Rights Reserved.
4*2d543d20SAndroid Build Coastguard Worker  *
5*2d543d20SAndroid Build Coastguard Worker  * This program is free software; you can redistribute it and/or modify
6*2d543d20SAndroid Build Coastguard Worker  * it under the terms of the GNU General Public License as published by
7*2d543d20SAndroid Build Coastguard Worker  * the Free Software Foundation; either version 2 of the License, or
8*2d543d20SAndroid Build Coastguard Worker  * (at your option) any later version.
9*2d543d20SAndroid Build Coastguard Worker  *
10*2d543d20SAndroid Build Coastguard Worker  * This program is distributed in the hope that it will be useful,
11*2d543d20SAndroid Build Coastguard Worker  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*2d543d20SAndroid Build Coastguard Worker  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*2d543d20SAndroid Build Coastguard Worker  * GNU General Public License for more details.
14*2d543d20SAndroid Build Coastguard Worker  *
15*2d543d20SAndroid Build Coastguard Worker  * You should have received a copy of the GNU General Public License
16*2d543d20SAndroid Build Coastguard Worker  * along with this program; if not, write to the Free Software
17*2d543d20SAndroid Build Coastguard Worker  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18*2d543d20SAndroid Build Coastguard Worker  *
19*2d543d20SAndroid Build Coastguard Worker  * Authors:
20*2d543d20SAndroid Build Coastguard Worker  *   Dan Walsh <[email protected]>
21*2d543d20SAndroid Build Coastguard Worker  *
22*2d543d20SAndroid Build Coastguard Worker  */
23*2d543d20SAndroid Build Coastguard Worker #ifndef UTMPWATCHER_H
24*2d543d20SAndroid Build Coastguard Worker #define UTMPWATCHER_H
25*2d543d20SAndroid Build Coastguard Worker 
26*2d543d20SAndroid Build Coastguard Worker unsigned int utmpwatcher_handle(int inotify_fd, int wd);
27*2d543d20SAndroid Build Coastguard Worker void utmpwatcher_add(int inotify_fd, const char *path);
28*2d543d20SAndroid Build Coastguard Worker void utmpwatcher_free(void);
29*2d543d20SAndroid Build Coastguard Worker 
30*2d543d20SAndroid Build Coastguard Worker #endif
31