mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 18:10:23 +00:00
Small native code reorganization
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils.h>
|
||||
#include <logging.h>
|
||||
#include <daemon.hpp>
|
||||
#include <utils.hpp>
|
||||
#include <logging.hpp>
|
||||
|
||||
#include "su.h"
|
||||
#include "su.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@@ -17,9 +17,9 @@
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include <logging.h>
|
||||
#include <logging.hpp>
|
||||
|
||||
#include "pts.h"
|
||||
#include "pts.hpp"
|
||||
|
||||
/**
|
||||
* Helper functions
|
||||
|
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* pts.h
|
||||
* pts.hpp
|
||||
*
|
||||
* Manages the pseudo-terminal driver on Linux/Android and provides some
|
||||
* helper functions to handle raw input mode and terminal window resizing
|
@@ -21,12 +21,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils.h>
|
||||
#include <daemon.hpp>
|
||||
#include <utils.hpp>
|
||||
#include <flags.h>
|
||||
|
||||
#include "su.h"
|
||||
#include "pts.h"
|
||||
#include "su.hpp"
|
||||
#include "pts.hpp"
|
||||
|
||||
int quit_signals[] = { SIGALRM, SIGABRT, SIGHUP, SIGPIPE, SIGQUIT, SIGTERM, SIGINT, 0 };
|
||||
|
||||
|
@@ -4,8 +4,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <memory>
|
||||
|
||||
#include <db.h>
|
||||
#include <utils.h>
|
||||
#include <db.hpp>
|
||||
#include <utils.hpp>
|
||||
|
||||
#define DEFAULT_SHELL "/system/bin/sh"
|
||||
|
@@ -12,13 +12,13 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/mount.h>
|
||||
|
||||
#include <logging.h>
|
||||
#include <daemon.h>
|
||||
#include <utils.h>
|
||||
#include <selinux.h>
|
||||
#include <logging.hpp>
|
||||
#include <daemon.hpp>
|
||||
#include <utils.hpp>
|
||||
#include <selinux.hpp>
|
||||
|
||||
#include "su.h"
|
||||
#include "pts.h"
|
||||
#include "su.hpp"
|
||||
#include "pts.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
Reference in New Issue
Block a user