Moved the wofi api to wofi_api.h

This commit is contained in:
Scoopta
2020-01-20 16:22:14 -08:00
parent c47f7acdcd
commit 5b41ab2ca6
5 changed files with 68 additions and 38 deletions

View File

@@ -17,6 +17,12 @@
#include <map.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gmodule.h>
struct map {
GTree* tree;
bool mman;

View File

@@ -415,7 +415,7 @@ static gboolean _insert_widget(gpointer data) {
return TRUE;
}
void wofi_write_cache(const gchar* mode, const gchar* cmd) {
void wofi_write_cache(const char* mode, const char* cmd) {
char* cache_path = get_cache_path(mode);
struct wl_list lines;
wl_list_init(&lines);
@@ -483,7 +483,7 @@ void wofi_write_cache(const gchar* mode, const gchar* cmd) {
free(tmp_path);
}
void wofi_remove_cache(const gchar* mode, const gchar* cmd) {
void wofi_remove_cache(const char* mode, const char* cmd) {
char* cache_path = get_cache_path(mode);
if(access(cache_path, R_OK | W_OK) == 0) {
struct wl_list lines;