|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
Copyright (C) 2013 RedHat inc.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is free software; you can redistribute it and/or modify
|
|
Packit |
8ea169 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
8ea169 |
the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
8ea169 |
(at your option) any later version.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
8ea169 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8ea169 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8ea169 |
GNU General Public License for more details.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
You should have received a copy of the GNU General Public License along
|
|
Packit |
8ea169 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit |
8ea169 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#ifndef _ABRT_INOTIFY_H_
|
|
Packit |
8ea169 |
#define _ABRT_INOTIFY_H_
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#include <sys/inotify.h>
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
struct abrt_inotify_watch;
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
typedef void (* abrt_inotify_watch_handler)(
|
|
Packit |
8ea169 |
struct abrt_inotify_watch *watch,
|
|
Packit |
8ea169 |
struct inotify_event *event,
|
|
Packit |
8ea169 |
void *user_data);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
struct abrt_inotify_watch *
|
|
Packit |
8ea169 |
abrt_inotify_watch_init(const char *path, int inotify_flags, abrt_inotify_watch_handler handler, void *user_data);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
void
|
|
Packit |
8ea169 |
abrt_inotify_watch_destroy(struct abrt_inotify_watch *watch);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
void
|
|
Packit |
8ea169 |
abrt_inotify_watch_reset(struct abrt_inotify_watch *watch, const char *path, int inotify_flags);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#endif /*_ABRT_INOTIFY_H_*/
|