-
Notifications
You must be signed in to change notification settings - Fork 6
/
yukon.h
64 lines (46 loc) · 1.22 KB
/
yukon.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __YUKON_H__
#define __YUKON_H__
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE_SOURCE
#include <stdarg.h>
#include <fcntl.h>
#include <unistd.h>
#include <dlfcn.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/limits.h>
#include <pthread.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glx.h>
#include <stream.h>
void logMessage(unsigned long level, const char *fmt, ...);
void updateConfiguration(void);
typedef struct {
unsigned long logLevel;
KeySym hotkey;
unsigned int scale;
double fps;
char output[PATH_MAX];
} yukonGlobalData;
extern yukonGlobalData yukonGlobal;
struct yukonEngine {
struct yukonStream *stream;
unsigned long size[2];
pthread_mutex_t audioMutex;
unsigned long audioRunning;
pthread_t audioThread;
};
struct yukonEngine *yukonEngineCreate(const char *spec, unsigned long scale, unsigned long size[2]);
void yukonEngineCapture(struct yukonEngine *engine);
struct yukonEngine *yukonEngineDestroy(struct yukonEngine *engine);
void *audioThreadCallback(void *data);
#endif /* __YUKON_H__ */