# HG changeset patch # User Myhailo Danylenko # Date 1257714713 -7200 # Node ID b24eab8a65158a01186e22681a400a28919aaafb # Parent f28f6e8211ed5550c5e59cb209cac63ffb428131 Cosmetics+install other docs diff -r f28f6e8211ed -r b24eab8a6515 CMakeLists.txt --- 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: ## diff -r f28f6e8211ed -r b24eab8a6515 TODO --- 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? diff -r f28f6e8211ed -r b24eab8a6515 pep.c --- 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 * @@ -22,7 +22,7 @@ #include #include #include -#include +#include #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: */