1999-04-15 20:05:38 +02:00
|
|
|
#include "zsh.mdh"
|
|
|
|
|
2024-03-18 20:02:34 +01:00
|
|
|
int setup_ (Module);
|
|
|
|
int boot_ (Module);
|
|
|
|
int cleanup_ (Module);
|
|
|
|
int finish_ (Module);
|
|
|
|
int modentry (int boot, Module m, void *ptr);
|
1999-04-15 20:05:38 +02:00
|
|
|
|
|
|
|
/**/
|
|
|
|
int
|
2007-05-29 00:57:39 +02:00
|
|
|
modentry(int boot, Module m, void *ptr)
|
1999-04-15 20:05:38 +02:00
|
|
|
{
|
2006-05-31 00:35:03 +02:00
|
|
|
switch (boot) {
|
|
|
|
case 0:
|
|
|
|
return setup_(m);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
1999-04-15 20:05:38 +02:00
|
|
|
return boot_(m);
|
2006-05-31 00:35:03 +02:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
1999-04-15 20:05:38 +02:00
|
|
|
return cleanup_(m);
|
2006-05-31 00:35:03 +02:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
return finish_(m);
|
|
|
|
break;
|
|
|
|
|
2007-05-29 00:57:39 +02:00
|
|
|
case 4:
|
|
|
|
return features_(m, (char ***)ptr);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 5:
|
|
|
|
return enables_(m, (int **)ptr);
|
|
|
|
break;
|
|
|
|
|
2006-05-31 00:35:03 +02:00
|
|
|
default:
|
|
|
|
zerr("bad call to modentry");
|
|
|
|
return 1;
|
|
|
|
break;
|
|
|
|
}
|
1999-04-15 20:05:38 +02:00
|
|
|
}
|