46
46
SensorsAppletPluginGetSensorValue get_value_fn;
48
48
plugin_file = g_strdup_printf("%s/%s", path, file);
50
49
if ((handle = dlopen(plugin_file, RTLD_NOW)) != NULL) {
52
53
if ((name_fn = dlsym(handle, "sensors_applet_plugin_name")) != NULL &&
53
54
(init_fn = dlsym(handle, "sensors_applet_plugin_init")) != NULL &&
54
55
(get_value_fn = dlsym(handle, "sensors_applet_plugin_get_sensor_value")) != NULL) {
58
59
if ((sensors = init_fn()) != NULL) {