syslog-ng source
file-list.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Balabit
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 as published
6  * by the Free Software Foundation, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * As an additional exemption you are allowed to compile & link against the
18  * OpenSSL libraries as published by the OpenSSL project. See the file
19  * COPYING for details.
20  *
21  */
22 
23 #ifndef MODULES_AFFILE_FILE_LIST_H_
24 #define MODULES_AFFILE_FILE_LIST_H_
25 
26 #include <glib.h>
27 
28 typedef struct _PendingFileList PendingFileList;
29 
30 PendingFileList *pending_file_list_new(void);
31 void pending_file_list_free(PendingFileList *self);
32 
33 void pending_file_list_add(PendingFileList *self, const gchar *value);
34 gchar *pending_file_list_pop(PendingFileList *self);
35 
36 gboolean pending_file_list_remove(PendingFileList *self, const gchar *value);
37 
38 void pending_file_list_steal(PendingFileList *self, GList *entry);
39 
40 GList *pending_file_list_begin(PendingFileList *self);
41 GList *pending_file_list_end(PendingFileList *self);
42 GList *pending_file_list_next(GList *it);
43 
44 #endif /* MODULES_AFFILE_HASHED_QUEUE_H_ */
void pending_file_list_free(PendingFileList *self)
Definition: file-list.c:39
GList * pending_file_list_begin(PendingFileList *self)
Definition: file-list.c:95
PendingFileList * pending_file_list_new(void)
Definition: file-list.c:31
GList * pending_file_list_next(GList *it)
Definition: file-list.c:105
gboolean pending_file_list_remove(PendingFileList *self, const gchar *value)
Definition: file-list.c:70
void pending_file_list_add(PendingFileList *self, const gchar *value)
Definition: file-list.c:46
gchar * pending_file_list_pop(PendingFileList *self)
Definition: file-list.c:57
void pending_file_list_steal(PendingFileList *self, GList *entry)
Definition: file-list.c:84
GList * pending_file_list_end(PendingFileList *self)
Definition: file-list.c:100
Definition: file-list.c:26
GString * value
Definition: test_decode.c:28