Cleanup headers

This commit is contained in:
topjohnwu
2019-11-19 02:04:47 -05:00
parent 7681fde4d0
commit 9aff1a57d3
11 changed files with 45 additions and 89 deletions

View File

@ -1,15 +1,10 @@
/* logging.h - Error handling and logging
*/
#pragma once
#include <errno.h>
#include <stdarg.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
__BEGIN_DECLS
typedef enum {
L_DEBUG,
@ -43,6 +38,4 @@ void cmdline_logging();
int log_handler(log_type t, const char *fmt, ...);
#ifdef __cplusplus
}
#endif
__END_DECLS

View File

@ -18,8 +18,6 @@
#define SEPOL_PROC_DOMAIN "magisk"
#define SEPOL_FILE_DOMAIN "magisk_file"
__BEGIN_DECLS
extern void (*freecon)(char *con);
extern int (*setcon)(const char *con);
extern int (*getfilecon)(const char *path, char **con);
@ -35,5 +33,3 @@ void selinux_builtin_impl();
void dload_selinux();
void restorecon();
void restore_rootcon();
__END_DECLS