Go to the source code of this file.
Macros | |
| #define | DLOGUTIL_MAX_DUMP_SIZE UINT_MAX |
| Enables full dump mode. 6.0. | |
Typedefs | |
| typedef struct dlogutil_entry | dlogutil_entry_s |
| A struct containing a single log entry. 6.0. | |
| typedef struct dlogutil_filter_options | dlogutil_filter_options_s |
| A struct containing filter options. 6.0. | |
| typedef struct dlogutil_sorting_options | dlogutil_sorting_options_s |
| A struct containing sorting options. 6.0. | |
| typedef int | dlogutil_entry_cb (const dlogutil_entry_s *entry, void *data) |
| A callback for log retrieval. 6.0. | |
Enumerations | |
| enum | dlogutil_sorting_order_e { DLOGUTIL_SORT_SENT_MONO = 0, DLOGUTIL_SORT_SENT_REAL, DLOGUTIL_SORT_RECV_MONO, DLOGUTIL_SORT_RECV_REAL, DLOGUTIL_SORT_DEFAULT } |
| Enumeration for sorting orders. 6.0. More... | |
| enum | dlogutil_buffer_e { DLOGUTIL_BUF_MAIN = 1 << LOG_ID_MAIN, DLOGUTIL_BUF_RADIO = 1 << LOG_ID_RADIO, DLOGUTIL_BUF_SYSTEM = 1 << LOG_ID_SYSTEM, DLOGUTIL_BUF_APPS = 1 << LOG_ID_APPS, DLOGUTIL_BUF_KMSG = 1 << LOG_ID_KMSG, DLOGUTIL_BUF_SYSLOG = 1 << LOG_ID_SYSLOG } |
| Enumeration for possible chosen buffers. 6.0. More... | |
Functions | |
| int | dlogutil_entry_get_tid (const dlogutil_entry_s *entry, pid_t *tid) |
| Retrieves the TID of the log sender. 6.0. | |
| int | dlogutil_entry_get_pid (const dlogutil_entry_s *entry, pid_t *pid) |
| Retrieves the PID of the log sender. 6.0. | |
| int | dlogutil_entry_get_tag (const dlogutil_entry_s *entry, const char **tag) |
| Retrieves the tag of the log entry. 6.0. | |
| int | dlogutil_entry_get_message (const dlogutil_entry_s *entry, const char **msg) |
| Retrieves the message of the log entry. 6.0. | |
| int | dlogutil_entry_get_timestamp (const dlogutil_entry_s *entry, dlogutil_sorting_order_e order, struct timespec *ts) |
| Retrieves the timestamp of the log entry. 6.0. | |
| int | dlogutil_entry_get_priority (const dlogutil_entry_s *entry, log_priority *prio) |
| Retrieves the priority of the log entry. 6.0. | |
| dlogutil_filter_options_s * | dlogutil_filter_options_create (void) |
| Creates a new dlogutil_filter_options_s struct. 6.0. | |
| void | dlogutil_filter_options_destroy (dlogutil_filter_options_s *filter) |
| Destroys the dlogutil_filter_options_s struct. 6.0. | |
| int | dlogutil_filter_options_set_tid (dlogutil_filter_options_s *filter, pid_t tid) |
| Enables retrieving only those logs that are logged by the thread with the given TID. 6.0. | |
| int | dlogutil_filter_options_set_pid (dlogutil_filter_options_s *filter, pid_t pid) |
| Enables retrieving only those logs that are logged by the process with the given PID. 6.0. | |
| int | dlogutil_filter_options_set_filterspec (dlogutil_filter_options_s *filter, const char *query) |
| Enables retrieving only those logs that match a given filter. 6.0. | |
| dlogutil_sorting_options_s * | dlogutil_sorting_options_create (void) |
| Creates a new dlogutil_sorting_options_s struct. 6.0. | |
| void | dlogutil_sorting_options_destroy (dlogutil_sorting_options_s *sorting) |
| Destroys the dlogutil_sorting_options_s struct. 6.0. | |
| int | dlogutil_sorting_options_disable_sorting (dlogutil_sorting_options_s *sorting) |
| Disables log sorting. 6.0. | |
| int | dlogutil_sorting_options_enable_sorting (dlogutil_sorting_options_s *sorting) |
| Enables sorting. 6.0. | |
| int | dlogutil_sorting_options_enable_sorting_with_size (dlogutil_sorting_options_s *sorting, unsigned int entry_count) |
| Enables sorting, choosing the sort buffer size manually. 6.0. | |
| int | dlogutil_sorting_options_set_sort_by (dlogutil_sorting_options_s *sorting, dlogutil_sorting_order_e sort_by) |
| Chooses a timestamp type to sort by. 6.0. | |
| int | dlogutil_get_logs_continuous (int buffers, dlogutil_entry_cb callback, void *data, dlogutil_sorting_options_s *sorting, dlogutil_filter_options_s *filter) |
| Retrieves logs continuously starting from the beginning, until the callback returns a non-zero value. 6.0. | |
| int | dlogutil_get_logs_monitor (int buffers, dlogutil_entry_cb callback, void *data, dlogutil_sorting_options_s *sorting, dlogutil_filter_options_s *filter) |
| Retrieves logs continuously starting from the function call, until the callback returns a non-zero value. 6.0. | |
| int | dlogutil_get_logs_dump (int buffers, unsigned int entry_count, dlogutil_entry_cb callback, void *data, dlogutil_sorting_options_s *sorting, dlogutil_filter_options_s *filter) |
| Dumps logs (possibly a specified amount of the most recent of them) and returns. 6.0. | |
| int | dlogutil_buffer_clear (dlogutil_buffer_e buffer) |
| Clears a log buffer. 6.0. | |
| int | dlogutil_buffer_get_name (dlogutil_buffer_e buffer, const char **name) |
| Gets the name of a buffer. 6.0. | |
| int | dlogutil_buffer_get_size (dlogutil_buffer_e buffer, unsigned int *size) |
| Gets the size of a buffer. 6.0. | |
| int | dlogutil_buffer_get_default_ts_type (dlogutil_buffer_e buffer, dlogutil_sorting_order_e *type) |
| Gets the default timestamp type of a buffer. 6.0. | |
| int | dlogutil_buffer_check_ts_type_available (dlogutil_buffer_e buffer, dlogutil_sorting_order_e type, bool *available) |
| Checks if a buffer contains timestamps of a given type. 6.0. | |
1.8.2