This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
libsystemd-journal.vapi
94 lines (76 loc) · 3.52 KB
/
libsystemd-journal.vapi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[CCode (lower_case_cprefix = "sd_")]
namespace Systemd {
[Compact, CCode (cheader_filename = "systemd/sd-journal.h", free_function = "sd_journal_close")]
public class Journal {
[CCode (cname = "int", cprefix = "LOG_", lower_case_cprefix = "sd_journal_", cheader_filename = "systemd/sd-journal.h,syslog.h", has_type_id = false)]
public enum Priority {
EMERG,
ALERT,
CRIT,
ERR,
WARNING,
NOTICE,
INFO,
DEBUG;
[PrintfFormat]
public int print (string format, ...);
public int printv (string format, va_list ap);
[CCode (instance_pos = 1.5)]
public int stream_fd (string identifier, bool level_prefix);
[CCode (cname = "_vala_sd_journal_stream")]
public GLib.FileStream? stream (string identifier, bool level_prefix) {
int fd = this.stream_fd (identifier, level_prefix);
return (fd < 0) ? null : GLib.FileStream.fdopen (fd, "w");
}
}
public static int send (string format, ...);
public static int sendv (Posix.iovector[] iov);
public static int perror (string message);
[Flags, CCode (cname = "int", cprefix = "SD_JOURNAL_", has_type_id = false)]
public enum OpenFlags {
LOCAL_ONLY,
RUNTIME_ONLY,
SYSTEM,
CURRENT_USER
}
public static int open (out Systemd.Journal ret, Systemd.Journal.OpenFlags flags);
public static int open_directory (out Systemd.Journal ret, string path, Systemd.Journal.OpenFlags flags);
public static int open_files (out Systemd.Journal ret, [CCode (array_length = false, array_null_terminated = true)] string[] paths, Systemd.Journal.OpenFlags flags);
public int previous ();
public int next ();
public int previous_skip (uint64 skip);
public int next_skip (uint64 skip);
public int get_realtime_usec (out uint64 ret);
public int get_monotonic_usec (out uint64 ret, out Systemd.Id128 ret_boot_id);
public int set_data_threshold (size_t sz);
public int get_data_threshold (out size_t sz);
public int get_data (string field, [CCode (type = "const void**", array_length_type = "size_t")] out unowned uint8[] data);
public int enumerate_data ([CCode (type = "const void**", array_length_type = "size_t")] out unowned uint8[] data);
public void restart_data ();
public int add_match ([CCode (array_length_type = "size_t")] uint8[] data);
public int add_disjunction ();
public int add_conjunction ();
public void flush_matches ();
public int seek_head ();
public int seek_tail ();
public int seek_monotonic_usec (Systemd.Id128 boot_id, uint64 usec);
public int seek_realtime_usec (uint64 usec);
public int seek_cursor (string cursor);
public int get_cursor (out unowned string cursor);
public int test_cursor (string cursor);
public int get_cutoff_realtime_usec (out uint64 from, out uint64 to);
public int get_cutoff_monotonic_usec (Systemd.Id128 boot_id, out uint64 from, out uint64 to);
public int get_usage (out uint64 bytes);
public int query_unique (string field);
public int enumerate_unique ([CCode (type = "const void**", array_length_type = "size_t")] out unowned uint8[] data);
public void restart_unique ();
public int get_fd ();
public int get_events ();
public int get_timeout (out uint64 timeout_usec);
public int process ();
public int wait (uint64 timeout_usec);
public int reliable_fd ();
public int get_catalog (out unowned string text);
public int get_catalog_for_message_id (Systemd.Id128 id, out unowned string ret);
}
}