Cleaned up includes, they were a bit of a mess
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Scoopta
|
||||
* Copyright (C) 2019-2020 Scoopta
|
||||
* This file is part of Wofi
|
||||
* Wofi is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -17,6 +17,13 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <map.h>
|
||||
|
||||
void config_put(struct map* map, char* line) {
|
||||
size_t line_size = strlen(line);
|
||||
char* new_line = calloc(1, line_size + 1);
|
||||
|
16
src/main.c
16
src/main.c
@@ -15,17 +15,23 @@
|
||||
along with Wofi. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <map.h>
|
||||
#include <wofi.h>
|
||||
#include <utils.h>
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <map.h>
|
||||
#include <wofi.h>
|
||||
#include <utils.h>
|
||||
#include <config.h>
|
||||
|
||||
#include <wayland-client.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
static const char* nyan_colors[] = {"#FF0000", "#FFA500", "#FFFF00", "#00FF00", "#0000FF", "#FF00FF"};
|
||||
static size_t nyan_color_l = sizeof(nyan_colors) / sizeof(char*);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Scoopta
|
||||
* Copyright (C) 2019-2020 Scoopta
|
||||
* This file is part of Wofi
|
||||
* Wofi is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include <property_box.h>
|
||||
|
||||
#include <map.h>
|
||||
|
||||
struct _WofiPropertyBox {
|
||||
GtkBox super;
|
||||
};
|
||||
|
11
src/utils.c
11
src/utils.c
@@ -17,6 +17,17 @@
|
||||
|
||||
#include <utils.h>
|
||||
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <libgen.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
time_t utils_get_time_millis(void) {
|
||||
struct timeval time;
|
||||
gettimeofday(&time, NULL);
|
||||
|
22
src/wofi.c
22
src/wofi.c
@@ -16,6 +16,28 @@
|
||||
*/
|
||||
|
||||
#include <wofi.h>
|
||||
#include <wofi_api.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <dlfcn.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <libgen.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <utils.h>
|
||||
#include <config.h>
|
||||
#include <property_box.h>
|
||||
|
||||
#include <xdg-output-unstable-v1-client-protocol.h>
|
||||
#include <wlr-layer-shell-unstable-v1-client-protocol.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <pango/pango.h>
|
||||
#include <gdk/gdkwayland.h>
|
||||
|
||||
static const char* terminals[] = {"kitty", "termite", "gnome-terminal", "weston-terminal"};
|
||||
|
||||
|
Reference in New Issue
Block a user