-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobs.i
61 lines (52 loc) · 1.46 KB
/
obs.i
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
%module obs
// Dont blow up on DEPRECATED
#define __attribute__(x)
// Dont link deprecated functions
%ignore obs_get_default_rect_effect;
%ignore obs_duplicate_encoder_packet;
%ignore obs_free_encoder_packet;
// All register functions must be manually implemented to
// allow for target lang defined types
%ignore obs_register_;
// Cut the obs_ prefix since everything is under the 'obs' module already
%rename("%(regex:/^(?:OBS|obs)_(.*)/\\1/)s") "";
%include <stdint.i>
%include <typemaps.i>
// %include <cstring.i> NOT IMPLEMENTED. >:(
%include "lua_cstring.i"
%cstring_output_copy(const char **id);
%cstring_output_copy(const char **name);
%cstringlist_return_allocate(char**, bfree)
%{
#include <util/c99defs.h>
#include <util/darray.h>
#include <obs.h>
#include <obs-module.h>
#include <obs-source.h>
#include <obs-encoder.h>
#include <obs-output.h>
#include <obs-service.h>
#include <obs-audio-controls.h>
#include <obs-hotkey.h>
#include <obs-data.h>
#include <obs-frontend-api.h>
#include <util/base.h>
#include <graphics/graphics.h>
#include <graphics/vec4.h>
%}
%include "util/c99defs.h"
%include <util/darray.h>
%include "obs.h"
%include "obs-source.h"
%include "obs-encoder.h"
%include "obs-output.h"
%include "obs-service.h"
%include "obs-audio-controls.h"
%include "obs-hotkey.h"
%include "obs-data.h"
%include "obs-frontend-api.h"
%include <util/base.h>
%include <graphics/graphics.h>
%include <graphics/vec4.h>
%include "obs-lua-extras.i"
%include "obs-source-wrap.i"