diff options
Diffstat (limited to 'src/util/ss/requests.c')
| -rw-r--r-- | src/util/ss/requests.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/util/ss/requests.c b/src/util/ss/requests.c new file mode 100644 index 000000000000..3e62f970cbba --- /dev/null +++ b/src/util/ss/requests.c @@ -0,0 +1,47 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* util/ss/requests.c */ +/* + * Copyright 1987, 1988, 1989 by MIT + * + * For copyright information, see mit-sipb-copyright.h. + */ + +#include <stdio.h> +#include "ss_internal.h" + +#define DECLARE(name) void name(argc,argv,sci_idx,info_ptr)int argc,sci_idx;const char * const *argv; pointer info_ptr; + +/* + * ss_self_identify -- assigned by default to the "." request + */ +DECLARE(ss_self_identify) +{ + register ss_data *info = ss_info(sci_idx); + printf("%s version %s\n", info->subsystem_name, + info->subsystem_version); +} + +/* + * ss_subsystem_name -- print name of subsystem + */ +DECLARE(ss_subsystem_name) +{ + printf("%s\n", ss_info(sci_idx)->subsystem_name); +} + +/* + * ss_subsystem_version -- print version of subsystem + */ +DECLARE(ss_subsystem_version) +{ + printf("%s\n", ss_info(sci_idx)->subsystem_version); +} + +/* + * ss_unimplemented -- routine not implemented (should be + * set up as (dont_list,dont_summarize)) + */ +DECLARE(ss_unimplemented) +{ + ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, ""); +} |
