syslog-ng source
notified-fd-events.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025 One Identity LLC.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
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  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 #ifndef NOTIFIED_FD_EVENTS_H_INCLUDED
24 #define NOTIFIED_FD_EVENTS_H_INCLUDED
25 
26 #include "poll-fd-events.h"
27 
28 static inline void
29 notified_fd_events_update_watches(PollEvents *s, GIOCondition cond)
30 {
31  poll_events_check_watches(s);
32 }
33 
34 static inline PollEvents *
35 notified_fd_events_new(gint fd)
36 {
38 
39  self->super.type = FM_INOTIFY;
40  self->super.start_watches = NULL;
41  self->super.stop_watches = NULL;
42  self->super.suspend_watches = NULL;
43  self->super.update_watches = notified_fd_events_update_watches;
44 
45  return &self->super;
46 }
47 
48 #endif
@ FM_INOTIFY
Definition: poll-events.h:34
PollEvents * poll_fd_events_new(gint fd)
Definition: poll-fd-events.c:84
Definition: poll-fd-events.h:31