HTMLify
chatbot.h
Views: 7 | Author: abh
#ifndef CHATBOT_H
#define CHATBOT_H
typedef enum {
SEND,
RECEIVE,
} MsgType;
typedef struct {
char *chat;
char *content;
char type;
} ChatMsg;
typedef struct {
char *name;
char *(*chat)(char *);
int msgcount;
ChatMsg *messages;
} ChatBot;
char *ChatBot_chat(ChatBot *chatbot, char *message);
#endif