Skip to content
Snippets Groups Projects
  • Jim's avatar
    e42af671
    (API Change) Split obs_source_gettype · e42af671
    Jim authored
    Changed:
    - obs_source_gettype
    To:
    - enum obs_source_type obs_source_get_type(obs_source_t source);
    - const char *obs_source_get_id(obs_source_t source);
    
    This function was inconsistent for a number of reasons.  First, it
    returns both the ID and the type of source (input/transition/filter),
    which is inconsistent with the name of "get type".  Secondly, the
    'squishy' naming convention which has just turned out to be bad
    practice and causes inconsistencies.  So it's now replaced with two
    functions that just return the type and the ID.
    e42af671
    History
    (API Change) Split obs_source_gettype
    Jim authored
    Changed:
    - obs_source_gettype
    To:
    - enum obs_source_type obs_source_get_type(obs_source_t source);
    - const char *obs_source_get_id(obs_source_t source);
    
    This function was inconsistent for a number of reasons.  First, it
    returns both the ID and the type of source (input/transition/filter),
    which is inconsistent with the name of "get type".  Secondly, the
    'squishy' naming convention which has just turned out to be bad
    practice and causes inconsistencies.  So it's now replaced with two
    functions that just return the type and the ID.