23 lines
399 B
C
23 lines
399 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
typedef enum {
|
|
LOG_DEBUG,
|
|
LOG_INFO,
|
|
LOG_WARN,
|
|
LOG_ERROR,
|
|
} LogLevel;
|
|
|
|
char* format(const char* fmt, ...);
|
|
|
|
void log_message(LogLevel level, const char* fmt, ...);
|
|
|
|
int execute(char** outb, char** errb, const char* file, ...);
|
|
|
|
char* read_file(int fd);
|
|
|
|
bool copy_file(const char* src, const char* dst, mode_t mode);
|