summaryrefslogtreecommitdiff
path: root/src/osdsh/osdsh.h
blob: e339791b0d31bfa45c6b6199075d10bf87e50522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <getopt.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <pthread.h>
#include <dlfcn.h>

#include <linux/limits.h>
#include <linux/stat.h>
#include <linux/soundcard.h>

#include <xosd.h>

/*============================== settings_t ==================================*/

typedef struct settings_t {
    xosd *myosd;
    char font[BUFSIZ + 1];
    char color[BUFSIZ + 1];
    char ocolor[BUFSIZ + 1];
    int soffset;
    int ooffset;
    int xoffset;
    int yoffset;
    xosd_align align;
    xosd_pos position;
    int displaying;
    int delay;
    pthread_t mythread;
} settings_t;

typedef struct plugininfo_t {
    int whoami;
    int active;
    void *module;
    char *file;
    char *myname;
    int (*isitmine)();
} plugininfo_t;

/* HACK */
char mixerdevice[PATH_MAX + 1];