lm_message_handler.h
author Myhailo Danylenko <isbear@ukrpost.net>
Sat, 05 Mar 2016 15:51:12 +0200
changeset 62 d92358eafead
parent 23 13f03e604c8a
permissions -rw-r--r--
ssl: Return object from cipher/ca methods for chain initialization


/* 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