From c741b3433355b4c8a73975bc06f6caac6b2c4440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 19 May 2006 14:04:32 +0000 Subject: rudimentary help-messages on receiving "help" svn path=/trunk/externals/zexy/; revision=5091 --- src/operating_system.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/operating_system.c') diff --git a/src/operating_system.c b/src/operating_system.c index 25453b8..3764330 100644 --- a/src/operating_system.c +++ b/src/operating_system.c @@ -37,6 +37,7 @@ typedef struct _operating_system static void operating_system_bang(t_operating_system *x) { + /* LATER think about querying the version of the system at runtime! */ t_symbol *s=gensym("unknown"); #ifdef __linux__ s=gensym("linux"); @@ -55,12 +56,18 @@ static void *operating_system_new() return (x); } +static void operating_system_help(t_operating_system*x) +{ + post("\n%c operating_system\t:: get the current operating system", HEARTSYMBOL); +} + void operating_system_setup(void) { operating_system_class = class_new(gensym("operating_system"), (t_newmethod)operating_system_new, 0, sizeof(t_operating_system), 0, A_NULL); class_addbang (operating_system_class, operating_system_bang); + class_addmethod(operating_system_class, (t_method)operating_system_help, gensym("help"), A_NULL); class_sethelpsymbol(operating_system_class, gensym("zexy/operating_system")); zexy_register("operating_system"); } -- cgit v1.2.1