Add AVV module description
authorMyhailo Danylenko <isbear@ukrpost.net>
Tue, 03 May 2011 02:14:05 +0300
changeset 26 1d5521131630
parent 25 ce961d2c167a
child 27 a8151b97e13c
Add AVV module description
CMakeLists.txt
pep.avv.in
pep.c
--- a/CMakeLists.txt	Tue May 03 02:07:00 2011 +0300
+++ b/CMakeLists.txt	Tue May 03 02:14:05 2011 +0300
@@ -64,9 +64,12 @@
 set(CPACK_SOURCE_IGNORE_FILES "/\\\\..*;\\\\.swp;~$;/build/;\\\\.tar\\\\.;\\\\.deb;\\\\.so")
 include(CPack)
 
+configure_file(pep.avv.in pep.avv)
+
 ## Installation
 install(TARGETS pep DESTINATION lib/mcabber) 
 install(FILES pep.rc COPYING TODO README DESTINATION share/doc/${CPACK_PACKAGE_NAME})
 install(FILES pep.h DESTINATION include/mcabber)
+install(FILES ${PROJECT_BINARY_DIR}/pep.avv DESTINATION share/mcabber/avv/modules RENAME pep)
 
 ## The End ## vim: se ts=4: ##
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pep.avv.in	Tue May 03 02:14:05 2011 +0300
@@ -0,0 +1,12 @@
+
+Name:        ${PROJECT_NAME}
+Method:      glib
+Version:     ${PROJECT_VERSION}
+Description: ${CPACK_PACKAGE_DESCRIPTION_SUMMARY}
+             Provides common listener infrastructure for various other
+             modules, eg avatar, geoloc, mood, tune.
+Requires:    xmpp:4 + hooks:4 + modules:2
+Provides:    pep:1
+Init:        pep_init
+Uninit:      pep_uninit
+
--- a/pep.c	Tue May 03 02:07:00 2011 +0300
+++ b/pep.c	Tue May 03 02:14:05 2011 +0300
@@ -30,8 +30,8 @@
 #include "pep.h"
 #include "config.h"
 
-static void pep_init   (void);
-static void pep_uninit (void);
+void pep_init   (void);
+void pep_uninit (void);
 
 #define DESCRIPTION ( "Common PEP events listener" )
 
@@ -213,7 +213,7 @@
 	return HOOK_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
 }
 
-static void pep_init (void)
+void pep_init (void)
 {
 	// create handlers
 	pep_message_handler = lm_message_handler_new (pep_message_event_handler, NULL, NULL);
@@ -227,7 +227,7 @@
 	pep_register_handlers ();
 }
 
-static void pep_uninit (void)
+void pep_uninit (void)
 {
 	// release handlers
 	pep_unregister_handlers ();