syslog-ng source
journald-mock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2010-2014 Balabit
3
* Copyright (c) 2010-2014 Viktor Juhasz <viktor.juhasz@balabit.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 JOURNALD_MOCK_H_
25
#define JOURNALD_MOCK_H_
26
27
#include "
journald-subsystem.h
"
28
29
typedef
struct
_MockEntry
MockEntry;
30
31
MockEntry *
mock_entry_new
(
const
char
*
cursor
);
32
void
mock_entry_add_data
(MockEntry *
self
,
char
*
data
);
33
void
mock_journal_add_entry
(MockEntry *entry);
34
35
#endif
/* JOURNALD_MOCK_H_ */
mock_entry_add_data
void mock_entry_add_data(MockEntry *self, char *data)
mock_entry_new
MockEntry * mock_entry_new(const char *cursor)
mock_journal_add_entry
void mock_journal_add_entry(MockEntry *entry)
Definition:
journald-mock.c:87
journald-subsystem.h
_MockEntry
Definition:
journald-mock.c:48
_MockEntry::cursor
gchar * cursor
Definition:
journald-mock.c:51
_MockEntry::data
GPtrArray * data
Definition:
journald-mock.c:49
modules
systemd-journal
tests
journald-mock.h
Generated by
1.9.1