weston-log-file: Introduce file type of stream
With the logging infrastructure in place this patch add a new user: file type of stream backed-up by a std file descriptor. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -104,6 +106,12 @@ weston_log_subscribe(struct weston_log_context *log_ctx,
|
||||
struct weston_log_subscriber *subscriber,
|
||||
const char *scope_name);
|
||||
|
||||
struct weston_log_subscriber *
|
||||
weston_log_subscriber_create_log(FILE *dump_to);
|
||||
|
||||
void
|
||||
weston_log_subscriber_destroy_log(struct weston_log_subscriber *sub);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user