Implemented UUID passing in externAgent and C. Enabled externAgents to print debug...
[progcomp10.git] / src / link / C / c_link.h
index abf8f1e..0e34644 100755 (executable)
 #include <stdio.h>\r
 \r
 #define MAXCOMMANDLEN  15\r
-#define MAXFOENAMELEN  50\r
+#define MAXAGENTNAMELEN        42 /* 40 digits, 'L', and NULL */\r
 #define MAXITEMLEN             10\r
 #define MAXRESULTLEN    10\r
 #define MAXBOOLLEN             6\r
-#define UUIDLEN        42      // 40 digits, 'L' and NULL\r
 \r
 /********** Type definitions **********/\r
 \r
@@ -37,15 +36,14 @@ typedef struct {
 \r
 /* prints a debug message. Same arguments as printf().\r
    (you can't use printf because it is used to talk between\r
-    the agent and supervisor) \r
+    the agent and supervisor)\r
+       \r
+       Hint: store the name passed to you in Initalise and use it to uniquely\r
+       identify the agent sending the message.\r
  */\r
 \r
 #define debugmsg(x...) fprintf(stderr, x)\r
 \r
-/* A (hopefully) unique identifier for this particular instance of your agent,\r
-   to help with debugging */\r
-int me;\r
-\r
 \r
 /* Returns a random item */\r
 \r

UCC git Repository :: git.ucc.asn.au