mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-02 07:25:58 +01:00
55f873dac4
* Initial session support WIP Remove libdrm dependency Remove display from context, add dbus properties Use random names for shm and pw_stream, init the stream only for new cast instances Separate cast initialized flag from refcount, cleanup names and comments * Refactor and stability improvements Properly report xdp screencast implementation version
17 lines
336 B
C
17 lines
336 B
C
#ifndef LOGGER_H
|
|
#define LOGGER_H
|
|
|
|
#include <stdio.h>
|
|
|
|
enum LOGLEVEL { QUIET, ERROR, WARN, INFO, DEBUG, TRACE };
|
|
|
|
struct logger_properties {
|
|
enum LOGLEVEL level;
|
|
FILE *dst;
|
|
};
|
|
|
|
void init_logger(FILE *dst, enum LOGLEVEL level);
|
|
enum LOGLEVEL get_loglevel(const char *level);
|
|
void logprint(enum LOGLEVEL level, char *msg, ...);
|
|
|
|
#endif
|