libobs: Exclude certain declarations from SWIG processing

Prevents SWIG from being able to process certain declarations that would
cause binding generation errors/warnings.
This commit is contained in:
jp9000
2017-12-25 14:06:36 -08:00
parent 2de3973fae
commit 66f993d214
4 changed files with 38 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ enum obs_frontend_event {
/* ------------------------------------------------------------------------- */
#ifndef SWIG
struct obs_frontend_source_list {
DARRAY(obs_source_t*) sources;
};
@@ -60,6 +62,8 @@ static inline void obs_frontend_source_list_free(
da_free(source_list->sources);
}
#endif //!SWIG
/* ------------------------------------------------------------------------- */
/* NOTE: Functions that return char** string lists are a single allocation of
@@ -73,6 +77,8 @@ static inline void obs_frontend_source_list_free(
* translated, and obs_frontend_pop_ui_translation when translation is
* complete. */
#ifndef SWIG
EXPORT void *obs_frontend_get_main_window(void);
EXPORT void *obs_frontend_get_main_window_handle(void);
@@ -128,6 +134,8 @@ EXPORT void obs_frontend_push_ui_translation(
obs_frontend_translate_ui_cb translate);
EXPORT void obs_frontend_pop_ui_translation(void);
#endif //!SWIG
EXPORT void obs_frontend_streaming_start(void);
EXPORT void obs_frontend_streaming_stop(void);
EXPORT bool obs_frontend_streaming_active(void);