obs-studio/libobs
jp9000 59ea3becf2 (API Change) Refactor module handling
Changed API:
- char *obs_find_plugin_file(const char *sub_path);

  Changed to: char *obs_module_file(const char *file);

  Cahnge it so you no longer need to specify a sub-path such as:
  obs_find_plugin_file("module_name/file.ext")

  Instead, now automatically handle the module data path so all you need
  to do is:
  obs_module_file("file.ext")

- int obs_load_module(const char *name);

  Changed to: int obs_open_module(obs_module_t *module,
                                  const char *path,
                                  const char *data_path);
              bool obs_init_module(obs_module_t module);

  Change the module loading API so that if the front-end chooses, it can
  load modules directly from a specified path, and associate a data
  directory with it on the spot.

  The module will not be initialized immediately; obs_init_module must
  be called on the module pointer in order to fully initialize the
  module.  This is done so a module can be disabled by the front-end if
  the it so chooses.

New API:
- void obs_add_module_path(const char *bin, const char *data);

  These functions allow you to specify new module search paths to add,
  and allow you to search through them, or optionally just load all
  modules from them.  If the string %module% is included, it will
  replace it with the module's name when that string is used as a
  lookup.  Data paths are now directly added to the module's internal
  storage structure, and when obs_find_module_file is used, it will look
  up the pointer to the obs_module structure and get its data directory
  that way.

  Example:
  obs_add_module_path("/opt/obs/my-modules/%module%/bin",
                      "/opt/obs/my-modules/%module%/data");

  This would cause it to additionally look for the binary of a
  hypthetical module named "foo" at /opt/obs/my-modules/foo/bin/foo.so
  (or libfoo.so), and then look for the data in
  /opt/obs/my-modules/foo/data.

  This gives the front-end more flexibility for handling third-party
  plugin modules, or handling all plugin modules in a custom way.

- void obs_find_modules(obs_find_module_callback_t callback, void
                        *param);

  This searches the existing paths for modules and calls the callback
  function when any are found.  Useful for plugin management and custom
  handling of the paths by the front-end if desired.

- void obs_load_all_modules(void);

  Search through the paths and both loads and initializes all modules
  automatically without custom handling.

- void obs_enum_modules(obs_enum_module_callback_t callback,
                        void *param);

  Enumerates currently opened modules.
2014-07-27 17:29:10 -07:00
..
callback Fix missing initialization 2014-07-10 18:17:06 +02:00
data Move all data into the subdir it belongs to 2014-07-19 01:38:41 +02:00
graphics Prevent loading image files with null/empty paths 2014-07-24 00:25:59 -07:00
media-io media-io: Add function for total video frames 2014-07-27 13:26:51 -07:00
util Fix incompatible pointer type warning 2014-07-27 14:33:37 -07:00
CMakeLists.txt Add support for build time dependency copying 2014-07-19 01:38:42 +02:00
LibObsConfig.cmake.in Also export a plugin destination, so external plugins know where to install stuff 2014-05-08 14:43:16 +02:00
LibObsConfigVersion.cmake.in Export libobs cmake target, so external plugins can be built without ugly hacks 2014-05-08 14:43:16 +02:00
obs-avc.c obs-output module: Fill out more functions 2014-04-02 00:42:12 -07:00
obs-avc.h obs-output module: Fill out more functions 2014-04-02 00:42:12 -07:00
obs-cocoa.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs-config.h Export plugin destination and relative prefix to obsconfig.h 2014-07-26 14:27:39 +02:00
obs-data.c Add obs-data autoselect functions 2014-06-22 01:32:09 +02:00
obs-data.h Add obs-data autoselect functions 2014-06-22 01:32:09 +02:00
obs-defs.h Change macro to MODULE_MISSING_EXPORTS for clarity 2014-07-27 17:28:35 -07:00
obs-display.c libobs: Add services API, reduce repeated code 2014-04-19 20:38:53 -07:00
obs-encoder.c Log when any libobs objects are created/destroyed 2014-07-13 05:01:02 -07:00
obs-encoder.h Remove 'locale' parameter from all callbacks 2014-06-25 12:36:26 -07:00
obs-ffmpeg-compat.h Use propper ffmpeg compatiblity instead of relying on deprecated functions 2014-06-28 20:54:14 +02:00
obs-internal.h (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs-module.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs-module.h (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs-nix.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs-output.c Log when any libobs objects are created/destroyed 2014-07-13 05:01:02 -07:00
obs-output.h Add statistics functions to outputs 2014-07-06 17:36:44 -07:00
obs-properties.c libobs: Fill in rest of 'path' property code 2014-06-28 10:12:57 -07:00
obs-properties.h Add OBS_TEXT_MULTILINE for text obs properties 2014-07-21 04:31:19 +02:00
obs-scene.c Fix 'potentially uninitialized' warning on var 2014-06-27 21:37:40 -07:00
obs-scene.h Scenes: Implement more item positioning features 2014-06-15 20:33:13 -07:00
obs-service.c Log when any libobs objects are created/destroyed 2014-07-13 05:01:02 -07:00
obs-service.h Remove 'locale' parameter from all callbacks 2014-06-25 12:36:26 -07:00
obs-source.c Fix audio meters so that volume is applied linearly. 2014-07-14 21:12:53 +03:00
obs-source.h Remove 'locale' parameter from all callbacks 2014-06-25 12:36:26 -07:00
obs-ui.h Revamp API and start using doxygen 2014-02-12 08:04:50 -07:00
obs-video.c Remove 'effect' param from effect param funcs 2014-06-25 22:24:27 -07:00
obs-view.c Activate user-selected audio devices 2014-03-07 17:03:34 -07:00
obs-windows.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs.h (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs.hpp Make a minor OCD tweak to align parameters 2014-06-15 00:14:08 -07:00
obsconfig.h.in Export plugin destination and relative prefix to obsconfig.h 2014-07-26 14:27:39 +02:00