Changeset 5432:956f6af25715 in roaraudio for libroar
- Timestamp:
- 03/20/12 13:04:08 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/plugincontainer.c
r5429 r5432 141 141 // plugin loading and unloading: 142 142 int roar_plugincontainer_load(struct roar_plugincontainer * cont, const char * name, struct roar_dl_librarypara * para) { 143 struct roar_dl_lhandle * ret = roar_plugincontainer_load_lhandle(cont, name, para);143 struct roar_dl_lhandle * ret = roar_plugincontainer_load_lhandle(cont, name, ROAR_DL_FLAG_PLUGIN, 1, para); 144 144 145 145 if ( ret == NULL ) … … 153 153 struct roar_dl_lhandle * roar_plugincontainer_load_lhandle (struct roar_plugincontainer * cont, 154 154 const char * name, 155 int flags, 156 int ra_init, 155 157 struct roar_dl_librarypara * para) { 156 158 ssize_t idx = -1; … … 185 187 } 186 188 187 cont->handle[idx] = roar_dl_open(name, ROAR_DL_FLAG_PLUGIN, 1, para);189 cont->handle[idx] = roar_dl_open(name, flags, ra_init, para); 188 190 if ( cont->handle[idx] == NULL ) 189 191 return NULL; … … 251 253 } 252 254 255 int roar_plugincontainer_ra_init (struct roar_plugincontainer * cont) { 256 size_t i; 257 258 if ( cont == NULL ) { 259 roar_err_set(ROAR_ERROR_FAULT); 260 return -1; 261 } 262 263 for (i = 0; i < MAX_PLUGINS; i++) { 264 if ( cont->handle[i] == NULL ) 265 continue; 266 roar_dl_ra_init(cont->handle[i], NULL, cont->default_para); 267 } 268 269 return 0; 270 } 271 253 272 // appsched: 254 273 int roar_plugincontainer_appsched_trigger(struct roar_plugincontainer * cont, enum roar_dl_appsched_trigger trigger) {
Note: See TracChangeset
for help on using the changeset viewer.