wofi/inc/wofi.h

46 lines
1.1 KiB
C
Raw Normal View History

2019-08-17 21:19:32 -04:00
/*
2020-01-06 19:42:52 -05:00
* Copyright (C) 2019-2020 Scoopta
2019-08-17 21:19:32 -04:00
* 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
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Wofi is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Wofi. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WAIFU_H
2019-08-28 02:17:18 -04:00
#define WAIFU_H
2019-08-17 21:19:32 -04:00
2020-05-21 02:16:12 -04:00
#include <wofi_api.h>
#include <stdbool.h>
2020-01-20 19:22:14 -05:00
#include <map.h>
2020-06-23 01:45:51 -04:00
#include <gtk/gtk.h>
struct widget {
size_t action_count;
char* mode, **text, *search_text, **actions;
struct widget_builder* builder;
};
struct mode {
void (*mode_exec)(const gchar* cmd);
struct widget* (*mode_get_widget)(void);
char* name, *dso;
struct wl_list link;
};
void wofi_init(struct map* config);
void wofi_load_css(bool nyan);
2019-08-17 21:19:32 -04:00
#endif