#include <errno.h>
#include <stdio.h>
#include "message.h"
+#include "menu.h"
enum {
STATE_OFFLINE,
}
}
+void friend_cmd(gchar **args, GSocketAddress *address)
+{
+ printf("%s\n", args[1]);
+}
+
+void friend_init(void)
+{
+ struct menu_item *mi;
+ mi = g_malloc(sizeof(*mi));
+ mi->cmd = "friend";
+ mi->func = friend_cmd;
+ menu_add(mi);
+}
+
struct cache {
GList *friends;
};