/* * Copyright (c) 2025 One Identity LLC. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * As an additional exemption you are allowed to compile & link against the * OpenSSL libraries as published by the OpenSSL project. See the file * COPYING for details. * */ #ifndef NOTIFIED_FD_EVENTS_H_INCLUDED #define NOTIFIED_FD_EVENTS_H_INCLUDED #include "poll-fd-events.h" static inline void notified_fd_events_update_watches(PollEvents *s, GIOCondition cond) { poll_events_check_watches(s); } static inline PollEvents * notified_fd_events_new(gint fd) { PollFdEvents *self = (PollFdEvents *) poll_fd_events_new(fd); self->super.type = FM_INOTIFY; self->super.start_watches = NULL; self->super.stop_watches = NULL; self->super.suspend_watches = NULL; self->super.update_watches = notified_fd_events_update_watches; return &self->super; } #endif