--- a/CMakeLists.txt Tue May 19 01:16:55 2009 +0300
+++ b/CMakeLists.txt Tue May 19 02:12:02 2009 +0300
@@ -31,7 +31,7 @@
## Packaging information
set(CPACK_PACKAGE_NAME liblua5.1-loudmouth)
set(CPACK_PACKAGE_VERSION_MAJOR 0)
-set(CPACK_PACKAGE_VERSION_MINOR 0)
+set(CPACK_PACKAGE_VERSION_MINOR 9)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_VENDOR "IsBear")
set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
--- a/README Tue May 19 01:16:55 2009 +0300
+++ b/README Tue May 19 02:12:02 2009 +0300
@@ -1,6 +1,8 @@
This is a lua 5.1 interface for loudmouth jabber client library.
+INSTALLATION
+
To install it, you need:
- lua (in fact, optional, to run test, but for now CMake cannot detect liblua separately)
- liblua headers and library
@@ -24,9 +26,20 @@
Users of other systems can set other CPack generator wich cache editor.
-This code underlies terms of GNU GPL v2 or later.
+NOTES
+
+Unfortunately, test script depends on my unfinished (and, probably, never finished)
+glib module, and thus is unusable as is.
+
+LICENSE
+
+This code underlies terms of GNU GPL v2 or later. You can find it in file COPYING
+from this distribution or on a GNU web-site <http://www.gnu.org/licenses/>.
+
+CONTACTS
I will be happy to get feedback, patches, suggestions, etc.
+You can send me email or contact via jabber <isbear@jabber.kiev.ua>.
-- Myhailo Danylenko <isbear@ukrpost.net>
--- a/TODO Tue May 19 01:16:55 2009 +0300
+++ b/TODO Tue May 19 02:12:02 2009 +0300
@@ -1,6 +1,9 @@
Verify refcounts of lm objects. Need a decent test script for that.
Some additional lua functions?
-Do something abouth strcasecmp non-portability.
+Do something about strcasecmp non-portability.
Add versions to dependencies.
+Finish parse function?
+Do something about debug and logging.
+Document docgen or switch to some other documentation system.
--- a/config.h.in Tue May 19 01:16:55 2009 +0300
+++ b/config.h.in Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_CONFIG_H
#define LLM_CONFIG_H
@@ -9,7 +26,7 @@
#cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
#ifdef DEBUG
-# include <stdio.h>
+# include <glib.h>
# ifndef LLM_LOG_PREFIX
# define LLM_LOG_PREFIX ( "lua-lm" )
--- a/docgen.pl Tue May 19 01:16:55 2009 +0300
+++ b/docgen.pl Tue May 19 02:12:02 2009 +0300
@@ -1,5 +1,20 @@
#! /usr/bin/perl
+# Copyright 2009 Myhailo Danylenko
+#
+# This program 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/>.
+
use strict;
use warnings;
--- a/lm.c Tue May 19 01:16:55 2009 +0300
+++ b/lm.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
--- a/lm.lua Tue May 19 01:16:55 2009 +0300
+++ b/lm.lua Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,17 @@
+--[[ Copyright 2009 Myhailo Danylenko
+
+This program 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/>. ]]
local lm = require 'loudmouth'
--- a/lm_connection.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_connection.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_connection.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_connection.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_CONNECTION_H
#define LLM_CONNECTION_H
--- a/lm_message.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_message.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_message.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_message.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_H
#define LLM_MESSAGE_H
--- a/lm_message_handler.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_message_handler.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_message_handler.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_message_handler.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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
--- a/lm_message_node.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_message_node.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_message_node.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_message_node.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_NODE_H
#define LLM_MESSAGE_NODE_H
--- a/lm_proxy.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_proxy.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_proxy.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_proxy.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_PROXY_H
#define LLM_PROXY_H
--- a/lm_ssl.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_ssl.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_ssl.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_ssl.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_SSL_H
#define LLM_SSL_H
--- a/lm_types.c Tue May 19 01:16:55 2009 +0300
+++ b/lm_types.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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/>. */
#include <lua.h>
#include <lauxlib.h>
--- a/lm_types.h Tue May 19 01:16:55 2009 +0300
+++ b/lm_types.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,20 @@
+
+/* 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_TYPES_H
#define LLM_TYPES_H
--- a/test.lua Tue May 19 01:16:55 2009 +0300
+++ b/test.lua Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,21 @@
+--[[ Copyright 2009 Myhailo Danylenko
+
+This program 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/>. ]]
+
+-- Note, this requires glib module, that is not released yet
+-- (and, probably, will not be released ever), thus, this
+-- code is provided only as example.
require 'glib'
local lm = require 'lm'
--- a/util.c Tue May 19 01:16:55 2009 +0300
+++ b/util.c Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,18 @@
+
+/* Copyright 2009 Myhailo Danylenko
+
+This code 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/>. */
#include <strings.h>
#include <lua.h>
--- a/util.h Tue May 19 01:16:55 2009 +0300
+++ b/util.h Tue May 19 02:12:02 2009 +0300
@@ -1,3 +1,18 @@
+
+/* Copyright 2009 Myhailo Danylenko
+
+This code 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 MISC_LUA_UTIL_H
#define MISC_LUA_UTIL_H