]> err.no Git - systemd/commitdiff
sd-journal: implement a number of non-implemented calls from the API for now
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Jan 2012 02:23:04 +0000 (03:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Jan 2012 02:23:04 +0000 (03:23 +0100)
src/journal/sd-journal.c
src/systemd/sd-journal.h

index fe9208c01b4477f3548cd0ab693007f056f48b33..5e1fd4773e835d1534e54765bbeedab06df41940 100644 (file)
@@ -1590,27 +1590,27 @@ _public_ int sd_journal_process(sd_journal *j) {
         }
 }
 
-_public_ int sd_journal_query_unique(sd_journal *j, const char *field) {
-        if (!j)
-                return -EINVAL;
-        if (!field)
-                return -EINVAL;
-
-        return -ENOTSUP;
-}
-
-_public_ int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_t *l) {
-        if (!j)
-                return -EINVAL;
-        if (!data)
-                return -EINVAL;
-        if (!l)
-                return -EINVAL;
-
-        return -ENOTSUP;
-}
-
-_public_ void sd_journal_restart_unique(sd_journal *j) {
-        if (!j)
-                return;
-}
+/* _public_ int sd_journal_query_unique(sd_journal *j, const char *field) { */
+/*         if (!j) */
+/*                 return -EINVAL; */
+/*         if (!field) */
+/*                 return -EINVAL; */
+
+/*         return -ENOTSUP; */
+/* } */
+
+/* _public_ int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_t *l) { */
+/*         if (!j) */
+/*                 return -EINVAL; */
+/*         if (!data) */
+/*                 return -EINVAL; */
+/*         if (!l) */
+/*                 return -EINVAL; */
+
+/*         return -ENOTSUP; */
+/* } */
+
+/* _public_ void sd_journal_restart_unique(sd_journal *j) { */
+/*         if (!j) */
+/*                 return; */
+/* } */
index ebc63b7640302c41c3a803add67f7bf52c68b820..c635df3f2a289526c12272104c4b599b5bc4bcd8 100644 (file)
@@ -46,7 +46,6 @@
  *   - cryptographic hash
  *   - think about manipulations of header
  *   - implement audit gateway
- *   - implement kernel gatway
  */
 
 /* Write to daemon */
@@ -95,9 +94,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,