Separate multi-words filenames by '_'

Rename foobar.ext to foo_bar.ext.

<https://github.com/Genymobile/scrcpy/pull/226#discussion_r209454865>
This commit is contained in:
Romain Vimont 2018-08-15 17:01:54 +02:00
parent f3f704d1ed
commit 536b31829a
26 changed files with 34 additions and 34 deletions

View file

@ -1,22 +1,22 @@
src = [ src = [
'src/main.c', 'src/main.c',
'src/command.c', 'src/command.c',
'src/controlevent.c', 'src/control_event.c',
'src/controller.c', 'src/controller.c',
'src/convert.c', 'src/convert.c',
'src/decoder.c', 'src/decoder.c',
'src/device.c', 'src/device.c',
'src/file_handler.c', 'src/file_handler.c',
'src/fpscounter.c', 'src/fps_counter.c',
'src/frames.c', 'src/frames.c',
'src/inputmanager.c', 'src/input_manager.c',
'src/lockutil.c', 'src/lock_util.c',
'src/net.c', 'src/net.c',
'src/scrcpy.c', 'src/scrcpy.c',
'src/screen.c', 'src/screen.c',
'src/server.c', 'src/server.c',
'src/strutil.c', 'src/str_util.c',
'src/tinyxpm.c', 'src/tiny_xpm.c',
] ]
if not get_option('crossbuild_windows') if not get_option('crossbuild_windows')
@ -147,9 +147,9 @@ executable('scrcpy', src, dependencies: dependencies, include_directories: src_d
### TESTS ### TESTS
tests = [ tests = [
['test_control_event_queue', ['tests/test_control_event_queue.c', 'src/controlevent.c']], ['test_control_event_queue', ['tests/test_control_event_queue.c', 'src/control_event.c']],
['test_control_event_serialize', ['tests/test_control_event_serialize.c', 'src/controlevent.c']], ['test_control_event_serialize', ['tests/test_control_event_serialize.c', 'src/control_event.c']],
['test_strutil', ['tests/test_strutil.c', 'src/strutil.c']], ['test_strutil', ['tests/test_strutil.c', 'src/str_util.c']],
] ]
foreach t : tests foreach t : tests

View file

@ -1,9 +1,9 @@
#include "controlevent.h" #include "control_event.h"
#include <SDL2/SDL_stdinc.h> #include <SDL2/SDL_stdinc.h>
#include <string.h> #include <string.h>
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
static inline void write16(Uint8 *buf, Uint16 value) { static inline void write16(Uint8 *buf, Uint16 value) {

View file

@ -2,7 +2,7 @@
#include <SDL2/SDL_assert.h> #include <SDL2/SDL_assert.h>
#include "config.h" #include "config.h"
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
SDL_bool controller_init(struct controller *controller, socket_t video_socket) { SDL_bool controller_init(struct controller *controller, socket_t video_socket) {

View file

@ -1,7 +1,7 @@
#ifndef CONTROL_H #ifndef CONTROL_H
#define CONTROL_H #define CONTROL_H
#include "controlevent.h" #include "control_event.h"
#include <SDL2/SDL_mutex.h> #include <SDL2/SDL_mutex.h>
#include <SDL2/SDL_stdinc.h> #include <SDL2/SDL_stdinc.h>

View file

@ -3,7 +3,7 @@
#include <SDL2/SDL_stdinc.h> #include <SDL2/SDL_stdinc.h>
#include <SDL2/SDL_events.h> #include <SDL2/SDL_events.h>
#include "controlevent.h" #include "control_event.h"
struct complete_mouse_motion_event { struct complete_mouse_motion_event {
SDL_MouseMotionEvent *mouse_motion_event; SDL_MouseMotionEvent *mouse_motion_event;

View file

@ -9,7 +9,7 @@
#include "config.h" #include "config.h"
#include "events.h" #include "events.h"
#include "frames.h" #include "frames.h"
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
#define BUFSIZE 0x10000 #define BUFSIZE 0x10000

View file

@ -5,7 +5,7 @@
#include "config.h" #include "config.h"
#include "command.h" #include "command.h"
#include "device.h" #include "device.h"
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
struct request { struct request {

View file

@ -1,4 +1,4 @@
#include "fpscounter.h" #include "fps_counter.h"
#include <SDL2/SDL_timer.h> #include <SDL2/SDL_timer.h>

View file

@ -6,7 +6,7 @@
#include <libavformat/avformat.h> #include <libavformat/avformat.h>
#include "config.h" #include "config.h"
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
SDL_bool frames_init(struct frames *frames) { SDL_bool frames_init(struct frames *frames) {

View file

@ -5,7 +5,7 @@
#include <SDL2/SDL_stdinc.h> #include <SDL2/SDL_stdinc.h>
#include "config.h" #include "config.h"
#include "fpscounter.h" #include "fps_counter.h"
// forward declarations // forward declarations
typedef struct AVFrame AVFrame; typedef struct AVFrame AVFrame;

View file

@ -1,7 +1,7 @@
#include "inputmanager.h" #include "input_manager.h"
#include "convert.h" #include "convert.h"
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
// Convert window coordinates (as provided by SDL_GetMouseState() to renderer coordinates (as provided in SDL mouse events) // Convert window coordinates (as provided by SDL_GetMouseState() to renderer coordinates (as provided in SDL mouse events)

View file

@ -3,7 +3,7 @@
#include "common.h" #include "common.h"
#include "controller.h" #include "controller.h"
#include "fpscounter.h" #include "fps_counter.h"
#include "frames.h" #include "frames.h"
#include "screen.h" #include "screen.h"

View file

@ -15,14 +15,14 @@
#include "events.h" #include "events.h"
#include "file_handler.h" #include "file_handler.h"
#include "frames.h" #include "frames.h"
#include "fpscounter.h" #include "fps_counter.h"
#include "inputmanager.h" #include "input_manager.h"
#include "log.h" #include "log.h"
#include "lockutil.h" #include "lock_util.h"
#include "net.h" #include "net.h"
#include "screen.h" #include "screen.h"
#include "server.h" #include "server.h"
#include "tinyxpm.h" #include "tiny_xpm.h"
static struct server server = SERVER_INITIALIZER; static struct server server = SERVER_INITIALIZER;
static struct screen screen = SCREEN_INITIALIZER; static struct screen screen = SCREEN_INITIALIZER;

View file

@ -4,9 +4,9 @@
#include <string.h> #include <string.h>
#include "icon.xpm" #include "icon.xpm"
#include "lockutil.h" #include "lock_util.h"
#include "log.h" #include "log.h"
#include "tinyxpm.h" #include "tiny_xpm.h"
#define DISPLAY_MARGINS 96 #define DISPLAY_MARGINS 96

View file

@ -1,4 +1,4 @@
#include "strutil.h" #include "str_util.h"
size_t xstrncpy(char *dest, const char *src, size_t n) { size_t xstrncpy(char *dest, const char *src, size_t n) {
size_t i; size_t i;

View file

@ -2,7 +2,7 @@
#include "config.h" #include "config.h"
#include "log.h" #include "log.h"
#include "strutil.h" #include "str_util.h"
HANDLE cmd_execute(const char *path, const char *const argv[]) { HANDLE cmd_execute(const char *path, const char *const argv[]) {
STARTUPINFO si; STARTUPINFO si;

View file

@ -1,4 +1,4 @@
#include "tinyxpm.h" #include "tiny_xpm.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,7 +1,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "controlevent.h" #include "control_event.h"
static void test_control_event_queue_empty() { static void test_control_event_queue_empty() {
struct control_event_queue queue; struct control_event_queue queue;

View file

@ -1,7 +1,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "controlevent.h" #include "control_event.h"
static void test_serialize_keycode_event() { static void test_serialize_keycode_event() {
struct control_event event = { struct control_event event = {

View file

@ -1,7 +1,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "strutil.h" #include "str_util.h"
static void test_xstrncpy_simple() { static void test_xstrncpy_simple() {
char s[] = "xxxxxxxxxx"; char s[] = "xxxxxxxxxx";