#ifndef __REQUEST_HANDLER_ENTRY_H__
#define __REQUEST_HANDLER_ENTRY_H__

#include "message.h"
#include "command.h"

typedef struct s_RequestHandlerEntry RequestHandlerEntry;

typedef Message * (*RequestHandler) (void *context, Message *requestMessage);

RequestHandlerEntry * request_handler_entry_new (const CommandHandler *handler, void *context);
void request_handler_entry_destroy (void *ptr);

const CommandHandler *request_handler_entry_getHandler (RequestHandlerEntry *entry);
void * request_handler_entry_getContext (RequestHandlerEntry *entry);

#endif
