chiark / gitweb /
api: add C++ guards to all headers
[elogind.git] / src / systemd / sd-journal.h
index ebc63b7640302c41c3a803add67f7bf52c68b820..8737a4cac7e36b24ee64f00c35ba6dd2098bdd44 100644 (file)
 
 #include <systemd/sd-id128.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* TODO:
  *
  *   - OR of matches is borked...
@@ -46,7 +50,6 @@
  *   - cryptographic hash
  *   - think about manipulations of header
  *   - implement audit gateway
- *   - implement kernel gatway
  */
 
 /* Write to daemon */
@@ -95,9 +98,9 @@ int sd_journal_seek_cursor(sd_journal *j, const char *cursor);
 
 int sd_journal_get_cursor(sd_journal *j, char **cursor);
 
-int sd_journal_query_unique(sd_journal *j, const char *field);      /* missing */
-int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_t *l); /* missing */
-void sd_journal_restart_unique(sd_journal *j);                      /* missing */
+/* int sd_journal_query_unique(sd_journal *j, const char *field);      /\* missing *\/ */
+/* int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_t *l); /\* missing *\/ */
+/* void sd_journal_restart_unique(sd_journal *j);                      /\* missing *\/ */
 
 enum {
         SD_JOURNAL_NOP,
@@ -123,4 +126,8 @@ int sd_journal_process(sd_journal *j);
 #define SD_JOURNAL_FOREACH_UNIQUE(j, data, l)                           \
         for (sd_journal_restart_unique(j); sd_journal_enumerate_data((j), &(data), &(l)) > 0; )
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif