syslog-ng source
darwinosl-source-persist.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Attila Szakacs <attila.szakacs@balabit.com>
3  * Copyright (c) 2023 Hofi <hofione@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program 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
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; 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 
24 #ifndef DARWINOSL_SOURCE_PERSIST_H
25 #define DARWINOSL_SOURCE_PERSIST_H
26 
27 #include "syslog-ng.h"
28 #include "persist-state.h"
29 
30 typedef struct _DarwinOSLogSourcePersist DarwinOSLogSourcePersist;
31 typedef struct _DarwinOSLogSourcePosition
32 {
33  gdouble log_position;
36 
38 
39 DarwinOSLogSourcePersist *darwinosl_source_persist_new(void);
40 void darwinosl_source_persist_free(DarwinOSLogSourcePersist *self);
41 gboolean darwinosl_source_persist_init(DarwinOSLogSourcePersist *self,
42  PersistState *state,
43  const gchar *persist_name);
44 
45 void darwinosl_source_persist_fill_bookmark(DarwinOSLogSourcePersist *self, Bookmark *bookmark,
46  DarwinOSLogSourcePosition position);
47 void darwinosl_source_persist_load_position(DarwinOSLogSourcePersist *self,
48  DarwinOSLogSourcePosition *position);
49 
50 #endif
void darwinosl_source_persist_free(DarwinOSLogSourcePersist *self)
Definition: darwinosl-source-persist.c:57
void darwinosl_source_persist_fill_bookmark(DarwinOSLogSourcePersist *self, Bookmark *bookmark, DarwinOSLogSourcePosition position)
Definition: darwinosl-source-persist.c:182
void darwinosl_source_persist_load_position(DarwinOSLogSourcePersist *self, DarwinOSLogSourcePosition *position)
Definition: darwinosl-source-persist.c:195
DarwinOSLogSourcePersist * darwinosl_source_persist_new(void)
Definition: darwinosl-source-persist.c:50
gboolean darwinosl_source_persist_init(DarwinOSLogSourcePersist *self, PersistState *state, const gchar *persist_name)
Definition: darwinosl-source-persist.c:160
Definition: darwinosl-source-persist.h:32
guint last_used_filter_predicate_hash
Definition: darwinosl-source-persist.h:35
gdouble log_position
Definition: darwinosl-source-persist.h:33
guint last_msg_hash
Definition: darwinosl-source-persist.h:34
Definition: darwinosl-source-persist.c:44
struct @95 state