mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-27 01:41:45 +02:00
Ensure we're more specific about clang format options and include order
This commit is contained in:
@ -36,8 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
#include "gamemode-config.h"
|
||||
|
||||
#include "build-config.h"
|
||||
|
||||
@ -602,10 +602,12 @@ int game_mode_context_query_status(GameModeContext *self, pid_t client, pid_t re
|
||||
*/
|
||||
static GameModeClient *game_mode_client_new(pid_t pid, char *executable)
|
||||
{
|
||||
/* clang-format off */
|
||||
GameModeClient c = {
|
||||
.next = NULL,
|
||||
.pid = pid,
|
||||
};
|
||||
/* clang-format on */
|
||||
GameModeClient *ret = NULL;
|
||||
|
||||
ret = calloc(1, sizeof(struct GameModeClient));
|
||||
@ -794,4 +796,4 @@ int game_mode_reload_config(GameModeContext *self)
|
||||
start_reaper_thread(self);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -31,8 +31,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "common-logging.h"
|
||||
#include "gamemode.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include <systemd/sd-bus.h>
|
||||
#include <systemd/sd-daemon.h>
|
||||
@ -216,6 +216,7 @@ static int method_refresh_config(sd_bus_message *m, void *userdata,
|
||||
/**
|
||||
* D-BUS vtable to dispatch virtual methods
|
||||
*/
|
||||
/* clang-format off */
|
||||
static const sd_bus_vtable gamemode_vtable[] = {
|
||||
SD_BUS_VTABLE_START(0),
|
||||
SD_BUS_PROPERTY("ClientCount", "i", property_get_client_count, 0,
|
||||
@ -232,6 +233,7 @@ static const sd_bus_vtable gamemode_vtable[] = {
|
||||
SD_BUS_METHOD("RefreshConfig", "", "i", method_refresh_config, SD_BUS_VTABLE_UNPRIVILEGED),
|
||||
SD_BUS_VTABLE_END
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
/**
|
||||
* Main process loop for the daemon. Run until quitting has been requested.
|
||||
|
@ -37,8 +37,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
#include "gamemode-config.h"
|
||||
|
||||
#include "build-config.h"
|
||||
|
||||
|
@ -31,10 +31,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "gamemode.h"
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <sys/syscall.h>
|
||||
|
@ -31,9 +31,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "gamemode.h"
|
||||
#include "common-logging.h"
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <sched.h>
|
||||
|
@ -37,8 +37,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode_client.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
@ -31,9 +31,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "gamemode.h"
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -49,9 +49,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "gamemode.h"
|
||||
#include "common-logging.h"
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
#include "gamemode_client.h"
|
||||
|
||||
|
Reference in New Issue
Block a user