c9df41c1e2
Typedef pointers are unsafe. If you do: typedef struct bla *bla_t; then you cannot use it as a constant, such as: const bla_t, because that constant will be to the pointer itself rather than to the underlying data. I admit this was a fundamental mistake that must be corrected. All typedefs that were pointer types will now have their pointers removed from the type itself, and the pointers will be used when they are actually used as variables/parameters/returns instead. This does not break ABI though, which is pretty nice.
28 lines
470 B
C++
28 lines
470 B
C++
#pragma once
|
|
|
|
struct XCompcapMain_private;
|
|
|
|
class XCompcapMain
|
|
{
|
|
public:
|
|
static bool init();
|
|
static void deinit();
|
|
|
|
static obs_properties_t *properties();
|
|
static void defaults(obs_data_t *settings);
|
|
|
|
XCompcapMain(obs_data_t *settings, obs_source_t *source);
|
|
~XCompcapMain();
|
|
|
|
void updateSettings(obs_data_t *settings);
|
|
|
|
void tick(float seconds);
|
|
void render(gs_effect_t *effect);
|
|
|
|
uint32_t width();
|
|
uint32_t height();
|
|
|
|
private:
|
|
XCompcapMain_private *p;
|
|
};
|