Changeset 5343:587d63684f2f in roaraudio
- Timestamp:
- 12/09/11 23:30:44 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/roard/listenpty.c
r5340 r5343 27 27 #include <termios.h> 28 28 29 static int init (void) {29 static int init (struct roar_dl_librarypara * para) { 30 30 int serverfh = posix_openpt(O_RDWR|O_NOCTTY); 31 31 struct termios termios; 32 33 (void)para; 32 34 33 35 if ( serverfh == -1 ) { … … 52 54 } 53 55 54 static struct roard_plugins_sched sched[1] = { 55 {.init = init, .free = NULL, .update = NULL} 56 static struct roar_dl_appsched sched = { 57 .init = init, 58 .free = NULL, 59 .update = NULL, 60 .tick = NULL, 61 .wait = NULL 56 62 }; 57 58 ROARD_DL_REG_SCHED(sched)59 63 60 64 ROAR_DL_PLUGIN_START(roard_listenpty) { … … 67 71 ROAR_DL_PLUGIN_META_DESC("This implements a listen socket using a PTY"); 68 72 69 ROAR D_DL_REGFN_SCHED();73 ROAR_DL_PLUGIN_REG_APPSCHED(&sched); 70 74 } ROAR_DL_PLUGIN_END 71 75
Note: See TracChangeset
for help on using the changeset viewer.