Cosmetics+install other docs
authorMyhailo Danylenko <isbear@ukrpost.net>
Sun, 08 Nov 2009 23:11:53 +0200
changeset 4 b24eab8a6515
parent 3 f28f6e8211ed
child 5 1398cd8fc554
Cosmetics+install other docs
CMakeLists.txt
TODO
pep.c
--- a/CMakeLists.txt	Fri Nov 06 16:02:46 2009 +0200
+++ b/CMakeLists.txt	Sun Nov 08 23:11:53 2009 +0200
@@ -63,7 +63,7 @@
 
 ## Installation
 install(TARGETS pep DESTINATION lib/mcabber) 
-install(FILES pep.rc DESTINATION share/doc/${CPACK_PACKAGE_NAME})
+install(FILES pep.rc COPYING TODO DESTINATION share/doc/${CPACK_PACKAGE_NAME})
 install(FILES pep.h DESTINATION include/mcabber)
 
 ## The End ## vim: se ts=4: ##
--- a/TODO	Fri Nov 06 16:02:46 2009 +0200
+++ b/TODO	Sun Nov 08 23:11:53 2009 +0200
@@ -1,5 +1,4 @@
 
-check handlers
 do we need to export functions in some special way?
 startup/shutdown hook to inform other modules, that they should free/register handlers?
 
--- a/pep.c	Fri Nov 06 16:02:46 2009 +0200
+++ b/pep.c	Sun Nov 08 23:11:53 2009 +0200
@@ -1,5 +1,5 @@
 /*
- * disco.c         -- Service discovery requests
+ * pep.c                -- Common pep routines
  *
  * Copyrigth (C) 2009      Myhailo Danylenko <isbear@ukrpost.net>
  *
@@ -22,7 +22,7 @@
 #include <glib.h>
 #include <gmodule.h>
 #include <loudmouth/loudmouth.h>
-#include <strings.h>
+#include <string.h>
 
 #include "xmpp.h"
 #include "hooks.h"
@@ -135,7 +135,7 @@
 {
 	hk_arg_t *arg = args;
 
-	for (arg = args; arg->name; arg++) {
+	for (arg = args; arg->name; ++arg) {
 		if (!strcmp (arg->name, "hook")) {
 			if (!strcmp (arg->value, "hook-pre-disconnect"))
 				pep_unregister_handlers ();
@@ -146,7 +146,7 @@
 	}
 }
 
-const gchar *g_module_check_init(GModule *module)
+const gchar *g_module_check_init (GModule *module)
 {
 	// register hook handler
 	hk_add_handler (pep_hh, HOOK_INTERNAL, NULL);
@@ -156,10 +156,11 @@
 	return NULL;
 }
 
-void g_module_unload(GModule *module)
+void g_module_unload (GModule *module)
 {
 	// release handlers
 	pep_unregister_handlers ();
+
 	if (pep_message_handler)
 		lm_message_handler_unref (pep_message_handler);
 	pep_message_handler = NULL;
@@ -168,4 +169,4 @@
 	hk_del_handler (pep_hh, NULL);
 }
 
-/* vim: se ts=4: */
+/* vim: se ts=4 sw=4: */