Changeset 5343:587d63684f2f in roaraudio


Ignore:
Timestamp:
12/09/11 23:30:44 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

converted from roardsched to appsched

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/listenpty.c

    r5340 r5343  
    2727#include <termios.h> 
    2828 
    29 static int init(void) { 
     29static int init  (struct roar_dl_librarypara * para) { 
    3030 int serverfh = posix_openpt(O_RDWR|O_NOCTTY); 
    3131 struct termios termios; 
     32 
     33 (void)para; 
    3234 
    3335 if ( serverfh == -1 ) { 
     
    5254} 
    5355 
    54 static struct roard_plugins_sched sched[1] = { 
    55  {.init = init, .free = NULL, .update = NULL} 
     56static struct roar_dl_appsched sched = { 
     57 .init   = init, 
     58 .free   = NULL, 
     59 .update = NULL, 
     60 .tick   = NULL, 
     61 .wait   = NULL 
    5662}; 
    57  
    58 ROARD_DL_REG_SCHED(sched) 
    5963 
    6064ROAR_DL_PLUGIN_START(roard_listenpty) { 
     
    6771 ROAR_DL_PLUGIN_META_DESC("This implements a listen socket using a PTY"); 
    6872 
    69  ROARD_DL_REGFN_SCHED(); 
     73 ROAR_DL_PLUGIN_REG_APPSCHED(&sched);  
    7074} ROAR_DL_PLUGIN_END 
    7175 
Note: See TracChangeset for help on using the changeset viewer.