version 1.39 | | version 1.40 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.39 2005/07/18 19:07:07 akirschbaum Exp $"; | | * "$Id: plugins.c,v 1.40 2005/08/12 13:46:34 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
/* Returns the position of the plugin in the list if a matching one was found*/ | | /* Returns the position of the plugin in the list if a matching one was found*/ |
/* or -1 if no correct plugin was detected. */ | | /* or -1 if no correct plugin was detected. */ |
/*****************************************************************************/ | | /*****************************************************************************/ |
int findPlugin(char* id) | | int findPlugin(const char* id) |
{ | | { |
int i; | | int i; |
for(i=0; i<PlugNR; i++) | | for(i=0; i<PlugNR; i++) |
| | |
CFParm* CFP; | | CFParm* CFP; |
char* val; | | char* val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
val = determine_god( | | val = (char*)determine_god( |
(object *)(PParm->Value[0]) | | (object *)(PParm->Value[0]) |
); | | ); |
CFP->Value[0] = (void *)(val); | | CFP->Value[0] = (void *)(val); |
| | |
CFParm* CFWQueryBaseName(CFParm* PParm) | | CFParm* CFWQueryBaseName(CFParm* PParm) |
{ | | { |
CFParm* CFP = (CFParm*)malloc(sizeof (CFParm)); | | CFParm* CFP = (CFParm*)malloc(sizeof (CFParm)); |
CFP->Value[ 0 ] = query_base_name( ( object* )PParm->Value[ 0 ], *( int* )PParm->Value[ 1 ] ); | | CFP->Value[ 0 ] = (char*)query_base_name( ( object* )PParm->Value[ 0 ], *( int* )PParm->Value[ 1 ] ); |
return CFP; | | return CFP; |
}; | | }; |
| | |