summaryrefslogtreecommitdiffstats
path: root/src/journald/instutil.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-08-23 14:44:02 +0200
committerTomas Bzatek <tbzatek@redhat.com>2013-10-15 15:23:49 +0200
commit144dcfc5a924ecba7f615064156f6a40247c39b2 (patch)
treee877b70f634e42603b5755213f6b2bac99bdd4fa /src/journald/instutil.h
parent7584e2fb80a74b7e4db3b653937a2c6ee64a7400 (diff)
downloadopenlmi-providers-144dcfc5a924ecba7f615064156f6a40247c39b2.tar.gz
openlmi-providers-144dcfc5a924ecba7f615064156f6a40247c39b2.tar.xz
openlmi-providers-144dcfc5a924ecba7f615064156f6a40247c39b2.zip
journald: Basic provider implementation
This is a fully functional basic implementation of the provider. Maximum number of enumerated instances is limited, see the code. TODO list: https://fedorahosted.org/openlmi/ticket/142
Diffstat (limited to 'src/journald/instutil.h')
-rw-r--r--src/journald/instutil.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/journald/instutil.h b/src/journald/instutil.h
new file mode 100644
index 0000000..ef02aa1
--- /dev/null
+++ b/src/journald/instutil.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2013 Red Hat, Inc. All rights reserved.
+ *
+ * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Authors: Tomas Bzatek <tbzatek@redhat.com>
+ */
+
+#ifndef INSTUTIL_H_
+#define INSTUTIL_H_
+
+#include <systemd/sd-journal.h>
+
+#include "LMI_JournalLogRecord.h"
+
+int create_LMI_JournalLogRecordRef(sd_journal *j, LMI_JournalLogRecordRef *ref, const CMPIBroker *_cb);
+int create_LMI_JournalLogRecord(sd_journal *j, LMI_JournalLogRecord *rec, const CMPIBroker *_cb);
+
+#endif /* INSTUTIL_H_ */