various small fixes to make the TCAP code build at all

This commit is contained in:
Harald Welte 2011-03-28 00:08:19 +02:00
parent 794624ca47
commit f84c5914cf
8 changed files with 20 additions and 19 deletions

View File

@ -1,5 +1,5 @@
all:
cd gsm && $(MAKE)
cd ansi && $(MAKE)
cd GSM && $(MAKE)
#cd ansi && $(MAKE)

View File

@ -31,6 +31,6 @@ ansi:
.PHONY: clean
clean:
- rm -f $(BEAMS)
cd gsm && $(MAKE) $@
cd ansi && $(MAKE) $@
cd GSM && $(MAKE) $@
cd ANSI && $(MAKE) $@

View File

@ -1,11 +1,11 @@
.PHONY: all
all:
cd itu && $(MAKE)
cd ansi && $(MAKE)
cd ITU && $(MAKE)
cd ANSI && $(MAKE)
.PHONY: clean
clean:
cd itu && $(MAKE) $@
cd ansi && $(MAKE) $@
cd ITU && $(MAKE) $@
cd ANSI && $(MAKE) $@

View File

@ -7,7 +7,7 @@ SRC = ../../src
%.html:${SRC}/%.erl
${ERL} -noshell -run edoc_run file '"$<"' '[{dir,"."}]' -s init stop
%.html:${SRC}/itu/%.erl
%.html:${SRC}/ITU/%.erl
${ERL} -noshell -run edoc_run file '"$<"' '[{dir,"."}]' -s init stop
DOCS = tcap.html tcap_tco_server.html

View File

@ -44,8 +44,8 @@
-include("sccp.hrl").
%% record definitions for TCAP messages
%-include("TCAPMessages.hrl").
%-include("UnidialoguePDUs.hrl").
%-include("DialoguePDUs.hrl").
-include("UnidialoguePDUs.hrl").
-include("DialoguePDUs.hrl").
%% the dialogue_fsm state data
-record(state, {usap, tco, supid, cco, otid, did, parms, appContextMode}).

View File

@ -30,7 +30,8 @@
-behaviour(gen_fsm).
%% call backs needed for gen_fsm behaviour
-export([init/1, handle_event/3, handle_info/3, terminate/3, code_change/4]).
%-export([init/1, handle_event/3, handle_info/3, terminate/3, code_change/4]).
-export([handle_info/3, terminate/3, code_change/4]).
%% invocation_fsm state callbacks
-export([]).
@ -53,8 +54,8 @@
%% handle any other message
handle_info(Info, StateName, State) ->
error_logger:format("~w (~w) received unexpected message: ~w~n", [?Module, self(), Event]),
{next_state, StateName, State};
error_logger:format("~w (~w) received unexpected message: ~w~n", [?MODULE, self(), Info]),
{next_state, StateName, State}.
%% handle a shutdown request
terminate(_Reason, _StateName, State) -> ok.

View File

@ -136,7 +136,7 @@
% export the gen_server call backs
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
terminate/2]).
% behaviour modules must export this function
-export([behaviour_info/1]).

View File

@ -26,15 +26,15 @@ all: $(BEAMS) itu ansi
.PHONY: itu
itu:
cd itu && $(MAKE)
cd ITU && $(MAKE)
.PHONY: ansi
ansi:
cd ansi && $(MAKE)
cd ANSI && $(MAKE)
.PHONY: clean
clean:
- rm -f $(BEAMS)
cd itu && $(MAKE) $@
cd ansi && $(MAKE) $@
cd ITU && $(MAKE) $@
cd ANSI && $(MAKE) $@