"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins.c" between
jpilot-1.8.2.tar.gz and jpilot-2_0_1.tar.gz

About: J-Pilot is a desktop organizer application for Palm Pilot (PalmOS) devices. Ported to GTK3.

plugins.c  (jpilot-1.8.2):plugins.c  (jpilot-2_0_1)
skipping to change at line 242 skipping to change at line 242
fclose(in); fclose(in);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
static int get_plugin_info(struct plugin_s *p, char *path) static int get_plugin_info(struct plugin_s *p, char *path)
{ {
void *h; void *h;
const char *err; const char *err;
char name[52]; char name[52];
char db_name[52]; char db_name[52];
int version, major_version, minor_version; int major_version, minor_version;
void (*plugin_versionM)(int *major_version, int *minor_version); void (*plugin_versionM)(int *major_version, int *minor_version);
p->full_path = NULL; p->full_path = NULL;
p->handle = NULL; p->handle = NULL;
p->sync_on = 1; p->sync_on = 1;
p->name = NULL; p->name = NULL;
p->db_name = NULL; p->db_name = NULL;
p->number = 0; p->number = 0;
p->plugin_get_name = NULL; p->plugin_get_name = NULL;
p->plugin_get_menu_name = NULL; p->plugin_get_menu_name = NULL;
skipping to change at line 295 skipping to change at line 295
plugin_versionM = dlsym(h, "plugin_version"); plugin_versionM = dlsym(h, "plugin_version");
if (plugin_versionM==NULL) { if (plugin_versionM==NULL) {
err = dlerror(); err = dlerror();
jp_logf(JP_LOG_WARN, "plugin_version: [%s]\n", err); jp_logf(JP_LOG_WARN, "plugin_version: [%s]\n", err);
jp_logf(JP_LOG_WARN, _(" plugin is invalid: [%s]\n"), path); jp_logf(JP_LOG_WARN, _(" plugin is invalid: [%s]\n"), path);
dlclose(h); dlclose(h);
p->handle=NULL; p->handle=NULL;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
plugin_versionM(&major_version, &minor_version); plugin_versionM(&major_version, &minor_version);
version=major_version*1000+minor_version;
if ((major_version <= 0) && (minor_version < 99)) { if ((major_version <= 0) && (minor_version < 99)) {
jp_logf(JP_LOG_WARN, _("Plugin:[%s]\n"), path); jp_logf(JP_LOG_WARN, _("Plugin:[%s]\n"), path);
jp_logf(JP_LOG_WARN, _("This plugin is version (%d.%d).\n"), jp_logf(JP_LOG_WARN, _("This plugin is version (%d.%d).\n"),
major_version, minor_version); major_version, minor_version);
jp_logf(JP_LOG_WARN, _("It is too old to work with this version of J-Pilot .\n")); jp_logf(JP_LOG_WARN, _("It is too old to work with this version of J-Pilot .\n"));
dlclose(h); dlclose(h);
p->handle=NULL; p->handle=NULL;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
jp_logf(JP_LOG_DEBUG, "This plugin is version (%d.%d).\n", jp_logf(JP_LOG_DEBUG, "This plugin is version (%d.%d).\n",
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)