#ifndef __REQUESTHANDLERS_H_
#define __REQUESTHANDLERS_H_

#include "message.h"
#include "processor.h"

typedef struct s_CommandHandlers CommandHandlers;

/*
typedef Message * (*RequestHandler) (Message *requestMessage);
*/

CommandHandlers * command_handlers_new (void);
void command_handlers_destroy (void *ptr);

bool command_handlers_addHandler (CommandHandlers *reqs, const CommandHandler *handler, void *context);


void command_handlers_processMessage (CommandHandlers *reqs, Message *message, Processor *processor);

#endif
