X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fmonitor.c;h=b4a133d87c5196aa37a631d7f8daa0baf89e621b;hb=24609d658e8c2c7795b8a5f8bef21512c020f1fb;hp=80a77329bfdd111d4a020b3f0ef1cac67c887a0f;hpb=0baa6dcc9c487fd94b7c97dc79393ac45bfe9504;p=bertos.git diff --git a/kern/monitor.c b/kern/monitor.c index 80a77329..b4a133d8 100755 --- a/kern/monitor.c +++ b/kern/monitor.c @@ -14,6 +14,15 @@ /*#* *#* $Log$ + *#* Revision 1.4 2005/04/11 19:10:28 bernie + *#* Include top-level headers from cfg/ subdir. + *#* + *#* Revision 1.3 2004/11/28 23:20:25 bernie + *#* Remove obsolete INITLIST macro. + *#* + *#* Revision 1.2 2004/10/26 09:01:15 bernie + *#* monitor_rename(): New function. + *#* *#* Revision 1.1 2004/10/03 20:39:03 bernie *#* Import in DevLib. *#* @@ -33,8 +42,8 @@ #include #include #include -#include -#include +#include +#include static List MonitorProcs; @@ -42,7 +51,7 @@ static List MonitorProcs; void monitor_init(void) { - INITLIST(&MonitorProcs); + LIST_INIT(&MonitorProcs); } @@ -61,6 +70,11 @@ void monitor_remove(Process* proc) REMOVE(&proc->monitor.link); } +void monitor_rename(Process *proc, const char* name) +{ + proc->monitor.name = name; +} + #define MONITOR_NODE_TO_PROCESS(node) \ (struct Process*)((char*)(node) - offsetof(struct Process, monitor.link))