Lines Matching defs:rc
70 osm_epi_plugin_t *rc = NULL;
78 rc = malloc(sizeof(*rc));
79 if (!rc)
82 rc->handle = dlopen(lib_name, RTLD_LAZY);
83 if (!rc->handle) {
90 rc->impl =
91 (osm_event_plugin_t *) dlsym(rc->handle,
93 if (!rc->impl) {
101 old_impl = (struct old_if *) rc->impl;
111 if (strcmp(rc->impl->osm_version, osm->osm_version)) {
115 plugin_name, rc->impl->osm_version);
119 if (!rc->impl->create) {
126 rc->plugin_data = rc->impl->create(osm);
128 if (!rc->plugin_data)
131 rc->plugin_name = strdup(plugin_name);
132 return (rc);
135 dlclose(rc->handle);
137 free(rc);