|
@@ -1,5 +1,5 @@
|
|
-#ifndef AFUN__ENV_H_PUBLIV
|
|
|
|
-#define AFUN__ENV_H_PUBLIV
|
|
|
|
|
|
+#ifndef AFUN__ENV_H_PUBLIC
|
|
|
|
+#define AFUN__ENV_H_PUBLIC
|
|
|
|
|
|
typedef struct af_Environment af_Environment;
|
|
typedef struct af_Environment af_Environment;
|
|
typedef struct af_Message af_Message;
|
|
typedef struct af_Message af_Message;
|
|
@@ -19,6 +19,7 @@ void popActivity(af_Environment *env);
|
|
|
|
|
|
af_Message *makeMessage(char *type, size_t size);
|
|
af_Message *makeMessage(char *type, size_t size);
|
|
af_Message *freeMessage(af_Message *msg);
|
|
af_Message *freeMessage(af_Message *msg);
|
|
|
|
+void freeAllMessage(af_Message *msg);
|
|
void pushMessageUp(af_Message *msg, af_Environment *env);
|
|
void pushMessageUp(af_Message *msg, af_Environment *env);
|
|
void pushMessageDown(af_Message *msg, af_Environment *env);
|
|
void pushMessageDown(af_Message *msg, af_Environment *env);
|
|
af_Message *popMessageUp(char *type, af_Environment *env);
|
|
af_Message *popMessageUp(char *type, af_Environment *env);
|