lm_message_handler.h
author Myhailo Danylenko <isbear@ukrpost.net>
Mon, 21 Mar 2016 02:04:56 +0200
changeset 67 b6234242fc7e
parent 23 13f03e604c8a
permissions -rw-r--r--
Added tag v0.9.7 for changeset a40beb82130c


/* Copyright 2009 Myhailo Danylenko

This file is part of lua-lm.

lua-lm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>. */

#ifndef LLM_MESSAGE_HANDLER_H
#define LLM_MESSAGE_HANDLER_H

#include <lua.h>
#include <loudmouth/loudmouth.h>

#include "lm_types.h"

LmHandlerResult callback_lm_handler (LmMessageHandler *handler, LmConnection *connection, LmMessage *message, llm_callback_t *cb);
int luaopen_lm_message_handler (lua_State *L);

#endif