version 1.69 | | version 1.70 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.69 2006/03/18 16:27:15 ryo_saeba Exp $"; | | * "$Id: plugins.c,v 1.70 2006/04/06 21:18:35 tchize Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
object* op; | | object* op; |
sval = va_arg(args, char*); | | sval = va_arg(args, char*); |
| | |
op = get_archetype_by_object_name(sval); | | op = create_archetype_by_object_name(sval); |
| | |
if (strncmp(query_name(op), ARCH_SINGULARITY, ARCH_SINGULARITY_LEN) == 0) { | | if (strncmp(query_name(op), ARCH_SINGULARITY, ARCH_SINGULARITY_LEN) == 0) { |
free_object(op); | | free_object(op); |
/* Try with archetype names... */ | | /* Try with archetype names... */ |
op = get_archetype(sval); | | op = create_archetype(sval); |
if (strncmp(query_name(op), ARCH_SINGULARITY, ARCH_SINGULARITY_LEN) == 0) { | | if (strncmp(query_name(op), ARCH_SINGULARITY, ARCH_SINGULARITY_LEN) == 0) { |
free_object(op); | | free_object(op); |
*type = CFAPI_NONE; | | *type = CFAPI_NONE; |