Changeset 6018:e0df5c74ff43 in roaraudio


Ignore:
Timestamp:
06/22/14 07:59:39 (5 years ago)
Author:
phi
Branch:
default
Message:

Changed ABI version of roard and light_dmxchannel_*()

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r6017 r6018  
    55        * Removed roard plugins dmx-random and dmx-strobe from autobuild list 
    66          as they are replaced by SLFI filters 'random' and 'strobe'. 
     7        * Changed ABI version of roard because of updates on light_dmxchannel_*(). 
    78 
    89v. 1.0beta11 - Tue Jan 21 2014 21:04 CET 
  • roard/include/light.h

    r5982 r6018  
    6262 
    6363// for plugins: 
    64 int     light_dmxchannel_get(size_t index); 
    65 int     light_dmxchannel_set(size_t index, uint8_t val); 
    66 ssize_t light_dmxchannel_num(void); 
    67 int     light_dmxchannel_swap_universe(uint8_t * universe, size_t len); 
     64// Those functions should be avoided. Please write SLFI filters instead! 
     65int     light_dmxchannel_get(size_t index); // get channel value from output state. 
     66int     light_dmxchannel_set(size_t index, uint8_t val); // set channel in input state. 
     67ssize_t light_dmxchannel_num(void); // returns number of channels. 
    6868 
    6969int light_dmxevent_add(const uint8_t * events, size_t len); 
  • roard/include/plugins.h

    r5961 r6018  
    3030 
    3131#define ROARD_DL_APPNAME    "roard " ROAR_VSTR_ROARAUDIO 
    32 #define ROARD_DL_ABIVERSION "1.0beta8" 
     32#define ROARD_DL_ABIVERSION "1.0beta12" 
    3333 
    3434int plugins_preinit  (void); 
  • roard/light.c

    r6009 r6018  
    327327 } 
    328328 
    329  return (int)(unsigned int)(uint8_t)g_light_state.state[index]; 
     329 return (int)(unsigned int)(uint8_t)g_light_state.output[index]; 
    330330} 
    331331 
     
    349349} 
    350350 
    351 int     light_dmxchannel_swap_universe(uint8_t * universe, size_t len) { 
    352  uint8_t c; 
    353  size_t i; 
    354  
    355  if ( g_light_state.state == NULL ) { 
    356   roar_err_set(ROAR_ERROR_BADSTATE); 
    357   return -1; 
    358  } 
    359  
    360  if ( g_light_state.channels != len ) { 
    361   roar_err_set(ROAR_ERROR_FAULT); 
    362   return -1; 
    363  } 
    364  
    365  for (i = 0; i < len; i++) { 
    366   c = g_light_state.state[i]; 
    367   __set_channel(i, universe[i]); 
    368   universe[i] = c; 
    369  } 
    370  
    371  return 0; 
    372 } 
    373  
    374351int light_dmxevent_add(const uint8_t * events, size_t len) { 
    375352 size_t i; 
Note: See TracChangeset for help on using the changeset viewer.