suwako / UnixMenu アーカイブ

このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。

master
ブランチ master
UnixMenu / src / utils.h
605 B、28行 生 Blame 履歴
1#ifndef UTILS_H
2#define UTILS_H
3
4#include "program.h"
5
6#include <X11/Xlib.h>
7#include <X11/Xft/Xft.h>
8
9typedef struct {
10 char name[MAX_NAME_LEN];
11} Dup;
12
13extern Dup dupn[MAX_NAME_LEN * 2];
14extern int dupcnt;
15
16#if defined(__linux__)
17char *strcasestr(const char *haystack, const char *needle);
18#endif
19
20int isdup(const char *name);
21int isdis(const char *filepath);
22void add_to_dup(const char *name);
23int launch_path(const char *exec);
24void cleanup(Display *display, Window window, GC gc,
25 XftColor *color, XftColor *selcolor, XftDraw *draw, XftFont *font,
26 Colormap colormap, Visual *visual);
27
28#endif