Add .h to make dependencies
authorNicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Sun, 04 Jul 2010 01:30:26 +0200
changeset 28 ed7520776c41
parent 27 fb602f55af15
child 29 9215053e8fb0
Add .h to make dependencies
jingle/CMakeLists.txt
jingle/action-handlers.c
jingle/send.c
jingle/send.h
--- a/jingle/CMakeLists.txt	Sun Jul 04 01:10:51 2010 +0200
+++ b/jingle/CMakeLists.txt	Sun Jul 04 01:30:26 2010 +0200
@@ -1,4 +1,4 @@
-add_library(jingle MODULE jingle.c check.c action-handlers.c register.c sessions.c send.c)
+add_library(jingle MODULE jingle.c jingle.h check.c check.h action-handlers.c action-handlers.c register.c register.h sessions.c sessions.h send.c send.h)
 set_target_properties(jingle PROPERTIES COMPILE_FLAGS "")
 include_directories(${LM_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR})
 target_link_libraries(jingle ${LM_LIBRARIES})
--- a/jingle/action-handlers.c	Sun Jul 04 01:10:51 2010 +0200
+++ b/jingle/action-handlers.c	Sun Jul 04 01:30:26 2010 +0200
@@ -88,6 +88,7 @@
   }
   if(!is_session) { // None of the app is supported
     jingle_send_session_terminate(m, "unsupported-applications");
+    return;
   }
 
   is_session = FALSE;  
@@ -98,6 +99,7 @@
   }
   if(!is_session) { // None of the transport is supported
     jingle_send_session_terminate(m, "unsupported-transports");
+    return;
   }
 }
 
--- a/jingle/send.c	Sun Jul 04 01:10:51 2010 +0200
+++ b/jingle/send.c	Sun Jul 04 01:30:26 2010 +0200
@@ -22,11 +22,12 @@
 #include <glib.h>
 #include <loudmouth/loudmouth.h>
 
-#include <mcabber/utils.h>
+#include <mcabber/xmpp_helper.h>
+#include <mcabber/xmpp_defines.h>
 
 #include <jingle/send.h>
 
-void jingle_send_session_terminate(const LmMessage *m, const gchar *reason) {
+void jingle_send_session_terminate(LmMessage *m, const gchar *reason) {
   LmMessage *r;
   LmMessageNode *err;
 
--- a/jingle/send.h	Sun Jul 04 01:10:51 2010 +0200
+++ b/jingle/send.h	Sun Jul 04 01:30:26 2010 +0200
@@ -1,6 +1,6 @@
 #ifndef __SEND_H__
 #define __SEND_H__ 1
 
-void jingle_send_session_terminate(const LmMessage *m, const gchar *reason);
+void jingle_send_session_terminate(LmMessage *m, const gchar *reason);
 
 #endif