diff options
author | Rashi Aswani <aswanirashi19@gmail.com> | 2015-08-21 21:52:01 +0530 |
---|---|---|
committer | Rashi Aswani <aswanirashi19@gmail.com> | 2015-08-27 15:16:43 +0530 |
commit | ead572cf19345531ad528e6521483c88f0093e1b (patch) | |
tree | af36b303c40407860f926fe687975a2f0a1bca34 | |
parent | 6d01776baa3bed1ce3b62a56d8745481e15c4aa8 (diff) | |
download | gnome-logs-ead572cf19345531ad528e6521483c88f0093e1b.tar.gz |
Updated gl-journal files
-rw-r--r-- | tests/gl-mock-journal.c | 10 | ||||
-rw-r--r-- | tests/gl-mock-journal.h | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/gl-mock-journal.c b/tests/gl-mock-journal.c index b0870f1..b6f3fa6 100644 --- a/tests/gl-mock-journal.c +++ b/tests/gl-mock-journal.c @@ -18,6 +18,7 @@ */ #include "gl-mock-journal.h" +#include "gl-util.h" #include <glib-unix.h> #include <gio/gio.h> @@ -65,6 +66,15 @@ gl_mock_journal_error_quark (void) return g_quark_from_static_string ("gl-mock-journal-error-quark"); } +gchar * +gl_mock_journal_get_current_boot_time (GlMockJournal *journal, + const gchar *boot_match) +{ + gchar *time; + time="01:00:00"; + return time; +} + GArray * gl_mock_journal_get_boot_ids (GlMockJournal *journal) { diff --git a/tests/gl-mock-journal.h b/tests/gl-mock-journal.h index eff29ba..b476564 100644 --- a/tests/gl-mock-journal.h +++ b/tests/gl-mock-journal.h @@ -42,6 +42,8 @@ #define gl_mock_journal_new(void) gl_journal_new(void) #define gl_mock_journal_set_matches gl_journal_set_matches #define gl_mock_journal_get_boot_ids(GlMockJournal) gl_journal_get_boot_ids(GlMockJournal) +#define gl_mock_journal_get_current_boot_time gl_journal_get_current_boot_time + G_BEGIN_DECLS /* @@ -82,6 +84,8 @@ typedef struct { gchar *boot_match; guint64 realtime; + guint64 realtime_first; + guint64 realtime_last; } GlMockJournalBootID; #define GL_TYPE_MOCK_JOURNAL (gl_mock_journal_get_type ()) @@ -93,6 +97,8 @@ void gl_mock_journal_set_matches (GlMockJournal *journal, const gchar * const *m GArray * gl_mock_journal_get_boot_ids (GlMockJournal *journal); GlMockJournalEntry * gl_mock_journal_previous (GlMockJournal *journal); GlMockJournal * gl_mock_journal_new (void); +gchar * gl_mock_journal_get_current_boot_time (GlMockJournal *journal, + const gchar *boot_match); guint64 gl_mock_journal_entry_get_timestamp (GlMockJournalEntry *entry); const gchar * gl_mock_journal_entry_get_message (GlMockJournalEntry *entry); |