Commit 5d8b4391 authored by Simon Morlat's avatar Simon Morlat

add sdp stuff to automake build. fix compil error

parent 52a86ecd
ANTLR=antlr3
grammar_files= \
$(srcdir)/belle_sip_message.g
$(srcdir)/belle_sip_message.g \
$(srcdir)/belle_sdp.g
generated_src= \
belle_sip_uriParser.c belle_sip_uriParser.h \
belle_sip_uriLexer.c belle_sip_uriLexer.h \
belle_sip_messageParser.c belle_sip_messageParser.h \
belle_sip_messageLexer.c belle_sip_messageLexer.h
belle_sip_messageLexer.c belle_sip_messageLexer.h \
belle_sdpParser.c belle_sdpParser.h \
belle_sdpLexer.c belle_sdpLexer.h
$(builddir)/generated_src_stamp : $(grammar_files)
$(ANTLR) -make -fo $(builddir) $(grammar_files)
......@@ -36,6 +38,7 @@ libbellesip_la_SOURCES=clock_gettime.h \
belle_sip_loop.c \
belle_sip_resolver.c belle_sip_resolver.h \
belle_sip_parameters.c \
belle_sdp_impl.c \
transaction.c \
listeningpoint.c \
sipstack.c \
......
......@@ -42,9 +42,7 @@ static void belle_sip_header_destroy(belle_sip_header_t *header){
if (header->next) belle_sip_object_unref(BELLE_SIP_OBJECT(header->next));
}
void belle_sip_header_set_next(belle_sip_header_t* header,belle_sip_header_t* next) {
if (header->next) belle_sip_object_unref(BELLE_SIP_OBJECT(header));
header->next = next;
belle_sip_object_ref(BELLE_SIP_OBJECT(next));
}
belle_sip_header_t* belle_sip_header_get_next(const belle_sip_header_t* header) {
return header->next;
......
......@@ -104,7 +104,7 @@ message_header [belle_sip_message_t* message]
do {
belle_sip_message_add_header(message,lheader);
}
while(lheader=belle_sip_header_get_next(lheader) != NULL); }
while((lheader=belle_sip_header_get_next(lheader)) != NULL); }
) CRLF
;
......
......@@ -3,6 +3,7 @@ if BUILD_TESTS
noinst_PROGRAMS=belle_sip_tester cast_test basic_test
belle_sip_tester_SOURCES= belle_sip_tester.c \
belle_sdp_tester.c \
belle_sip_uri_tester.c \
belle_sip_headers_tester.c \
belle_sip_message_tester.c
......
......@@ -34,7 +34,7 @@ static void check_uri_and_headers(belle_sip_message_t* message) {
CU_ASSERT_PTR_NOT_NULL(belle_sip_request_get_uri(BELLE_SIP_REQUEST(message)));
CU_ASSERT_PTR_NOT_NULL(belle_sip_message_get_header(message,"Max-Forwards"));
BELLE_SIP_HEADER_MAX_FORWARDS(belle_sip_message_get_header(message,"Max-Forwards"));
CU_ASSERT_PTR_NOT_NULL(BELLE_SIP_HEADER_MAX_FORWARDS(belle_sip_message_get_header(message,"Max-Forwards")));
}
CU_ASSERT_PTR_NOT_NULL(belle_sip_message_get_header(message,"From"));
CU_ASSERT_PTR_NOT_NULL(BELLE_SIP_HEADER_FROM(belle_sip_message_get_header(message,"From")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment