[Frugalware-darcs] setup-current: setup-current - priority

Christian Hamar alias krix krics at linuxforum.hu
Thu Mar 16 17:53:57 CET 2006


[setup-current - priority
Christian Hamar alias krix <krics at linuxforum.hu>**20051107225403
   * Added priority to plugin_t and modified plugins to use this
   * Added a g_list_sort() before loading of plugins to catch the right order
 
] {
hunk ./src/plugins/asklang.c 26
+	01,
hunk ./src/plugins/configsource.c 13
+	30,
hunk ./src/plugins/dolangsh.c 12
+	05,
hunk ./src/plugins/greet.c 12
+	10,
hunk ./src/plugins/hotplug.c 12
+	20,
hunk ./src/plugins/layout.c 18
+	15,
hunk ./src/plugins/loadsource.c 16
+	25,
hunk ./src/plugins/partdisk.c 14
+	35,
hunk ./src/plugins/restart.c 11
+	95,
hunk ./src/plugins/skel.c 9
+	99,
hunk ./src/setup.c 15
+int sort_plugins(gconstpointer a, gconstpointer b)
+{
+	const plugin_t *pa = a;
+	const plugin_t *pb = b;
+	return (memcmp(pa->priority, pb->priority, sizeof(int)));
+}
+
hunk ./src/setup.h 40
+	int priority;
}


More information about the Frugalware-darcs mailing list