aboutsummaryrefslogtreecommitdiff
path: root/src/operating_system.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-05-19 14:04:32 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-05-19 14:04:32 +0000
commitc741b3433355b4c8a73975bc06f6caac6b2c4440 (patch)
treea03a6e6b6cde232e32ceee16bfe4bdda942d7f00 /src/operating_system.c
parentaca5259edd0a49f12fc30f14c9308e32d86647ba (diff)
rudimentary help-messages on receiving "help"
svn path=/trunk/externals/zexy/; revision=5091
Diffstat (limited to 'src/operating_system.c')
-rw-r--r--src/operating_system.c7
1 files changed, 7 insertions, 0 deletions
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");
}